Skip to content
Commit 480b9434 authored by Ken Chen's avatar Ken Chen Committed by Ingo Molnar
Browse files

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: default avatarKen Chen <kenchen@google.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent cc4ea795
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment