Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-09-2008, 06:10 PM
|
#1
|
Member
Registered: Mar 2004
Distribution: Gentoo
Posts: 41
Rep:
|
Virtual Machines eating 100% CPU
Well, for starters, I'm running Gentoo amd64 on an Inspiron 1720 with a 2GHz Core2Duo and 2 GB of ram using kernel version 2.6.26 patched with TuxOnIce.
Now, I've run into a mysterious problem I've been unable to pin down where any virtual machine (be that VirtualBox, VMWare, KVM, etc) uses 100% of one cpu. I've been unable to find a solution, only correlating problems.
After searching the net, I've found a few other people with a similar problem, and from what I've seen, all of us are using laptops with Core2Duo's. I'm not sure about the kernel versions, but I think they are all greater than 2.6.24. However, I've determined 2.6.24 still posses the problem (if it is even kernel based).
One person who had a similar problem noticed it appear only after switching from Ubuntu 8.4 to 8.10. This leads me to believe the kernel Ubuntu 8.10 brought in a kernel configuration possesing this particular problem not found in 8.4, but I'm quite uncertain about that, it is merely my best guess.
Any thoughts on what is causing this little problem?
|
|
|
11-09-2008, 06:46 PM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,314
|
What happens if you come up on only one CPU ?.
|
|
|
11-09-2008, 06:49 PM
|
#3
|
Member
Registered: Mar 2004
Distribution: Gentoo
Posts: 41
Original Poster
Rep:
|
I'm not entirely sure what you mean, but if you are talking about setting processor affinity to only one CPU or the other, the result is the same, 100% usage of whichever CPU the process is set on.
|
|
|
11-09-2008, 07:21 PM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,314
|
No I actually meant coming up with one CPU - pass maxcpus=1 to the bootloader so it runs "non-SMP". Just to eliminate SMP issues as a possibility. I've been thinking of trying out KVM on my core2duo laptop - maybe I should get organised and test it myself when I get home.
|
|
|
11-09-2008, 11:00 PM
|
#5
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,791
|
High virtual machine CPU usage might be due to the guest kernel configuration.
You can try adding parameters to disable acpi (acpi=false) or lower the kernel h/w clock check from 1kHZ to 100Hz (divider=10).
|
|
|
11-10-2008, 07:25 PM
|
#6
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,314
|
Interesting. I threw virt-manager at Fedora9, and set up a qemu KVM guest to install Archlinux on. Install went o.k., but it panics starting init. One CPU loops at 100% - regardless of whether I define the guest as 1 or 2 engines; don't know if that is expected for a panic at that stage. Got sidetracked and lost interest at that point - will investigate further.
|
|
|
All times are GMT -5. The time now is 03:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|