Report this

What is the reason for this report?

Swappiness doesn't work as expected

Posted on April 11, 2015
ibox

By ibox

Hi,

you can fin below an extract of what I have on my droplet (Ubuntu 14.04.5 LTS):

System information as of Sat Apr 11 04:50:46 EDT 2015

System load: 0.01 Processes: 89 Usage of /: 62.2% of 19.56GB Users logged in: 0 Memory usage: 68% IP address for eth0: 178.62.7.107 Swap usage: 0%

root@droplet1:~# free -m total used free
Mem: 993 834 158
-/+ buffers/cache: 668 324 Swap: 4095 0 4095 root@droplet1:~# cat /proc/sys/vm/swappiness 90

So normally, by setting up swappiness to 90, I should have the swap used as soon as more than 10% of my RAM is used, but it is not the case, someone already ran into that problem with DO? on my other stations it works good.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Sorry for the indenting I can’t make it look like when I edit it

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.