From: Konstantin Khorenko <khore...@virtuozzo.com> /proc/vz/mmperf occasionally accounts/shows wall total time in both "Wall_tot_time" and "CPU_tot_time" columns, fix this.
Fixes: a258c15f2c33 ("vzstat: initial patch") https://pmc.acronis.com/browse/VSTOR-16659 Signed-off-by: Konstantin Khorenko <khore...@virtuozzo.com> (cherry-picked from 306162b35d018f97e3b175d6bb98a4d2632cf303) Signed-off-by: Andrey Zhadchenko <andrey.zhadche...@virtuozzo.com> diff --git a/kernel/ve/vzstat_core.c b/kernel/ve/vzstat_core.c index 7f8d346..f18767d 100644 --- a/kernel/ve/vzstat_core.c +++ b/kernel/ve/vzstat_core.c @@ -20,7 +20,7 @@ void KSTAT_PERF_ADD(struct kstat_perf_pcpu_struct *ptr, u64 real_time, u64 cpu_t cur->wall_tottime += real_time; if (cur->cpu_maxdur < cpu_time) cur->cpu_maxdur = cpu_time; - cur->cpu_tottime += real_time; + cur->cpu_tottime += cpu_time; write_seqcount_end(&cur->lock); put_cpu_ptr(cur); } -- 1.8.3.1 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel