Re: [PATCH] proc/schedstat: Expose /proc/<pid>/schedstat if delay accounting is enabled
From: Naveen N. Rao
Date: Fri Jun 26 2015 - 04:40:29 EST
On 2015/06/25 11:40AM, Cong Wang wrote:
> On Thu, Jun 25, 2015 at 11:27 AM, Naveen N. Rao
> <naveen.n.rao@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > The primary issue with CONFIG_SCHEDSTATS is the (slight) additional
> > overhead it introduces, per Kconfig. Due to this, it is not enabled by
> > default by some of the distro kernels.
> >
>
> The overhead is same for CONFIG_TASK_DELAY_ACCT since the
> core sched info code is protected by CONFIG_TASK_DELAY_ACCT
> or CONFIG_TASK_DELAY_ACCT?
CONFIG_SCHEDSTATS enables a lot more scheduler statistics
(/proc/schedstat) than just the task delay accounting enabled by
CONFIG_TASK_DELAY_ACCT. So, no - the overhead is not the same.
- Naveen
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/