]> git.baikalelectronics.ru Git - kernel.git/commit
sched: reduce schedstat variable overhead a bit
authorKen Chen <kenchen@google.com>
Thu, 18 Oct 2007 19:32:56 +0000 (21:32 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 18 Oct 2007 19:32:56 +0000 (21:32 +0200)
commitace95b6fda8036f1670f1b4992ab27ccc09049eb
tree78c2638ac583cc57165ee1393ebbbbbe367f46fb
parent84eadfd9e3301955cb7173ee8e4122f06d43ec5d
sched: reduce schedstat variable overhead a bit

schedstat is useful in investigating CPU scheduler behavior.  Ideally,
I think it is beneficial to have it on all the time.  However, the
cost of turning it on in production system is quite high, largely due
to number of events it collects and also due to its large memory
footprint.

Most of the fields probably don't need to be full 64-bit on 64-bit
arch.  Rolling over 4 billion events will most like take a long time
and user space tool can be made to accommodate that.  I'm proposing
kernel to cut back most of variable width on 64-bit system.  (note,
the following patch doesn't affect 32-bit system).

Signed-off-by: Ken Chen <kenchen@google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h
kernel/sched.c
kernel/sched_debug.c
kernel/sched_stats.h