[PATCH] reduce inter-node balancing frequency

From: Jesse Barnes
Date: Thu Jul 15 2004 - 17:30:48 EST


Nick, we've had this patch floating around for awhile now and I'm wondering
what you think. It's needed to boot systems with lots (e.g. 256) nodes, but
could probably be done another way. Do you think we should create a
scheduler domain for every 64 nodes or something? Any other NUMA folks have
thoughts about these values?

Thanks,
Jesse
===== include/linux/sched.h 1.227 vs edited =====
--- 1.227/include/linux/sched.h 2004-07-01 22:23:48 -07:00
+++ edited/include/linux/sched.h 2004-07-15 14:53:50 -07:00
@@ -651,9 +651,9 @@
.span = CPU_MASK_NONE, \
.parent = NULL, \
.groups = NULL, \
- .min_interval = 8, \
- .max_interval = 32, \
- .busy_factor = 32, \
+ .min_interval = 80, \
+ .max_interval = 320, \
+ .busy_factor = 320, \
.imbalance_pct = 125, \
.cache_hot_time = (10*1000000), \
.cache_nice_tries = 1, \
@@ -662,7 +662,7 @@
| SD_BALANCE_CLONE \
| SD_WAKE_BALANCE, \
.last_balance = jiffies, \
- .balance_interval = 1, \
+ .balance_interval = 10, \
.nr_balance_failed = 0, \
}
#endif