VMWare Player slows down computer after exit

7

2

After exiting VMWare player, my main OS (Windows 7) lags and slows down tremendously. The HDD is seeking excessively. I see that the issue is that it's swapping tons of pages rapidly. This lasts for about 5-10 minutes.

I followed the instructions here http://twigstechtips.blogspot.ca/2009/03/fix-vmware-slow-to-release-swapped.html but they don't work. It was 3 years ago so I think the fix is outdated.

Or rather I don't know where this guest.vmx file is. The closest thing I could find to a config file is C:\Users\Jack\AppData\Roaming\VMware\preferences.ini

Anyone have a new solution?

Jack

Posted 2012-05-13T23:41:28.220

Reputation: 2 411

Most likely, it's still processing a snapshot. You can turn this off or not use snapshots as much, but I would make sure this is what you want to do. – David Schwartz – 2012-05-13T23:44:20.277

How much physical ram do you have and how much are you allocating to the VM? – Paul – 2012-05-13T23:44:51.417

@Paul It's not a RAM problem. I have 8GB and giving 2GB to the VM. I can use both of them simultaneously with no performance problems. It is only when I exit the VMWare player that the slow down begins. – Jack – 2012-05-14T01:05:45.900

Report of a similar problem: http://superuser.com/questions/399446/saturated-i-o-after-shutting-down-vm

– ncoghlan – 2012-05-20T14:33:02.727

@ncoghlan You realize that there was no solution in that question, right? – Jack – 2012-05-21T19:05:49.760

@Jack - sure, just pointing out another report of the same problem. I haven't been able to find a fix (or even a good explanation) here, anywhere on the vmware site, or anywhere on the entire internet. – ncoghlan – 2012-05-22T06:32:28.407

I believe the 'guest.vmx' that Twig is referring to is the vmx file for your VM. For instance, my VM is called 'Fedora_17', so guest.vmx is actually 'Fedora_17/Fedora_17.vmx' in my VM folder. I haven't had a chance to confirm this though, as my VM stopped having this problem yesterday for no apparent reason. Try Twig's fix with that vmx file and see if it works for you. – Bfoust250 – 2012-09-11T12:07:26.150

@Bfoust250 Yea I actually figured that out a few months ago and it solved my issue. That blog post wasn't very clear. I don't know why that setting isn't set by default. But thanks though. – Jack – 2012-09-12T03:35:45.757

Answers

10

vmx is refering to the .vmx file of you machine. So if your machine's name is webDev2012 then the file you should search is webDev2012.vmx

Open this file and add these three lines:

mainMem.useNamedFile = "FALSE"

prefvmx.useRecommendedLockedMemSize = "TRUE"

prefvmx.minVmMemPct = "100"

enojoy...

F Boucheros

Posted 2012-05-13T23:41:28.220

Reputation: 615

1

The original source of these instructions appears to be Bryon Brewer's blog article "VMWare Guest Shutdowns very slow". Per that article, the file to edit is actually \ProgramData\VMware\VMware Player\config.ini (replace "VMware Player" with "VMware Workstation" if that's what you're using).

– bishop – 2014-08-29T13:45:44.100

My file is at C:\Users\UserName\Documents\VirtualMachines\Ubuntu64\Ubuntu64.vmx – Alaa M. – 2017-11-27T08:46:34.043