lkml.org 
[lkml]   [2016]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched: Make schedstats a runtime tunable that is disabled by default
On Mon, Jan 25, 2016 at 10:05:31AM +0000, Mel Gorman wrote:
> schedstats is very useful during debugging and performance tuning but it
> incurs overhead. As such, even though it can be disabled at build time,
> it is often enabled as the information is useful. This patch adds a
> kernel command-line and sysctl tunable to enable or disable schedstats on
> demand. It is disabled by default as someone who knows they need it can
> also learn to enable it when necessary.

So the reason its often enabled in distro configs is (IIRC) that it
enables trace_sched_stat_{wait,sleep,iowait,blocked}().

I've not looked at the details of this patch, but I suspect this patch
would make these tracepoints available but non-functional unless you
poke the magic button.


\
 
 \ /
  Last update: 2016-01-25 12:41    [W:0.090 / U:1.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site