2 ms·
Then set /proc/sys/vm/swappiness to 0 and be happy. But actually linux never ejects pages to swap just for the cache. It will only eject pages for memory press
by ars 18y ago
Then set /proc/sys/vm/swappiness to 0 and be happy.
But actually linux never ejects pages to swap just for the cache. It will only eject pages for memory pressure, which, when freed, can leave extra room for cache. But it won't eject the pages in the first place for the cache.