3 ms·
One trick people in a similar situation on linux use is to make a small ram disk and then assign that as the swap. A little absurd but prevents the bad behavior
by dmm 12y ago
One trick people in a similar situation on linux use is to make a small ram disk and then assign that as the swap. A little absurd but prevents the bad behavior.
- darkr 12y agoIt is indeed absurd, when swapping can be avoided entirely by setting kernel swappiness to 0: sysctl -w vm.swappiness=0 to make permanent, set vm.swappiness=0 in /etc/sysctl.conf Though for a desktop machine, disabling swap probably won't help improve performance
- dmm 12y agoThat's true, but this was a special circumstance where disabling swap was creating very bad system behavior.