Using NAT increases CPU utilization to 60%
Using NAT increases CPU utilization to 60%
Hi all,
I have Windows XP sp2 guest installed on Ubuntu Hardy(8.04) on Dell Inspiron 9300. Even when the guest is completely idle cpu utilization of Virtualbox hovers around 60%. By hit and trial I found that when I disable NAT(change NAT to Not connected) CPU utilization falls to ~7%. I have tried changing network adapters from PCNet-Fast III to Intel PRO 1000 T. But the problem persists. FYI my laptop is 1.7Ghz Intel Centrino with 1.5GB RAM. and I have not installed any updates on windows xp.
Please suggest a way to fix this problem.
Thanks in advance
EDIT: I am using Sun xVM Virtualbox v 1.6.4
I have Windows XP sp2 guest installed on Ubuntu Hardy(8.04) on Dell Inspiron 9300. Even when the guest is completely idle cpu utilization of Virtualbox hovers around 60%. By hit and trial I found that when I disable NAT(change NAT to Not connected) CPU utilization falls to ~7%. I have tried changing network adapters from PCNet-Fast III to Intel PRO 1000 T. But the problem persists. FYI my laptop is 1.7Ghz Intel Centrino with 1.5GB RAM. and I have not installed any updates on windows xp.
Please suggest a way to fix this problem.
Thanks in advance
EDIT: I am using Sun xVM Virtualbox v 1.6.4
-
frank
- Oracle Corporation
- Posts: 3362
- Joined: 7. Jun 2007, 09:11
- Primary OS: Debian Sid
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux, Windows
- Location: Dresden, Germany
- Contact:
It would be very easy for you to create a second VM. Just use some live CD, for instance Damn Small Linux, and boot it as a second concurrent instance. It is really possible that the idle load decreases as a second VM will change some internal VirtualBox parameters which may influence the host load.
I tried running second virtual machine and found out a peculiar occurrence. I ran ubuntu 8.04 as second vm. Here are my observations:
case 1:
Both VM's are running(idle) and no messenger application is running.
Windows: ~5%(on host) and 0-4%(on guest)
Ubuntu: ~5%(on host) and 0-4%(on guest)
case 2:
Both VM's are running(idle) and googletalk/yahoo messenger is running(i.e network is being accessed continuously)
Windows: ~20%(on host) and 30-40%(on guest)
Ubuntu: ~5%(on host) and 0-4%(on guest)
case 3:
Ubuntu is shutdown and only windows VM is running with googletalk/yahoo messenger running in background.
Windows: ~59%(on host) and 0-4%(on guest)
case 4:
Only windows VM is running with no messenger application running.
Windows: ~6%(on host) and 0-3%(on guest)
Strange observation is that Cpu utilization peaks as soon as network is accessed. But the spike is severe when only windows is running.
Second CPU utilization of guest (windows) increases when second vm is running. The excessive cpu is being used by messenger applications. but if I shutdown ubuntu vm CPU utilization on host increases(as stated in case 3) and cpu utilization on guest decreases (as stated in case 3). Hope I have clearly explained my observation.
If you want to me to perform some different experiment I can do that as well.
Thanks
case 1:
Both VM's are running(idle) and no messenger application is running.
Windows: ~5%(on host) and 0-4%(on guest)
Ubuntu: ~5%(on host) and 0-4%(on guest)
case 2:
Both VM's are running(idle) and googletalk/yahoo messenger is running(i.e network is being accessed continuously)
Windows: ~20%(on host) and 30-40%(on guest)
Ubuntu: ~5%(on host) and 0-4%(on guest)
case 3:
Ubuntu is shutdown and only windows VM is running with googletalk/yahoo messenger running in background.
Windows: ~59%(on host) and 0-4%(on guest)
case 4:
Only windows VM is running with no messenger application running.
Windows: ~6%(on host) and 0-3%(on guest)
Strange observation is that Cpu utilization peaks as soon as network is accessed. But the spike is severe when only windows is running.
Second CPU utilization of guest (windows) increases when second vm is running. The excessive cpu is being used by messenger applications. but if I shutdown ubuntu vm CPU utilization on host increases(as stated in case 3) and cpu utilization on guest decreases (as stated in case 3). Hope I have clearly explained my observation.
If you want to me to perform some different experiment I can do that as well.
Thanks
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
That does not explain why it would use considerably less CPU when a second VM is running. It could be coincidence, but I doubt it. From the moment he shut down one of the two guests and network is used by the other VM, CPU goes through the roof, but if he starts the second VM again, CPU goes down.paulsiu wrote:Have you check what activity windows is doing during those cpu utilization? For all I know, it could be downloading a huge update or installing a huge update that you keep killing.
bandit, do you have the same CPU usage if you create a new Windows VM? You don't have to activate it, as it's only a test and will be discarded before the 30 days end (unless it solves your problem, then you can keep this VM
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Thanks. It's really strange what you have. I have several Windows Guests, and if I run one or several at a time, none give me high CPU usage.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
TerryE
- Volunteer
- Posts: 3572
- Joined: 28. May 2008, 08:40
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
- Contact:
Are you using the correct HAL. See this post for a discussion of what to check.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.
I tried installing new windows VM. It has the same problem. If googletalk or yahoo messenger is running then CPU utilization is around 60%. If I close(or signout of) these applications utilization drops to 6% (on idle). CPU utilization is only high when an IM application is running. I tried installing skype but due to unknown reason skype crashes the moment it starts. I think the problem has something to do with network access.Thanks. It's really strange what you have. I have several Windows Guests, and if I run one or several at a time, none give me high CPU usage.
I checked the thread. Seems the problems are unrelated.Are you using the correct HAL. See this post for a discussion of what to check.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Does it happen with every IM client? I don't have Google Talk or Yahoo! Messenger, but I can test it with Trillian and MSN messenger. However, now that I think about it, I didn't have high CPU with those clients too (at least with Trillian for MSN).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.