Version 2 (modified by jazz, 14 years ago) (diff) |
---|
2011-04-04
VMWare Server : IOWait Performance Tuning
- 因為經常遇到 IOWait 的問題,所以找一下別人是怎麼解決的。
- <參考> Gutsy and Vmware-Server – you’re in for some pain
- 首先修改 /etc/vmware/config
--- /etc/vmware/config.bak 2011-04-04 22:21:13.000000000 +0800 +++ /etc/vmware/config 2011-04-06 10:20:42.000000000 +0800 @@ -22,4 +22,7 @@ product.name = "VMware Server" # Beginning of the block added by the VMware VIX software vix.libdir = "/usr/lib/vmware-vix/lib" +# 11-04-04: Enhance performance - by Jazz +prefvmx.useRecommendedLockedMemSize = "TRUE" +prefvmx.minVmMemPct = "100" # End of the block added by the VMware VIX software
- 其次修改經常發生 IOWait 的虛擬機器 vmx 設定檔
-
Trac_Pool.vmx
old new 49 49 debugStub.linuxOffsets = "0x0,0xffffffff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0" 50 50 51 51 extendedConfigFile = "Trac_Pool.vmxf" 52 53 sched.mem.pshare.enable = "FALSE" 54 mainMem.useNamedFile = "FALSE" 55 MemTrimRate = "0" 56 MemAllowAutoScaleDown = "FALSE"
-
- 另外,不確定是否因為我用單檔 VMDK 所以造成記憶體的 filesytem cache 太高,所以定期用 crontab 清掉一些 cache
0 * * * * /usr/sbin/ntpdate-debian > /dev/null 2>&1 0 * * * * echo 1 > /proc/sys/vm/drop_caches 1 * * * * echo 3 > /proc/sys/vm/drop_caches