Skip to content

Instantly share code, notes, and snippets.

@0x384c0
Forked from extremecoders-re/vmware-no-vmem.md
Created June 26, 2019 22:33
Show Gist options
  • Select an option

  • Save 0x384c0/50c145208c7aacc0cb77134f864bf6e0 to your computer and use it in GitHub Desktop.

Select an option

Save 0x384c0/50c145208c7aacc0cb77134f864bf6e0 to your computer and use it in GitHub Desktop.
Disable vmem files in VMWare Workstation.

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