NTFS-3G, Vmware Workstation, CPU 100%
NTFS-3G, Vmware and 100% CPU – Primal Cortex’s Weblog 新版VMware禁用虚拟内存文件的方法_MSUS的博客-CSDN博客_vmware禁用虚拟内存 Solved: Is mainMem.useNamedFile available in Linux Worksta… Primal Cortex’s Weblog/NTFS-3G, Vmware and 100% CPU workstation 7 (linux) and mainMem.useNamedFile = “…
问题描述
Host OS: Debian 11,Host File System: NTFS-3G,VMware Workstation 16.2
当启动虚拟机时,虚拟机近乎挂起,响应极满,mount.ntfs 进程的 CPU 100%
原因分析
经过搜索查找,我们得知:
使用 VMWare 虚拟机,虚拟机启动后,会在虚拟机目录下建立一个与虚拟内存大小相同的 .vmem文件。这个文件主要是将虚拟机内存的内容映射到磁盘,以支持在虚拟机的暂停等功能。VMware Workstation每次开机都会在磁盘上创建一个和内存大小一样的文件,实际上根本没必要,特别是我开的虚拟机内存很大,这个内存文件旧严重占用了磁盘空间
解决方案
mainmem.backing = “swap” => 针对我们的环境,我们使用该配置,并且禁用 Host Swap 分区;
this only works on 64 bit Linux hosts and it produces a similar behaviour as on Windows hosts with mainmem.useNamedFile = “false”
setting this parameter may result in improved performance for single VMs – but it may have the drawback that you can longer run as many VMs at the same time as without it !
mainmem.backing = “named”
this uses a mainmem-file in the same directory as the vmx-file
this is the equivalent to mainmem.useNamedFile = “true” used[……]