Hacker News new | ask | show | jobs
by edwintorok 4373 days ago
Yeah my reply was to the "disable swap" part of the discussion, not the swappiness one.
1 comments

Disabling swap means setting swappiness to 0; I'm not sure how you can talk about "disabling swap" without talking about swappiness.
Because that depends on the kernel version, I took the more reliable approach of using 'swapoff -a' (or in fact not defining any swap in my /etc/fstab). https://news.ycombinator.com/item?id=7940387 https://news.ycombinator.com/item?id=7940136
Which then means that you're not allowing the kernel to make such decisions as what I described. (Rarely used pages paged out to allow for more disk cache.)