VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 2 3 Previous Next 44 Replies Last post: Feb 15, 2006 1:00 AM by lolz   Go to original post

Re: New Laptop = VMware slower?!

31. Nov 21, 2005 4:03 PM in response to: ScatterBrain
Click to view dfranz's profile Lurker 8 posts since
Nov 10, 2003
I have been working with an Inspiron 6000 running Libranet Gnu/Linux(Debian 3.1 with some admin
tools and some other software added) and with kernel 2.6.14-2. I have made sure that I am
in performance mode and have used gkrellm (compiled from latest source) and the gkfreq plugin
to monitor the frequency. It is at 1600 mHz continuously and I have a 1.6 GHz Pentium M CPU.
Also the real-time clock is rtc not genrtc. Currently I'm not concerned with poor time keeping in
the W2K guest-later on that one.

I am using Workstation 5.0 with a W2K guest at SP2. Boot and shutdown times are
very slow. Also opening any application takes many seconds. I have my W2K desktop set to
open apps with a single click. When I single click on an icon, nothing happens for many seconds
but finally the selected application will open. Also the cursor is often missing in text dialogs,
such as the login dialog, as well as sometimes in a command-prompt window. In the later the
cursor comes and goes based on what has been done in the window.

Run-time performance of my applications, at least those that do not write much to the screen,
appears to be unaffected. However, I can type at the command line faster than the system
can keep up. Even during login, typing the password has the asterisks one or two characters
behind the key being struck. I have never seen this behavior before. Its like the refresh operations
on the screen are orders of magnitude too slow. But compute intensive and even disk I/O
intensive operations complete as I expect!?

The really strange result is that I can speed the boot process to nearly what I have had on
my previous laptop, an Inspiron 8100, by resizing the Vmware window continuously during the
boot process. The same works for shutdown. Also when W2K is finally up, double clicking on an
icon will bring the application up immediately. In fact the second click can be any place on the
desktop(outside of another icon or command-prompt window). The other characteristic that
is strange is that the task manager shows 100% CPU use on W2K even with the most minor
operation. At the same time gkrellm shows essentially zero CPU on Linux. This occurs outside
of CPU intensive applications. Examples, are opening and closing Explorer, loading Internet
Explorer, etc. The mouse pointer shows the hourglass for a long time after the app is open.
Sometimes just clicking on the desktop clears the hourglass!

It seems to me that something is amiss with interupt handling or with the W2K graphics being
starved for CPU cycles. I was using APCI and not APM. However, I have just recompiled
the kernel using only APM and Vmware is back! The bootup and shutdown are like they should
be, a single click on an icon brings up the app rapidly, etc.

The CPU appears to be running at full speed always with no way of reducing it. The centrino
cpu frequency scaling system appears to depend on APCI being present.

Thus ScatterBrain and other posters with similar problems might want to try recompiling the
kernel using APM and not APCI. Perhaps there is a kernel boot parameter that will fix the
interupt handling with graphics that seems to be at the root of the problem. My BIOS is a bit
out of date, at A07 and with A09 available. The A08 BIOS update mentioned some changes
to the video BIOS, but I'm not sure that is related to the current problem. My video card
is an ATI M22 (Radeon Mobility M300) according to lspci.

This fix comes at the cost of some other functionality. Hopefully there is a fix via a boot
parameter for the problem with APCI on this latptop.

Delbert Franz

Re: New Laptop = VMware slower?!

32. Nov 26, 2005 7:59 AM in response to: dfranz
Click to view lolz's profile Novice 9 posts since
May 17, 2005
hi,

sorry, I had very little time to try to solve this issue, but here is what I did today:
- Adjusted Windows for "best performances" (probably the most important thing to do)

Here is my VMWare config file :
--------------------------------------------------
#!/usr/local/bin/vmware
config.version = "8"
virtualHW.version = "4"
memsize = "320"
displayName = "Windows XP Professional"
guestOS = "winxppro"
nvram = "Windows XP Professional.nvram"
#paevm=true

svga.maxWidth = "1920"
svga.maxHeight = "1200"
svga.vramSize = 9216000

ide0:0.present = "TRUE"
ide0:0.fileName = "Windows XP Professional.vmdk"
ide0:0.redo = ""

isolation.tools.hgfs.disable = "TRUE"
snapshot.disabled = "TRUE"

ide0:1.present = "TRUE"
ide0:1.fileName = "/dev/scd0"
ide0:1.deviceType = "atapi-cdrom"
floppy0.startConnected = "FALSE"

ide0:1.startConnected = "TRUE"
tools.syncTime = "FALSE"
--------------------------------------------------

With all this, I was able to obtain some pretty good performances. The trouble is that I need networking for my guest OS. As soon as I reinstalled the network adapter, the VMWare tools started to take 2 or 3 min again before becoming "enabled"... I disabled DHCP and it is now much better, but still not perfect.

