diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-01-08 13:04:47 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2009-01-08 13:04:47 +0100 |
commit | dd8632a12e500a684478fea0951f380478d56fed (patch) | |
tree | 1a12f441f9de14fd233faa92cf13a5fbb0319f41 /crypto | |
parent | NOMMU: Make VMAs per MM as for MMU-mode linux (diff) | |
download | linux-dd8632a12e500a684478fea0951f380478d56fed.tar.xz linux-dd8632a12e500a684478fea0951f380478d56fed.zip |
NOMMU: Make mmap allocation page trimming behaviour configurable.
NOMMU mmap allocates a piece of memory for an mmap that's rounded up in size to
the nearest power-of-2 number of pages. Currently it then discards the excess
pages back to the page allocator, making that memory available for use by other
things. This can, however, cause greater amount of fragmentation.
To counter this, a sysctl is added in order to fine-tune the trimming
behaviour. The default behaviour remains to trim pages aggressively, while
this can either be disabled completely or set to a higher page-granular
watermark in order to have finer-grained control.
vm region vm_top bits taken from an earlier patch by David Howells.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Mike Frysinger <vapier.adi@gmail.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions