kernel-ark/kernel
Nick Piggin 8102679447 [PATCH] sched: improve load balancing pinned tasks
John Hawkes explained the problem best:

	A large number of processes that are pinned to a single CPU results
	in every other CPU's load_balance() seeing this overloaded CPU as
	"busiest", yet move_tasks() never finds a task to pull-migrate.  This
	condition occurs during module unload, but can also occur as a
	denial-of-service using sys_sched_setaffinity().  Several hundred
	CPUs performing this fruitless load_balance() will livelock on the
	busiest CPU's runqueue lock.  A smaller number of CPUs will livelock
	if the pinned task count gets high.

Expanding slightly on John's patch, this one attempts to work out whether the
balancing failure has been due to too many tasks pinned on the runqueue.  This
allows it to be basically invisible to the regular blancing paths (ie.  when
there are no pinned tasks).  We can use this extra knowledge to shut down the
balancing faster, and ensure the migration threads don't start running which
is another problem observed in the wild.

Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-25 16:24:40 -07:00
..
irq [PATCH] make various thing static 2005-06-24 00:06:43 -07:00
power [PATCH] swsusp: only allow it when it makes sense 2005-06-25 16:24:34 -07:00
acct.c
audit.c
auditsc.c
capability.c
compat.c
configs.c
cpu.c [PATCH] i386 CPU hotplug 2005-06-25 16:24:29 -07:00
cpuset.c [PATCH] remove duplicate get_dentry functions in various places 2005-06-23 09:45:20 -07:00
dma.c
exec_domain.c
exit.c [PATCH] Optimize sys_times for a single thread process 2005-06-23 09:45:30 -07:00
extable.c
fork.c
futex.c
intermodule.c
itimer.c
kallsyms.c
Kconfig.hz
kfifo.c
kmod.c [PATCH] Keys: Pass session keyring to call_usermodehelper() 2005-06-24 00:05:18 -07:00
kprobes.c [PATCH] jprobes: allow a jprobe to coexist with muliple kprobes 2005-06-23 09:45:25 -07:00
ksysfs.c
kthread.c
Makefile
module.c [PATCH] make various thing static 2005-06-24 00:06:43 -07:00
panic.c
params.c
pid.c
posix-cpu-timers.c
posix-timers.c
printk.c [PATCH] CPU hotplug printk fix 2005-06-25 16:24:34 -07:00
profile.c
ptrace.c
rcupdate.c
resource.c
sched.c [PATCH] sched: improve load balancing pinned tasks 2005-06-25 16:24:40 -07:00
seccomp.c
signal.c [PATCH] Software suspend and recalc sigpending bug fix 2005-06-23 09:45:27 -07:00
softirq.c
spinlock.c
stop_machine.c
sys_ni.c
sys.c [PATCH] properly stop devices before poweroff 2005-06-25 16:24:33 -07:00
sysctl.c [PATCH] setuid core dump 2005-06-23 09:45:26 -07:00
time.c
timer.c
uid16.c
user.c
wait.c
workqueue.c