Anyway, I now re-enabled acpi support on my host OS and powernowd, and I really don't see any difference. Even the fglrx drivers are probably not useful to speed up VMWare (I will verify this latter because I need to restart X).

To summarise, the best things to do to get decent performances without loosing too much time are probably:
- and maybe also to remove the usb adapter

Re: New Laptop = VMware slower?!

33. Dec 7, 2005 8:31 AM in response to: ScatterBrain
Click to view tepsipakki's profile Lurker 5 posts since
Nov 25, 2005
I don't have performance problems with Ubuntu, but the dmesg-messages were familiar and there is a bug opened:

https://bugzilla.ubuntu.com/show_bug.cgi?id=17569

to quickly fix the issue, run "sudo /etc/init.d/hotkey-setup stop"

Re: New Laptop = VMware slower?!

34. Dec 9, 2005 10:32 AM in response to: ScatterBrain
Click to view Canada_ eh_'s profile Lurker 3 posts since
Dec 9, 2005
ScatterBrain,

I'm trying to figure out if we hve the same problem. Every two, three seconds or so, my WMware freezes for half a second. Not WMware itself, but the guest OS running in WMware.

I have a Dell Latitude D810 with XP pro. The virtual machines I'm running are W2000 installations. I have tryed everything - resinstalling WMware, disabling speed stepping, disabling DVD and USB in the virtual machine.

It would be interesting if we have the same problem, since you are running Linux and I'm running XP.

Re: New Laptop = VMware slower?!

35. Dec 29, 2005 1:54 AM in response to: Canada_ eh_
Click to view rtd.img's profile Lurker 1 posts since
Dec 29, 2005
Canada, eh?,

I have exactly the same problem and - coincidence or not - with a Dell laptop too (D505, Centrino 1.7GHz, 512MB, XP+SP2). I installed an XP guest on an XP host and every 3..4 seconds the guest freezes. I have also tried: with ot without VMware tools, reinstalling the guest, reinstalling VMware, reinstalling the host, disabling speed stepping, fixed the timing, disabling DVD, USB, PCMCIA controller and the WiFi. No use at all.

And it is very annoying because:
1. I watched the performance of both machines (host and guest) at high speed. During the freeze time, the CPU used by the vmware-vmx process on the host drops to 0 (leading to almost 99% idle), while in the guest the task manager freezes too, but when it comes back it looks like nothing has happened;

2. Because of these "freeze points" the Windows input events are incorrectly processed: some keys input from the keyboard are lost, some keys input from the keyboard are duplicated, some mouse clicks - or, more specifically, mouse button ups or downs - are lost. This mouse behaviour results into a very, very ugly Windows behaviour: clicks are forgotten, clicks become drag-and-drop, drag-and-drops can't be completed, and many other.

Beside this... the guest works Ok and the host is not influenced of such problems.

Re: New Laptop = VMware slower?!

