Skip to content

cpuacct: split usage into user_usage and sys_usage

Zhao Lei linuxppc-dev lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 8 repliesIn review
  2. v33 patches 3 repliesSuperseded
  3. v22 patches 3 repliesSuperseded

Changes in v4 from the cover letter

1: Add a patch to use for_each_possible_cpu to iterate all cpus,

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4cpuacct: rename parameter in cpuusage_write for readabilitykernel/sched/cpuacct.c+5 -20 replies
2/4cpuacct: small restruct for cpuacctkernel/sched/cpuacct.c kernel/sched/cpuacct.h+7 -250 replies
3/4cpuacct: Show possible_cpu in cpuacctkernel/sched/cpuacct.c+5 -50 replies
4/4cpuacct: split usage into user_usage and sys_usagekernel/sched/cpuacct.c+113 -2714 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchTejun HeoSrikar Dronamraju
1/4A-b
2/4
3/4
4/4A-b Reported-and-Tested-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/4] cpuacct: split usage into user_usage and sys_usage

Sometimes, cpuacct.usage is not detialed enough to user to see how much usage a group used. We want to know how much time it used in user mode and how much in kernel mode.

This patch introduce some more files to tell user these information.

 # ls /sys/fs/cgroup/cpuacct/cpuacct.usage*
 /sys/fs/cgroup/cpuacct/cpuacct.usage
 /sys/fs/cgroup/cpuacct/cpuacct.usage_percpu
 /sys/fs/cgroup/cpuacct/cpuacct.usage_user
 /sys/fs/cgroup/cpuacct/cpuacct.usage_percpu_user
 /sys/fs/cgroup/cpuacct/cpuacct.usage_sys
 /sys/fs/cgroup/cpuacct/cpuacct.usage_percpu_sys

Changelog v3->v4:
1: Add a patch to use for_each_possible_cpu to iterate all cpus,

Changelog v2->v3:
1: Remove some unnecessary locks and so some cleanup based on
suggestion from Peter Zijlstra <[email protected]>

Changelog v1->v2:
1: Rebase on top of 4.5-rc6
2: Fix little spelling typo in description.
3: Fix line over 80 characters

Yang Dongsheng (2):
cpuacct: rename parameter in cpuusage_write for readability
cpuacct: split usage into user_usage and sys_usage.

Zhao Lei (2):
cpuacct: small restruct for cpuacct
cpuacct: Show possible_cpu in cpuacct

 kernel/sched/cpuacct.c | 173 ++++++++++++++++++++++++++++++++++---------------
 kernel/sched/cpuacct.h |   4 +-
 2 files changed, 124 insertions(+), 53 deletions(-)
Signature · 1 line
1.8.5.1