Answer the question
In order to leave comments, you need to log in
Linux and swap
There is a working machine with 8GB of RAM, Ubuntu.
There is a situation: 2GB is free (of which about 1.8GB is cached), a new program is launched that wants to eat 1GB.
The question that has been tormenting me for a long time: why, instead of dropping the cache, the system starts swapping, and even so hard that the mouse cursor sometimes freezes?
Answer the question
In order to leave comments, you need to log in
These are the problems of the program, for anyone ... further look at the system, it should give up the use of the cache.
Try setting swappiness to 0 echo 0 > /proc/sys/vm/swappiness
I read somewhere that this forces the axis to freeload completely and use all caches before swapping anything. Do you write it? Do you need it?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question