aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorMartin J. Bligh <mbligh@aracnet.com>2003-01-15 19:46:10 -0800
committerJustin T. Gibbs <gibbs@overdrive.btc.adaptec.com>2003-01-15 19:46:10 -0800
commitf01419fd6d4e5b32fef19d206bc3550cc04567a9 (patch)
tree333edf330dfc500904580ff4cbeb0fc14d37f79c /init
parent5f24fe82613b570ef31c9e62c5921edcd09b576f (diff)
downloadhistory-f01419fd6d4e5b32fef19d206bc3550cc04567a9.tar.gz
[PATCH] (2/3) Initial load balancing
Patch from Michael Hohnbaum This adds a hook, sched_balance_exec(), to the exec code, to make it place the exec'ed task on the least loaded queue. We have less state to move at exec time than fork time, so this is the cheapest point to cross-node migrate. Experience in Dynix/PTX and testing on Linux has confirmed that this is the cheapest time to move tasks between nodes. It also macro-wraps changes to nr_running, to allow us to keep track of per-node nr_running as well. Again, no impact on non-NUMA machines.
Diffstat (limited to 'init')
-rw-r--r--init/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index ec70f2fa704c4a..493e3715830ba8 100644
--- a/init/main.c
+++ b/init/main.c
@@ -495,6 +495,7 @@ static void do_pre_smp_initcalls(void)
migration_init();
#endif
+ node_nr_running_init();
spawn_ksoftirqd();
}