Navigation: Linux Kernel Driver DataBase - web LKDDB: Main index - N index         

CONFIG_NOMMU_INITIAL_TRIM_EXCESS: Turn on mmap() excess space trimming before booting

General informations

The Linux kernel configuration item CONFIG_NOMMU_INITIAL_TRIM_EXCESS:

Help text

The NOMMU mmap() frequently needs to allocate large contiguous chunks of memory on which to store mappings, but it can only ask the system allocator for chunks in 2^N*PAGE_SIZE amounts - which is frequently more than it requires. To deal with this, mmap() is able to trim off the excess and return it to the allocator.

If trimming is enabled, the excess is trimmed off and returned to the system allocator, which can cause extra fragmentation, particularly if there are a lot of transient processes.

If trimming is disabled, the excess is kept, but not used, which for long-term mappings means that the space is wasted.

Trimming can be dynamically controlled through a sysctl option (/proc/sys/vm/nr_trim_pages) which specifies the minimum number of excess pages there must be before trimming should occur, or zero if no trimming is to occur.

This option specifies the initial value of this option. The default of 1 says that all excess pages should be trimmed.

See Documentation/nommu-mmap.txt for more information.



Raw data from LKDDb:


This page is automaticly generated with free (libre, open) software lkddb(see lkddb-sources).

The data is retrived from:

Automatic links from google (and ads)

Custom Search

Popular queries:

Navigation: Linux Kernel Driver DataBase - web LKDDB: main index - N index

Automatically generated (in year 2014) with in lkddb-sources.