Re: [PATCH 2/4] numa: append per-node execution info in memory.numa_stat

2019-07-11 Thread 王贇
On 2019/7/11 下午9:45, Peter Zijlstra wrote: > On Wed, Jul 03, 2019 at 11:29:15AM +0800, 王贇 wrote: > >> +++ b/include/linux/memcontrol.h >> @@ -190,6 +190,7 @@ enum memcg_numa_locality_interval { >> >> struct memcg_stat_numa { >> u64 locality[NR_NL_INTERVAL]; >> +u64 exectime; > > Mayb

Re: [PATCH 2/4] numa: append per-node execution info in memory.numa_stat

2019-07-11 Thread Peter Zijlstra
On Wed, Jul 03, 2019 at 11:29:15AM +0800, 王贇 wrote: > +++ b/include/linux/memcontrol.h > @@ -190,6 +190,7 @@ enum memcg_numa_locality_interval { > > struct memcg_stat_numa { > u64 locality[NR_NL_INTERVAL]; > + u64 exectime; Maybe call the field jiffies, because that's what it counts.

[PATCH 2/4] numa: append per-node execution info in memory.numa_stat

2019-07-02 Thread 王贇
This patch introduced numa execution information, to imply the numa efficiency. By doing 'cat /sys/fs/cgroup/memory/CGROUP_PATH/memory.numa_stat', we see new output line heading with 'exectime', like: exectime 311900 407166 which means the tasks of this cgroup executed 311900 micro seconds on