[Devel] [PATCH rh8 0/8] ve/proc/sched/stat: Virtualize /proc/stat in a Container

Konstantin Khorenko khorenko at virtuozzo.com
Wed Oct 28 18:57:29 MSK 2020


This patchset contains of parts of following vz7 commits:

  a58fb58bff1c ("Use ve init task's css instead of opening cgroup via vfs")
  ecdce58b214c ("sched: Export per task_group statistics_work")
  fc24d1785a28 ("fs/proc: print fairshed stat")
  75fc174adc36 ("sched: Port cpustat related patches")
  3c7b1e52294c ("ve/sched: Hide steal time from inside CT")
  3d34f0d3b529 ("proc/cpu/cgroup: make boottime in CT reveal the real start time")
  715f311fdb4a ("sched: Account task_group::cpustat,taskstats,avenrun")

Known issues:
 - context switches ("ctxt") and number of forks ("processes")
   virtualization is TBD
 - "procs_blocked" reported is incorrect, to be fixed by later patches

Konstantin Khorenko (8):
  ve/cgroup: export cgroup_get_ve_root1() + cleanup
  kernel/stat: Introduce kernel_cpustat operation wrappers
  ve/sched/stat: Add basic infrastructure for vcpu statistics
  ve/sched/stat: Introduce functions to calculate vcpustat data
  ve/proc/stat: Introduce /proc/stat virtualized handler for Containers
  ve/proc/stat: Wire virtualized /proc/stat handler
  ve/proc/stat: Introduce CPUTIME_USED field in cpustat statistic
  sched: Fix task_group "iowait_sum" statistic accounting

 fs/proc/stat.c              |  10 +
 include/linux/kernel_stat.h |  37 ++++
 include/linux/ve.h          |   8 +
 kernel/cgroup/cgroup.c      |   6 +-
 kernel/sched/core.c         |  17 +-
 kernel/sched/cpuacct.c      | 377 ++++++++++++++++++++++++++++++++++++
 kernel/sched/fair.c         |   3 +-
 kernel/sched/sched.h        |   5 +
 kernel/ve/ve.c              |  17 ++
 9 files changed, 475 insertions(+), 5 deletions(-)

-- 
2.28.0



More information about the Devel mailing list