Thankyou...
Actually when I am using desktop, it starts to consume swap, even when RAM is not used by 50%. Anyways ... it is showing a bit difference in swap usage, after using these two values.
]]>Did you notice any difference in performance after you changed it?
https://www.kernel.org/doc/Documentation/sysctl/vm.txt
swappiness
This control is used to define how aggressive the kernel will swap
memory pages. Higher values will increase aggressiveness, lower values
decrease the amount of swap. A value of 0 instructs the kernel not to
initiate swap until the amount of free and file-backed pages is less
than the high water mark in a zone.The default value is 60.
vfs_cache_pressure
------------------This percentage value controls the tendency of the kernel to reclaim
the memory which is used for caching of directory and inode objects.At the default value of vfs_cache_pressure=100 the kernel will attempt to
reclaim dentries and inodes at a "fair" rate with respect to pagecache and
swapcache reclaim. Decreasing vfs_cache_pressure causes the kernel to prefer
to retain dentry and inode caches. When vfs_cache_pressure=0, the kernel will
never reclaim dentries and inodes due to memory pressure and this can easily
lead to out-of-memory conditions. Increasing vfs_cache_pressure beyond 100
causes the kernel to prefer to reclaim dentries and inodes.Increasing vfs_cache_pressure significantly beyond 100 may have negative
performance impact. Reclaim code needs to take various locks to find freeable
directory and inode objects. With vfs_cache_pressure=1000, it will look for
ten times more freeable objects than there are.
I did as, as advised on different places at web:
nano /etc/sysctl.d/99-sysctl.conf
# Decrease swap usage:
vm.swappiness = 10
vm.vfs_cache_pressure = 50
to get on reboot:
cat /proc/sys/vm/{swap,vfs}*
10
50
Is this standard or okay for sysV, or more specific to systemd?
Thankyou
]]>