다음을 통해 공유


Configuring Object Store Memory (Windows Embedded CE 6.0)

1/5/2010

Once the available RAM is calculated, the kernel calculates how much memory will be allocated to the object store, Filesys.exe.

The kernel first uses the FSRAMPERCENT value that is logged in Config.bib. During the boot process, it gives you access through pOEMCalcFSPages to change the default allocation.

Once the final value is calculated, the kernel divides the memory between the kernel allocation used for running programs and the Filesys.exe allocation used for the object store.

When the system is running, this division can be determined by calling GetSystemMemoryDivision or SetSystemMemoryDivision.

To set the division between storage and program memory

  • Configure the FSRAMPERCENT value under the CONFIG block in your Config.bib file to allocate the amount of memory for the object store.

    For example, if FSRAMPERCENT=0x80808080, this allocates 50 percent of RAM for the object store. If you only want to allocate 25 percent of RAM for the object store, change the FSRAMPERCENT value to 0x40404040.

    - or -

  • Implement the pOEMCalcFSPages function if you want to set the memory allocated for the object store during system initialization.

    pOEMCalcFSPages returns the number of pages that should be assigned to the object store. The dwDefaultFSPages parameter represents the size, in pages, that was reserved for the object store based on the FSRAMPERCENT value.

    **- or -

  • Modify the memory division during runtime using the SetSystemMemoryDivision function.**

See Also

Concepts

Customizing Memory

Other Resources

Object Store Size