VMware
1 2 Previous Next 28 Replies Last post: Dec 29, 2006 12:50 PM by micah   Go to original post

Re: Idle linux guest VM <=> 30% host cpu usage ???

15. Dec 24, 2006 7:48 PM in response to: HPReg
Click to view rcardona2k's profile Champion vExpert 5,515 posts since
Oct 20, 2005
The script is called vm-support but unfortunately it's missing for OS X on Fusion.

There's a thread that covers this here:
Where is the Service Request vm-support script located?

I have SR 346464 open for this issue. In the meantime, you can archive or tar up the VM's .vmx and .log files, and provide some information from system_profiler or save the same report from Apple System Profiler and include it in the archive.

Re: Idle linux guest VM <=> 30% host cpu usage ???

16. Dec 25, 2006 1:20 AM in response to: arnaudsj
Click to view blackpuma's profile Hot Shot 208 posts since
May 5, 2005
Hey, I'm seeing beween 12-22% CPU usage with CentOS 4.4 (all updates). I've not done any kernel or system parameter tweaking. Just applied updates via yum.

Host: MBP, 2 cores, 2GB RAM
Guest: CentOS 4.4, 1 virtual CPU.

I assume you've looked at the daemons that are enabled, e.g. with Applications > System Settings > Service Settings > Services ("Service Configuratin")

Re: Idle linux guest VM <=> 30% host cpu usage ???

17. Dec 25, 2006 4:02 PM in response to: arnaudsj
Click to view amr.malik's profile Lurker 4 posts since
Dec 22, 2006
I have RHEL4 installed on a VM (1GB, 2 virt. cpus) and after the install, with just X running, I was seeing 120% (I know it is higher than pretty much anyone has posted in this thread). My machine is MBPC2D 2.16ghz, 2GB RAM . I did install the utilities, but during shutdown, VMWare said i needed to install the acceleration etc. utilities.

Any news on when a release without the DEBUG option will be available? Right now, it's a bit iffy especially if I want to do some semi serious demo'ing on my notebook.
Click to view HPReg's profile Hot Shot VMware Employees 406 posts since
Dec 22, 2004
Yes, 120% (and anything over a few percent for that matter) is abnormal.

Any news on when a release without the DEBUG option will be available?

Usually we flip the DEBUG switch when we go from the "beta" denomination to the "release candidate" denomination. I'm not allowed to give you explicit dates.
Click to view jennyberglund's profile Novice VMware Employees 10 posts since
Oct 16, 2006
Just a note: The support script is actually available in the new beta build.

/Library/Application Support/VMware Fusion/vm-support-mac.tool

Re: Idle linux guest VM <=> 30% host cpu usage ???

20. Dec 27, 2006 1:02 PM in response to: HPReg
Click to view amr.malik's profile Lurker 4 posts since
Dec 22, 2006
Yes, 120% (and anything over a few percent for that
matter) is abnormal.

Even after restart, both cores are hitting 20-30% just with X running. It's no problem though, I was just so excited I told a couple clients I could demo some stuff, but maybe I'll just hold off a little bit and get the non DEBUG version before I go out on a limb there.

Usually we flip the DEBUG switch when we go from the
"beta" denomination to the "release candidate"
denomination. I'm not allowed to give you explicit
dates.

No worries, good to know that it is in the works. So, technically, if I knew which bit to flip, I could patch the binary and turn DEBUG off? ;-)
Click to view blackpuma's profile Hot Shot 208 posts since
May 5, 2005
technically, if I knew which bit to flip, I could
patch the binary and turn DEBUG off? ;-)

:) Though, if it's a compiler option and/or #define, that wouldn't work anyhow. :)

Re: Idle linux guest VM <=> 30% host cpu usage ???

23. Dec 27, 2006 7:55 PM in response to: arnaudsj
Click to view rcardona2k's profile Champion vExpert 5,515 posts since
Oct 20, 2005
With Windows XP Pro VM it is about the same issue 15-20% CPU usage while idling.
Anyway to know if debugging is the reason for this high CPU usage?

From my VMware Server beta testing is this accurate for debugging code. You could try running the same tests under Workstation 6.0 beta to compare either under Boot Camp or on a similar PC. On OS X, you won't be able to compare with a release product until there's a GA version then the idling CPU drops to low single digit utilization.

Re: Idle linux guest VM <=> 30% host cpu usage ???

24. Dec 29, 2006 12:31 AM in response to: arnaudsj
Click to view debosberg's profile Lurker 5 posts since
Dec 29, 2006
Same issue here. My MBP uses around 30% cpu when XP Home Edition idles. I configured fusion to use an 8 Gb partition, 2 cpu's and 256 Mb memory space. My machine's configuration:

MacBookPro, 15", 2 GHz Intel Core Duo, 1GB 667 MHz DDR2 SDRAM, OS X 10.4.8, VMware Fusion e.x.p (36932)
Click to view rcardona2k's profile Champion vExpert 5,515 posts since
Oct 20, 2005
Did you install the VMware Tools in XP? Run taskmgr in XP and make sure the guest is truly idle, i.e. the System Idle process should be consuming over 95% of the CPU. Check "show processes from al users" as Windows can shelter many CPU robbers.
Click to view debosberg's profile Lurker 5 posts since
Dec 29, 2006
Thanks for the quick reply. Yes, I run VMware tools. I just checked, XP is ~97% idle. But wait... VMware now uses only about 10-13 % cpu when idle...? Some experimenting shows that my eToken USB stick (for VPN) seems to be the culprit. When I plug it in, vmware-vmx-debug goes up to ~30% and stays there (XP is still ~97% idle). When I unplug it, vmware drops to 10-13 % again. Is that expected behaviour? What cpu load would you expect in an idle state (with or without eToken)?

(BTW: The eToken is in fact the reason I'm considering VMware to run XP. My company only supports VPN for a Windows client).
Click to view rcardona2k's profile Champion vExpert 5,515 posts since
Oct 20, 2005
When I unplug it, vmware drops to 10-13 % again. Is that expected behaviour? What cpu load would you expect in an idle state (with or without eToken)?

Currently with the Debug code in Fusion, I think 10-12% of host CPU when the guest is idle is normal. I have a vSMP guest with 2 processors and my host CPU still idles at 12%. I figure that's 6%/core which I find acceptable. Other users that only use one virtual CPU in the guest still see about the same CPU usage, so going to one processor in the guest doesn't seem to help.

On your USB device cpu behavior, I don't have any external USB devices around to test with so I can't comment if this is normal. I could try connecting my iSight and see if this affects host CPU

Re: Idle linux guest VM <=> 30% host cpu usage ???

28. Dec 29, 2006 12:50 PM in response to: rcardona2k
Click to view micah's profile Enthusiast VMware Employees 63 posts since
Nov 7, 2005
Yes, it is normal for host CPU usage to be a little higher when USB devices are connected to the guest, even if the guest isn't actively using those devices.

I usually see a difference of under 5% between idle load with and without USB devices: so the more dramatic difference you're seeing is probably due to debug code in the beta build. This is also probably something we'll be able to optimize more before releasing the next beta.

Thanks!
--Micah

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities