Directory Cache Tutorial

Describes how to configure the directory cache in a FAT file system enabled drive.

Before you start, you must:

The developers can configure the directory cache memory with a dynamic range. The memory allocation for directory cache on a drive depends on the available global cache memory. The global cache manager allocates memory to various cache memory on different drives. The directory cache for a drive can be configured with a dynamic range in the estart.txt file. The dynamic range configuration consists of two values :

  1. FAT_DirCacheSizeMin specifies the minimum size of global cache to be allocated to the directory cache on a drive.

  2. FAT_DirCacheSizeMax specifies the maximum size of the global cache to be allocated to the directory cache of a drive.

The minimum size of the directory cache is permanently reserved during the file server startup time. The maximum memory allocation depends on the available system memory and hence not guaranteed under low memory conditions.

The size of the cache memory is specified in Kilobytes. The default value for both the parameters is 128 Kilobytes.

  1. Open the estart.txt file

    to configure the directory cache.


  2. Create a new entry for a drive, say for example drive D:

  3. Enter the minimum size of the directory cache to be allocated to the parameter FAT_DirCacheSizeMin The value is specified in Kilobytes

  4. Enter the maximum size of the directory cache that can be allocated when available to the parameter FAT_DirCacheSizeMax The value is specified in Kilobytes.

  5. Repeat steps 2-4 for other drives.

  6. Save and close the estart.txt file

  7. Build the ROM with the modified estart.txt file

The sample entry for drive D is shown below:

[DriveD]
FAT_DirCacheSizeMin  128
FAT_DirCacheSizeMax  256