Changes between Version 33 and Version 34 of jazz/Performance_Tuning


Ignore:
Timestamp:
Apr 11, 2011, 10:21:30 PM (13 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/Performance_Tuning

    v33 v34  
    8080sysctl -w vm.vfs_cache_pressure=n  (n > 100)
    8181}}}
     82 * 如何清除使用中的 SWAP 呢?(把 SWAP 的內容釋放出來)
     83{{{
     84sudo swapoff -a
     85sudo 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
    8292
    8393 * 如何加速桌面應用 - <參考> [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 的記憶體很快被用完。
    8495{{{
    8596sysctl -w vm.swappiness=1