36. Dec 29, 2005 6:52 PM in response to: rtd.img
Click to view s.c.v's profile Lurker 5 posts since
May 2, 2005
Have any of you tried loading down the host OS slightly (e.g., "nice +10 ls -lR /")? I found this to help the guest performance for some reason on my Dell M50 (see yesterday's thread at http://www.vmware.com/community/thread.jspa?threadID=29012&tstart=40

I would be interested in hearing if you observe the same effect.

Is this strictly a problem with the Dell laptops?

Re: New Laptop = VMware slower?!

37. Jan 3, 2006 11:30 AM in response to: s.c.v
Click to view Canada_ eh_'s profile Lurker 3 posts since
Dec 9, 2005
Loading the host OS didn't affect anything. (I used the search tool in Windows to load the OS.)

However, looking at the VM's log file I found the following messages:
============================================================
Jan 03 11:10:21: vmx| SCSI0:0: Command READ(10) took 1.061 seconds (ok)
Jan 03 11:10:24: vmx| SCSI0:0: Command READ(10) took 1.079 seconds (ok)
Jan 03 11:10:24: vmx| SCSI0:0: Command READ(10) took 1.078 seconds (ok)
Jan 03 11:10:24: vmx| SCSI0:0: Command READ(10) took 1.078 seconds (ok)
Jan 03 11:10:24: vmx| SCSI0:0: Command READ(10) took 1.059 seconds (ok)
Jan 03 11:10:24: vmx| SCSI0:0: Command READ(10) took 1.056 seconds (ok)
Jan 03 11:10:27: vmx| SCSI0:0: Command READ(10) took 1.126 seconds (ok)
Jan 03 11:10:27: vmx| SCSI0:0: Command READ(10) took 1.068 seconds (ok)
Jan 03 11:10:27: vmx| SCSI0:0: Command READ(10) took 1.059 seconds (ok)
Jan 03 11:10:27: vmx| SCSI0:0: Command READ(10) took 1.059 seconds (ok)
Jan 03 11:10:30: vmx| SCSI0:0: Command READ(10) took 1.125 seconds (ok)
Jan 03 11:10:30: vmx| SCSI0:0: Command READ(10) took 1.116 seconds (ok)
Jan 03 11:10:30: vmx| SCSI0:0: Command READ(10) took 1.116 seconds (ok)
Jan 03 11:10:30: vmx| SCSI0:0: Command READ(10) took 1.116 seconds (ok)
Jan 03 11:10:30: vmx| SCSI0:0: Command WRITE(10) took 1.106 seconds (ok)
============================================================

This is interesting because it coincides with the "stalls" on my guest OS. Every 3-4 seconds it stalls for a second.

Does anyone know what this message means?

Re: New Laptop = VMware slower?!

38. Jan 4, 2006 11:19 PM in response to: Canada_ eh_
Click to view s.c.v's profile Lurker 5 posts since
May 2, 2005
Dunno. The performance on my Dell M70 is pretty unusable now. Supposedly, my company has set up a Platinum support contract with VMware that should start tomorrow. I'll put in a request via that channel and post back to this thread if I learn anything.

Re: New Laptop = VMware slower?!

39. Jan 5, 2006 12:52 AM in response to: s.c.v
Click to view jrj's profile Novice 12 posts since
Nov 25, 2005
I have this problem as well using suse linux 10 on a fujitsu laptop (so its not just dell machines). I have also found that the problem only occurs when I run vmware on a linux host (and not on a windows host).

I've found two ways to work around it.

1. set noacpi as a host kernel boot option
2. set the scaling govenor to performance and put a load on the host machine. I run a do nothing shell script at nice 19 to provide a load to the machine while running vmware, since turning off acpi breaks too many things.
nice 19 busyloop
cat bin/busyloop
while ( true ) ; do a=$a; done

As I understand the problem (and I could be wrong) there is a problem with the idle task using C3 sleep states, hence putting a load on the system keeps linux from scheduling the idle task and vmware runs much better (well at least for me).

There is a caveat about my machines acpi support, I have not been able to successfully recompile its dsdt, because it has several errors in it that I haven't been able to figure out how to fix yet.

Re: New Laptop = VMware slower?!

40. Jan 5, 2006 7:06 AM in response to: jrj
Click to view haerench's profile Lurker 1 posts since
Apr 10, 2005
I'm using fedora core 4 as host OS with vmware workstation 5.5.1 on a dell D810 (2Ghz, 2GB mem, 80GB disk). Windows XP is extreme slow as guest OS. I also use solaris 10 as guest OS. The performance of Solaris 10 is normal.
My dell has a SATA hard disk and dvd+-rw. I tried everything from deleting usb, dvd, ... in the windows XP. Also disabled acpi, cpuspeed, .... ; but no luck. Performance for Win XP stays very slow.
Performance is good when I use the loop script in my host OS. Even with acpi, usb and dvd enabled performance is good (as long as I keep the script running). When I stop the script, the performance drops to very slow.

Re: New Laptop = VMware slower?!

41. Jan 5, 2006 8:11 AM in response to: haerench
Click to view jrj's profile Novice 12 posts since
Nov 25, 2005
kl1278 has posted another solution (setting max_cstate) in this thread http://www.vmware.com/community/thread.jspa?messageID=312185&#312185 it requires root access and setting the scaling governor to performance but it works better for me than the busy loop (the fan isn't constantly on now).

Re: New Laptop = VMware slower?!

42. Jan 27, 2006 8:51 AM in response to: rtd.img
Click to view skr's profile Lurker 1 posts since
Jan 27, 2006
I'm having this same problem on a Dell Latitude D610. Has anyone found a solution yet?

Re: New Laptop = VMware slower?!

43. Feb 14, 2006 3:23 PM in response to: skr
Click to view Canada_ eh_'s profile Lurker 3 posts since
Dec 9, 2005
Doesn't look like that...

This is a strange problem. One Virtual Machine I have solved this issue by itself. It just started working as it should for some reason. But, sad to say, after I restarted that VM everything was as before again...

skr,

What host OS are you using?

Re: New Laptop = VMware slower?!

44. Feb 15, 2006 1:00 AM in response to: ScatterBrain
Click to view lolz's profile Novice 9 posts since
May 17, 2005
Have you read the link sent by jrj? The solution it provides is working well on an Inspiron 6000:

#!/bin/bash
echo 1 > /sys/module/processor/parameters/max_cstate
vmware
echo 8 > /sys/module/processor/parameters/max_cstate

VMware Developer

SDKs, APIs, Videos, Learn and much 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

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities