From: Ingo Molnar decrease the rate of SLAB timers going off. Reduces the amount of timers going off in an idle system. Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner -- mm/slab.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) Index: linux-2.6.18-mm2/mm/slab.c =================================================================== --- linux-2.6.18-mm2.orig/mm/slab.c 2006-09-30 01:41:09.000000000 +0200 +++ linux-2.6.18-mm2/mm/slab.c 2006-09-30 01:41:20.000000000 +0200 @@ -457,8 +457,13 @@ struct kmem_cache { * OTOH the cpuarrays can contain lots of objects, * which could lock up otherwise freeable slabs. */ -#define REAPTIMEOUT_CPUC (2*HZ) -#define REAPTIMEOUT_LIST3 (4*HZ) +#ifdef CONFIG_NO_HZ +# define REAPTIMEOUT_CPUC (4*HZ) +# define REAPTIMEOUT_LIST3 (8*HZ) +#else +# define REAPTIMEOUT_CPUC (2*HZ) +# define REAPTIMEOUT_LIST3 (4*HZ) +#endif #if STATS #define STATS_INC_ACTIVE(x) ((x)->num_active++) -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/