Skip to content

Instantly share code, notes, and snippets.

@mixman68
Forked from extremecoders-re/vmware-no-vmem.md
Created October 22, 2019 17:32
Show Gist options
  • Save mixman68/81e535913276ac48b61b15aca8e1628b to your computer and use it in GitHub Desktop.
Save mixman68/81e535913276ac48b61b15aca8e1628b to your computer and use it in GitHub Desktop.
Boost VMWare Performance by disabling vmem files.

Prevent creation of vmmem files in VmWare

Issue

VMWare creates .vmem files to back the guest RAM. On the host this causes disk thrashing especially during powering on and off the guest.

Solution

Add the following lines to the .vmx file to prevent creation of .vmem files. This will reduce disk IO and VM performance will improve especially on non-SSD disks.

prefvmx.minVmMemPct = "100"
MemTrimRate = "0"
mainMem.useNamedFile = "FALSE"
sched.mem.pshare.enable = "FALSE"
prefvmx.useRecommendedLockedMemSize = "TRUE"

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment