LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 05-25-2010, 01:17 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
CPU usage - XP guest on Ubuntu 10.04 VMWare Player


Yesterday I rebuilt my Ubuntu 9.10 64 bit machine to 10.04 64 bit. All went well except for the nVidia driver which crapped out after I had finished installing 90% of my software. A couple of uninstall/reinstalls and a few good kicks and it is working. Much improved over 9.10.

So this morning I fired up an XP VMware guest in player 3.0.1 build-227600 newly installed on the Ubuntu host. I built the guest last year on Workstation 6.5 on Ubuntu 8.04 and have been running it on 9.10 for the last 6 months with no issues. However, when run on the 10.04 host the VM pegged 2 of the 8 host CPUs and slowed to a crawl. It did not do much for host performance either.

I found a couple of links discussing the issue. They are listed below:

http://www.loadyourself.com/linux/hi...files-on-ntfs/

http://it.thelibrarie.com/weblog/?p=315

The second one did the trick for me. Basically I did the following:

- downloaded the Intel network adapter driver here http://support.intel.com/support/net.../cs-006120.htm
- copy the driver to a flash drive which will be accessible to the guest
- added this line to the vmx file for the guest
Quote:
Ethernet0.virtualDev = "e1000"
- started the guest - note that it has not network capability at this point
- copied the Intel driver from the flash drive to the guest and installed it.

All is now well. Thanks to the original poster. I will leave this thread open for a few days for comments and then mark it resolved.

Ken
 
Old 05-26-2010, 11:57 AM   #2
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
I spoke too soon The fix seemed to work for a little while then back to the same problem. I copied a backup copy of the XP VM into place and it worked OK - for a while. Seems to be related to suspending the host with the VM running (perhaps) need to do some more testing.

Ken
 
Old 05-29-2010, 08:22 AM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Well here is what I have found so far... It I start from a cleanly rebooted host and then start the XP VM I get a message
Quote:
The host's Linux kernel yield() functionality is disabled. Multiprocessor virtual machines exhibit degraded performance without yield(). Choose 'OK' to enable the sysctl 'kernel.sched_compat_yield' or 'Cancel' to continue without yield().
It seems to make no difference if I choose to enable or not. The VM works OK.

n.b. The guest is configured to use 2 CPUs.

If I suspend the host while the VM is running and then bring the host back the VM is pegged at close to 200% CPU (2 CPUs at 100%) and it stays that way.

If I shut down the VM then suspend and bring back the host and restart the VM I see the same maxed out CPU situation.

Just for the halibut I switched the VM to 1 CPU. The problem has gone away and the performance of the VM seems to be as good as with 2 CPUs - although I have not done any formal benchmarking.

Ken
 
Old 06-05-2010, 09:37 PM   #4
...Max...
LQ Newbie
 
Registered: Jun 2010
Location: Plano, TX
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Identical issue with 64-bit Lucid host, 32-bit XP guest and vmWare 7.1: single-CPU VMs (tried 2 different ones and a variety of settings) run normally, multi-CPU VMs are dog slow (10x at least). Will investigate further to see if this is really related to host suspend/resume -- thus far I was indeed running on a host that's been suspended a few times before.
 
Old 06-07-2010, 07:17 AM   #5
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Max, Try setting the guest to 1 cpu. The performance does not seem to suffer greatly and the "peg cpu after suspend" issues seems to go away.

Ken
 
Old 06-07-2010, 11:23 PM   #6
...Max...
LQ Newbie
 
Registered: Jun 2010
Location: Plano, TX
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Oh, I tried that right away when I encountered this story of yours and it did indeed help. Here's the interesting part: after I did a clean reboot, the issue did not yet reproduce again. Tried suspending the laptop with VM running as well as without -- still going strong on 2 [virtual] CPUs. This bug is fixing to be a hard one to sell to vmWare
 
Old 06-10-2010, 06:12 PM   #7
...Max...
LQ Newbie
 
Registered: Jun 2010
Location: Plano, TX
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
...and half a dozen suspends/resumes later, the issue resurfaces. It's there all right, but intermittent
 
Old 11-28-2010, 07:38 AM   #8
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Well I do not know how, why or by whom but this issue appears to be fixed. Had occasion to add some horsepower to an XP VM for a particular task. Rebooted the host, bumped up the VM to 4 CPUs and completed the task at hand. Just for the halibut I shut down the VM, suspended and brought back the host and launched the VM. No CPU hogging - Hooray!

Ken
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Improving Windows XP guest in VMware Player LXer Syndicated Linux News 0 09-20-2008 09:41 PM
VMware with Vista Host - Ubuntu guest can't connect. SimbaSpirit Linux - Software 6 07-28-2008 01:01 AM
full cpu usage when using vmware overpencil Linux - Software 1 04-14-2008 11:24 PM
Copying files from Host (Ubuntu) to Guest (XP) OS with VMWare lebabyg Linux - Software 5 04-10-2007 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration