Top not accurately reporting inside VM.

Lee

New Member
Mar 8, 2011
10
0
1
Hi,

I'm having an issue where top is extremely inaccurate when ran from inside a VM, with -50000000% cpu idle etc. A bit of digging hasn't found this to be a known issue, so I was wondering if anyone could shed some light on this?

Thanks
Lee

Top-on-vm.png
 
Is this an container or a KVM? I am running ubuntu 10.10 as a KVM and no problems:

top - 09:53:38 up 2:14, 2 users, load average: 0.00, 0.01, 0.05
Tasks: 105 total, 1 running, 104 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
Mem: 1022376k total, 460600k used, 561776k free, 376k buffers
Swap: 2301948k total, 0k used, 2301948k free, 277236k cached
 
It's in a container, we also don't have issues with KVMs either.

Is this an container or a KVM? I am running ubuntu 10.10 as a KVM and no problems:

top - 09:53:38 up 2:14, 2 users, load average: 0.00, 0.01, 0.05
Tasks: 105 total, 1 running, 104 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
Mem: 1022376k total, 460600k used, 561776k free, 376k buffers
Swap: 2301948k total, 0k used, 2301948k free, 277236k cached