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

Andrey Ryabinin aryabinin at virtuozzo.com
Fri Oct 30 19:19:19 MSK 2020



On 10/28/20 6:57 PM, Konstantin Khorenko wrote:
> 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(-)
> 

Reviewed-by: Andrey Ryabinin <aryabinin at virtuozzo.com>


More information about the Devel mailing list