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:

vm.swappiness=1
vm.vfs_cache_pressure=50

Likes(0)Dislikes(0)

Leave a reply

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