• K
    sched: reduce schedstat variable overhead a bit · 480b9434
    Ken Chen 提交于
    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: NKen Chen <kenchen@google.com>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    480b9434
sched_stats.h 7.0 KB