Skip to content

Instantly share code, notes, and snippets.

@fcenobi
Forked from extremecoders-re/vmware-no-vmem.md
Created September 26, 2021 23:38
Show Gist options
  • Save fcenobi/a6ee291251848b19e7f7344db8bc88f6 to your computer and use it in GitHub Desktop.
Save fcenobi/a6ee291251848b19e7f7344db8bc88f6 to your computer and use it in GitHub Desktop.
Boost VMWare Performance by disabling vmem files.

Prevent creation of vmmem files in VMware (Windows)

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