CONFIG_FS_LITTLEFS_CACHE_SIZE

Size of block caches in bytes

Type: int

Help

Each cache buffers a portion of a block in RAM. The littlefs needs a read cache, a program cache, and one additional cache per file. Larger caches can improve performance by storing more data and reducing the number of disk accesses. Must be a multiple of the read and program sizes of the underlying flash device, and a factor of the block size.

Direct dependencies

FILE_SYSTEM

(Includes any dependencies from ifs and menus.)

Default

  • 64

Kconfig definition

At subsys/fs/Kconfig.littlefs:32

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:16subsys/fs/Kconfig:142

Menu path: (Top) → File Systems → File system support → LittleFS Settings

config FS_LITTLEFS_CACHE_SIZE
    int "Size of block caches in bytes" if FILE_SYSTEM_LITTLEFS
    default 64
    depends on FILE_SYSTEM
    help
      Each cache buffers a portion of a block in RAM.  The littlefs
      needs a read cache, a program cache, and one additional cache
      per file. Larger caches can improve performance by storing
      more data and reducing the number of disk accesses. Must be a
      multiple of the read and program sizes of the underlying flash
      device, and a factor of the block size.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)