:orphan: .. title:: FS_LITTLEFS_FC_HEAP_SIZE .. option:: CONFIG_FS_LITTLEFS_FC_HEAP_SIZE *Enable flexible file cache sizes for littlefs* Type: ``int`` Help ==== littlefs requires a per-file buffer to cache data. When applications customize littlefs configurations and support different cache sizes for different partitions this preallocation is inadequate as an application might require a small number of files using a large cache size and a larger number of files using a smaller cache size. In that case application should provide a positive value for the heap size. Be aware that there is a per-allocation overhead that affects how much usable space is present in the heap. If this option is set to a non-positive value the heap is sized to support up to FS_LITTLE_FS_NUM_FILES blocks of FS_LITTLEFS_CACHE_SIZE bytes. Until FS_LITTLEFS_FC_MEM_POOL is removed presence of that option changes the default to support FS_LITTLEFS_FC_MEM_POOL_NUM_BLOCKS allocations of size FS_LITTLEFS_MEM_POOL_MAX_SIZE Direct dependencies =================== \ :option:`FILE_SYSTEM_LITTLEFS ` && \ :option:`FILE_SYSTEM ` *(Includes any dependencies from ifs and menus.)* Default ======= - 0 Kconfig definition ================== .. highlight:: kconfig At ``subsys/fs/Kconfig.littlefs:132`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:34`` → ``subsys/Kconfig:25`` → ``subsys/fs/Kconfig:61`` Menu path: (Top) → Sub Systems and OS Services → File Systems → File system support → LittleFS support .. parsed-literal:: config FS_LITTLEFS_FC_HEAP_SIZE int "Enable flexible file cache sizes for littlefs" default 0 depends on \ :option:`FILE_SYSTEM_LITTLEFS ` && \ :option:`FILE_SYSTEM ` help littlefs requires a per-file buffer to cache data. When applications customize littlefs configurations and support different cache sizes for different partitions this preallocation is inadequate as an application might require a small number of files using a large cache size and a larger number of files using a smaller cache size. In that case application should provide a positive value for the heap size. Be aware that there is a per-allocation overhead that affects how much usable space is present in the heap. If this option is set to a non-positive value the heap is sized to support up to FS_LITTLE_FS_NUM_FILES blocks of FS_LITTLEFS_CACHE_SIZE bytes. Until FS_LITTLEFS_FC_MEM_POOL is removed presence of that option changes the default to support FS_LITTLEFS_FC_MEM_POOL_NUM_BLOCKS allocations of size FS_LITTLEFS_MEM_POOL_MAX_SIZE *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*