]> git.hungrycats.org Git - linux/commit
[PATCH] rate limit nr_free_pages
authorAndrew Morton <akpm@osdl.org>
Wed, 4 Feb 2004 02:49:05 +0000 (18:49 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 4 Feb 2004 02:49:05 +0000 (18:49 -0800)
commitc7f6fcf55b7ce3cf61e0953a18e0ab9e70421a47
tree6b3390d0a61f5614ac6f54eab1c388c9422db557
parenta9b9b3c5ebb3f8d4814c10baf7176fd8711d063f
[PATCH] rate limit nr_free_pages

From: Jes Sorensen <jes@trained-monkey.org>

nr_free_pages() is expensive, especially on large SMP machines.  The patch
changes the memory overcommit code so that it only calls nr_free_pages() is
we're about to fail the allocation attempt.
security/commoncap.c