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_LITTLEFS && FILE_SYSTEM

(Includes any dependencies from ifs and menus.)

Default

  • 64

Kconfig definition

At <Zephyr>/subsys/fs/Kconfig.littlefs:43

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:34<Zephyr>/subsys/Kconfig:25<Zephyr>/subsys/fs/Kconfig:61

Menu path: (Top) → Sub Systems and OS Services → File Systems → File system support → LittleFS 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_LITTLEFS && 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.)