Re: [PATCH] sched: Make schedstats a runtime tunable that is disabled by default
From: Ingo Molnar
Date: Tue Jan 26 2016 - 03:13:46 EST
* Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> wrote:
> - ttwu_stat(p, smp_processor_id(), 0);
> + if (schedstat_enabled())
> + ttwu_stat(p, smp_processor_id(), 0);
Yeah. I actually like this for the cleanup factor as well: your patch makes it a
_lot_ more obvious what is a statistics slowpath and what is not.
We tried to achieve that effect via the _stat() naming, but in hindsight that was
a failure.
Thanks,
Ingo