Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm experiencing huge host CPU usage with an idle vmware guest.

Host:

Ubuntu 10.04 32-bit 2.6.32-24-generic-pae. (Very new install, i.e 24 hours ago)

Hardware is Dell XPS M1530 laptop, 4GB ram. Intel Core II Duo T9300 2.50Ghz

The virtualization setting "VT" or something is enabled in my bios.

Guest:

Completely fresh install of Windows Vista, upgraded to latest SP2 and all windows updates installed.

1024 - 1512MB ram allocated.

Absolutely no other software installed on it, apart from VMWare tools.

Situation

When the guest is doing absolutely nothing, I watch with sysinternals process watch on the guest. This shows that system idle process is between 70 and 99%, usually around 95%.

No actual process doing anything.

On the host, I watch with top, I get cpu usage of 20% - 80%, usually around 30%.

What I have tried

  • Single and Dual processor available to guest - no change.
  • Turn off all peripherals to guest - no network, drives, usb etc - no change.
  • Turn off 3d acceleration for guest - perhaps a small improvement, or no change.
  • Upping allocated ram to guest from 1024MB to 1512MB - no change.
  • Yelling at vmware - no change.

I have experienced a similar issue in the past, which was solved by setting the guest to have 1 CPU. This time that hasn't worked.

share|improve this question

3 Answers 3

Upgrade your system to something more recent, like Ubuntu 14.04 LTS! Your underlying host system is clearly ancient and out dated!

Also please note that with Vista around 1 GByte memory only the system is going to be quite fast at swapping. Consider raising it to 2 Gbyte or switching the guest over to Windows 7, which needs a far amount less memory for itself.

share|improve this answer
    
I don't think Ubuntu 14.04 was out when this question was posted. –  Wander Nauta Aug 14 at 14:23
    
"Your underlying host system is clearly ancient and out dated!" Glad you don't work at a bank, you'd have a seizure and start frothing at the mouth. Sorry, I just had to laugh, that made my day. –  Avery Payne Oct 8 at 18:21

It isn't reasonable to expect that all of the host CPU cycles will be available for the guest. There are a thousand places where computation will need to be done on the host, from displaying its own console to logging to calculating network checksums. If there is any iscsi going on this too will eat CPU. If the guest is accessing the disk for some reason but isn't using much CPU, you'll likely see more load in the host than the guest. The host might be processing traffic from the network and making routing decisions.

Given that this is an instance of some kind of vmware host in a ubuntu guest OS on a laptop, anything from the drivers which support the laptop hardware to cronjobs, update checking, time sync, and beyond can be consuming CPU. If there is software raid, there might also be some calculations going on for that. There could be filesystem indexing.

The best thing to do if it's really a concern for you (if you're not having any issues with resource scarcity it's not an issue), check out top on the host to see what processes are consuming cycles.

Note also that the processes consuming CPU might be niced. If this is the case, they will run with less priority (probably less priority than the guest) and will give way if the CPU is needed for other things.

share|improve this answer
1  
yours should have been the accepted answer - troubleshoot the cause of the CPU surge and proceed to triage, fix, or mitigate as needed. serverfault.com/questions/9306/… –  Avery Payne Oct 8 at 18:24

It is perfectly normal that your "System Idle Process" takes all of the cpu when no other process is working - that doesn't mean it is using 99% of your TOTAL cpu.

Inside your guest, press CTRL + SHIFT + ESC and search for CPU usage: without any other program running it should be below 10%, and that is the real figure that you want.

share|improve this answer
    
Thanks for you help. System idle process is fine - you are correct. But the problem is CPU usage on the host when the guest is doing absolutely nothing: "On the host, I watch with top, I get cpu usage of 20% - 80%, usually around 30%." It basically takes over my machine and I find it difficult to work. –  themesandmodules Aug 2 '10 at 11:34
    
Try running sysinternals on the host. –  jftuga Apr 4 '12 at 19:15
    
Are you sure the host cpu usage comes from VMware? post output from top maybe? –  Trondh Aug 28 '13 at 13:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.