[Devel] [PATCH rh8 0/3] vecalls: Implement VZCTL_GET_CPU_STAT ioctl

Andrey Ryabinin aryabinin at virtuozzo.com
Tue Nov 10 20:41:23 MSK 2020



On 11/10/20 12:44 PM, Konstantin Khorenko wrote:
> Used by vzstat/dispatcher/libvirt.
> Faster than parsing Container's cpu cgroup files.
> 
> Konstantin Khorenko (3):
>   vecalls: Add cpu stat measurement units comments to header
>   ve/sched/loadavg: Provide task_group parameter to get_avenrun_ve()
>   vecalls: Introduce VZCTL_GET_CPU_STAT ioctl
> 
>  include/linux/sched/loadavg.h   |  2 -
>  include/linux/ve.h              |  2 +
>  include/uapi/linux/vzcalluser.h | 14 +++----
>  kernel/sched/loadavg.c          | 12 +++++-
>  kernel/sys.c                    |  6 ++-
>  kernel/time/time.c              |  1 +
>  kernel/ve/ve.c                  | 18 +++++++++
>  kernel/ve/vecalls.c             | 66 +++++++++++++++++++++++++++++++++
>  8 files changed, 109 insertions(+), 12 deletions(-)
> 
Reviewed-by: Andrey Ryabinin <aryabinin at virtuozzo.com>


More information about the Devel mailing list