Skip to content

Instantly share code, notes, and snippets.

@tienthanh2509
Forked from extremecoders-re/vmware-no-vmem.md
Created October 3, 2019 15:33
Show Gist options
  • Save tienthanh2509/f6f0fcce1f5f0c945e4804f648741334 to your computer and use it in GitHub Desktop.
Save tienthanh2509/f6f0fcce1f5f0c945e4804f648741334 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