Swappiness and cache pressure

Post with image

Swappiness is used to define how aggressively the kernel swaps out anonymous memory relative to pagecache and other caches. Increasing the value increases the amount of swapping. The default value is 60.

Vfs cache pressure controls the tendency of the kernel to reclaim the memory which is used for caching of VFS caches, versus pagecache and swap. Increasing this value increases the rate at which VFS caches are reclaimed.

To change them edit /etc/sysctl.conf and add this lines at the end of file:



Leave a reply

Your email adress will not be published. Required fields are marked*