真 もわ爛漫

しゃーら、しゃーらしゃーら

swappiness

どんくらいswapしやすいかを0-100の値で調整可能だそーだ。

All about Linux swap space | Linux.com | The source for Linux information

The Linux 2.6 kernel added a new kernel parameter called swappiness to let administrators tweak the way Linux swaps. It is a number from 0 to 100. In essence, higher values lead to more pages being swapped, and lower values lead to more applications being kept in memory, even if they are idle.

echo 50 > /proc/sys/vm/swappiness

割と昔からあったらしいけど知らなかった。使わないけど覚えておこ。