3

I have a couple of vm's running on windows server 2008 and since they are set up to build work project at 3am it seems the memory they use is getting paged to disk and taking for ever to start up when i log back into them. Is there any way to stop the os paging vmware?

Chopper3
  • 100,240
  • 9
  • 106
  • 238
Lodle
  • 171
  • 1
  • 7

2 Answers2

4

There is an option in settings (memory) that allows you to select how vm workstation swaps ram to page file. After disabling this the vm's became so much more responsive.

Lodle
  • 171
  • 1
  • 7
2

First take a look at my answer here. Also since you said they were building it might be that they are experiencing the condition here

If neither of these article help there are some other last resort things you can try:

  1. remove the guests page file ( note that that action might make them run out of memory)
  2. increase the reserve on the host
  3. lastly you could delete the hosts page file. I would do this as a last resort as if it really pagefaults that much it's likely you are using up more ram than you physically have, in which case you would run out of memory.
Jim B
  • 23,938
  • 4
  • 35
  • 58
  • Telling VMware to use only physical memory for VMs (as the OP discovered on his own) was the first thing to do here. – Massimo Jul 20 '11 at 07:44
  • @Massimo - can you tell us where this elusive setting is please? – Lewis Jul 20 '11 at 08:07
  • In VMware Server's host settings. It's not elusive at all, actually... – Massimo Jul 20 '11 at 09:50
  • @massimo, yes that solves the problem but I still wonder why vmware is dropping pages from ram. Typically applications shouldn't deallocate pages the kernel does that - or am I missing something?. – Jim B Jul 21 '11 at 12:51
  • @Jim: who said it was VMware paging them? It just chooses wheter to allocate the pages as swappable or locked in memory, then it's the O.S. which eventually swaps them if it needs to. – Massimo Jul 21 '11 at 13:24
  • @Massimo Perhaps I misread the OP question. it sounded to me like the guests were somehow being forced to reload pages from disk. Unless the Vm was using more ram than was allocated, windows 2008 will not simply drop the ram. However since the solution was to stop the way the host pages ram the same behavior applies (presuming the host OS is windows) – Jim B Jul 22 '11 at 00:48