Christoph Lameter ac2b898ca6 [PATCH] slab: Remove SLAB_NO_REAP option
SLAB_NO_REAP is documented as an option that will cause this slab not to be
reaped under memory pressure.  However, that is not what happens.  The only
thing that SLAB_NO_REAP controls at the moment is the reclaim of the unused
slab elements that were allocated in batch in cache_reap().  Cache_reap()
is run every few seconds independently of memory pressure.

Could we remove the whole thing?  Its only used by three slabs anyways and
I cannot find a reason for having this option.

There is an additional problem with SLAB_NO_REAP.  If set then the recovery
of objects from alien caches is switched off.  Objects not freed on the
same node where they were initially allocated will only be reused if a
certain amount of objects accumulates from one alien node (not very likely)
or if the cache is explicitly shrunk.  (Strangely __cache_shrink does not
check for SLAB_NO_REAP)

Getting rid of SLAB_NO_REAP fixes the problems with alien cache freeing.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: Mark Fasheh <mark.fasheh@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-22 07:53:59 -08:00
..
2006-01-01 22:21:50 +01:00
2006-01-14 10:55:12 -06:00
2006-01-14 10:55:12 -06:00
2006-01-14 10:55:12 -06:00
2006-02-22 14:35:52 -08:00
2006-02-04 16:19:08 -06:00
2006-03-20 20:21:24 +01:00
2006-03-11 17:57:20 -05:00
2006-01-12 09:09:05 -08:00
2006-02-20 16:55:56 -05:00
2006-02-20 02:16:23 -05:00
2006-03-02 22:44:06 -06:00
2006-03-01 14:45:47 -05:00
2006-02-27 21:25:40 -06:00
2005-12-17 10:50:23 -06:00
2006-01-12 09:09:04 -08:00