[patch 22/23] dynticks: increase SLAB timeouts

From: Thomas Gleixner
Date: Fri Sep 29 2006 - 20:06:09 EST


From: Ingo Molnar <mingo@xxxxxxx>

decrease the rate of SLAB timers going off. Reduces the amount
of timers going off in an idle system.

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
--
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/