Skip to contentSkip to conversation

node affine NUMA scheduler 2/5

PATCH New Erich Focht 1 participant 1 message Oct 14, 2002

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 node affine NUMA scheduler 2/5

---------- Resent Message ----------

Subject: [PATCH] node affine NUMA scheduler 2/5
Date: Fri, 11 Oct 2002 19:56:22 +0200

This is the second part of the node affine NUMA scheduler patches.

Quoted 5 lines

02-numa_sched_ilb-2.5.39-10.patch :
This patch provides simple initial load balancing during exec(). It is node aware and will select the least loaded node. Also it does a round-robin initial node selection to distribute the load better across the nodes.

Erich

fs/exec.c +1 -0
diff -urNp a/fs/exec.c b/fs/exec.c
@@ -993,6 +993,7 @@ int do_execve(char * filename, char ** a
 	int retval;
 	int i;
 
+	sched_balance_exec();
 	file = open_exec(filename);
 
 	retval = PTR_ERR(file);
include/linux/sched.h +3 -0
diff -urNp a/include/linux/sched.h b/include/linux/sched.h
@@ -461,6 +461,9 @@ extern void set_cpus_allowed(task_t *p, 
 extern void build_pools(void);
 extern void pooldata_lock(void);
 extern void pooldata_unlock(void);
+extern void sched_balance_exec(void);
+#else
+#define sched_balance_exec() {}
 #endif
 extern void sched_migrate_task(task_t *p, int cpu);
 
kernel/sched.c +72 -0

78 lines not on this page · raw message