[patch 22/23] dynticks: increase SLAB timeouts
- From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
- Date: Fri, 29 Sep 2006 23:58:42 -0000
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/
- Follow-Ups:
- Re: [patch 22/23] dynticks: increase SLAB timeouts
- From: Andrew Morton
- Re: [patch 22/23] dynticks: increase SLAB timeouts
- References:
- [patch 00/23]
- From: Thomas Gleixner
- [patch 00/23]
- Prev by Date: [patch 09/23] dynticks: extend next_timer_interrupt() to use a reference jiffie
- Next by Date: [patch 12/23] hrtimers: clean up callback tracking
- Previous by thread: Re: [patch 09/23] dynticks: extend next_timer_interrupt() to use a reference jiffie
- Next by thread: Re: [patch 22/23] dynticks: increase SLAB timeouts
- Index(es):