Changes between Version 33 and Version 34 of jazz/Performance_Tuning
- Timestamp:
- Apr 11, 2011, 10:21:30 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jazz/Performance_Tuning
v33 v34 80 80 sysctl -w vm.vfs_cache_pressure=n (n > 100) 81 81 }}} 82 * 如何清除使用中的 SWAP 呢?(把 SWAP 的內容釋放出來) 83 {{{ 84 sudo swapoff -a 85 sudo swapon -a 86 }}} 87 * 關於 /proc/sys/vm/swappiness 或 vm.swappiness 88 * 數值範圍:0 ~ 100,通常預設值為 60 89 * 0 : 除非有必要才把虛擬記憶體搬到 SWAP 90 * 1 : 非常頻繁地將虛擬記憶體(VIRT)搬到 SWAP 91 * 100 : 相對比較不頻繁地將虛擬記憶體(VIRT)搬到 SWAP 82 92 83 93 * 如何加速桌面應用 - <參考> [http://rudd-o.com/en/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-how-to-fix-that Tales from responsivenessland: why Linux feels slow, and how to fix that] 94 * 不過這樣的設定不能用在 VM Server 上,會讓 VM Server 的記憶體很快被用完。 84 95 {{{ 85 96 sysctl -w vm.swappiness=1