VMware Cloud Community
AlbertWT
Virtuoso
Virtuoso
Jump to solution

Windows VM swap file needed ?

Hi,

Suppose you install VMware tools already in your Windows VM, do you still need to have Windows swapfile for all of the Windows edition (XP or Server) VM ?

/* Please feel free to provide any comments or input you may have. */
Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
bulletprooffool
Champion
Champion
Jump to solution

Yes, you do.

The OS swap file is for managing memory from an OS level.

The VMtools simply use the ballon driver for managing the amount of physical memory allocated to a VM.

so, if your VM has 2 GB of ram allocated and is using 1.8 - at an OS level, Windows will want to free up memory - to allow more RAM to be availabvlke for further transactions. If the ESX host is not constrained at this point - there is no need for it to use the balloon driver.

In the same way, if your ESX host is constrained and the VM is only using 1GB of RAM, but the host needs to meet reservation requiremtns of other VMs, it may choose to 'manage' the OS physical memory allocated.

the way in which Swap and the VMtools work is totally different and for different reasons, so I would continue to use MS swapfiles.

One day I will virtualise myself . . .

View solution in original post

Reply
0 Kudos
5 Replies
idle-jam
Immortal
Immortal
Jump to solution

since it's part of OS i would advise doing it, although we have vmware swap, OS swap will be the final staged to b used

AlbertWT
Virtuoso
Virtuoso
Jump to solution

ah ok, so I was wondering if using Guest OS swap file could potentially slowing it down, perhaps if it is WIndows Server it would be better to just disabling the swap file at all and then increasing the "paging size"

/* Please feel free to provide any comments or input you may have. */
Reply
0 Kudos
SlobodanS
Enthusiast
Enthusiast
Jump to solution

Hello,

This post can be helpfull

http://communities.vmware.com/message/56138

bulletprooffool
Champion
Champion
Jump to solution

Yes, you do.

The OS swap file is for managing memory from an OS level.

The VMtools simply use the ballon driver for managing the amount of physical memory allocated to a VM.

so, if your VM has 2 GB of ram allocated and is using 1.8 - at an OS level, Windows will want to free up memory - to allow more RAM to be availabvlke for further transactions. If the ESX host is not constrained at this point - there is no need for it to use the balloon driver.

In the same way, if your ESX host is constrained and the VM is only using 1GB of RAM, but the host needs to meet reservation requiremtns of other VMs, it may choose to 'manage' the OS physical memory allocated.

the way in which Swap and the VMtools work is totally different and for different reasons, so I would continue to use MS swapfiles.

One day I will virtualise myself . . .
Reply
0 Kudos
AlbertWT
Virtuoso
Virtuoso
Jump to solution

hm.. ok, that does make sense to me then.

thanks for all of your suggestion mate.

/* Please feel free to provide any comments or input you may have. */
Reply
0 Kudos