Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

Ubuntu 16.04 mpstat stops working after VM migration

$
0
0
I have some ubuntu 16.04 VM running on a KVM host running Red Hat 7.1 kernel. When I migrate the ubuntu VMs between hosts, the performance statistics reported by mpstat or the top section of top quit working.

E.G. This is an mpstat running on an idle VM when it is migrated between hosts. Not that the last entries are entirely 0, which should not be possible:
11:53:18 AM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
11:53:23 AM all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
11:53:23 AM 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00
11:53:23 AM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
11:53:28 AM all 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00 0.00 0.00
11:53:28 AM 0 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00 0.00 0.00
11:53:28 AM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
11:53:33 AM all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
11:53:33 AM 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

This is the same VM running a cpu-intensive workload. Note that the top section claims 100% idle, but the md5sum process is consuming 99.9% cpu:
top - 11:58:45 up 18:20, 1 user, load average: 0.15, 0.03, 0.01
Tasks: 120 total, 2 running, 118 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8175496 total, 7822328 free, 53328 used, 299840 buff/cache
KiB Swap: 4190204 total, 4190204 free, 0 used. 7849064 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3452 root 20 0 7300 664 592 R 99.9 0.0 0:07.37 md5sum
3453 root 20 0 41820 3880 3276 R 0.3 0.0 0:00.01 top
1 root 20 0 37828 5936 4032 S 0.0 0.1 0:01.44 systemd


If I reboot the VM, the statistics work as expected until I migrate the VM.
I have seen this issue every time I migrated a Ubuntu 16.04 VM.
I do not see any issues on the same hosts with CentOS 7.1 clients.

Thanks for any feedback,
David

Viewing all articles
Browse latest Browse all 4211

Trending Articles