Ubuntu – Swappiness for aggressive swapping

memory usageswap

I want to configure the Ubuntu 14.04 with aggressive swapping behavior. I'm using Linux kernel 3.14. I modified the swappiness using the following command.

echo 100 > /proc/sys/vm/swappiness

However, the OS doesn't seem to swap out pages until the host runs out of free memory. How can I make the OS to proactively swap out the un-accessed pages to the swap device?

Best Answer

Use the ram for something else. Processes allocating memory or disk IO trying to allocate cache will push out idle pages to swap to make room. The swappiness variable just makes the system prefer to push applications out to favor using ram for the filesystem cache instead.

Related Question