Re: [PATCH v2 2/4] numa: append per-node execution time in cpu.numa_stat

From: Michal Koutný
Date: Fri Jul 19 2019 - 12:39:41 EST


On Tue, Jul 16, 2019 at 11:40:35AM +0800, çè <yun.wang@xxxxxxxxxxxxxxxxx> wrote:
> By doing 'cat /sys/fs/cgroup/cpu/CGROUP_PATH/cpu.numa_stat', we see new
> output line heading with 'exectime', like:
>
> exectime 311900 407166
What you present are times aggregated over CPUs in the NUMA nodes, this
seems a bit lossy interface.

Despite you the aggregated information is sufficient for your
monitoring, I think it's worth providing the information with the
original granularity.

Note that cpuacct v1 controller used to report such percpu runtime
stats. The v2 implementation would rather build upon the rstat API.

Michal