WMware通过Share Memory来提升性能

(0 comments)

默认情况下,VMware的临时文件使用系统的/tmp目录,使用Share Memory存放临时文件能够提高虚拟机运行性能。

默认Share Memory的大小为内存的一半,对于有4G物理内存,只运行VMware的服务器,建议扩大Share Memory的大小到5G,如下所示:

mount -o remount,size=5G /dev/shm

更改/etc/fstab,下次启动时自动将Share Memory设置为5G,添加如下内容:

none  /dev/shm    tmpfs   defaults,size=5G   0 0

最后,修改VMware配置文件/etc/vmware/config,设置tmpDirectory,如下所示:

tmpDirectory="/dev/shm"

重新启动VMware服务,使修改生效。

VMware运行一段时间后没有响应,一般就是tmpDirectory目录满了,检查并增加tmpDirectory目录的空间可以解决这个问题。

Make sure that the /tmp partition is large enough and has ample free space. Linux distributions reserve about 10% of /tmp for use by root processes only, so when /tmp is at 90% capacity, non-root applications cannot write to it.

对于VMware运行过程中碰到的问题,可以访问VMware Support 网站,通常VMware的问题在这里都可以找到解决方法。

http://www.vmware.com/support/

Currently unrated

Comments

There are currently no comments

New Comment

required

required (not published)

optional

required