Sysctl: Difference between revisions

From DWIKI
(Created page with "Tuning linux with sysctl https://klaver.it/linux/sysctl.conf https://wiki.mikejung.biz/Sysctl_tweaks")
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Tuning linux with sysctl
Tuning linux with sysctl


https://klaver.it/linux/sysctl.conf
 
https://wiki.mikejung.biz/Sysctl_tweaks
=Links=
*https://www.kernel.org/doc/Documentation/sysctl/vm.txt
*https://klaver.it/linux/sysctl.conf
*https://wiki.mikejung.biz/Sysctl_tweaks
 
=Tuning memory=
==vm.swappiness==
 
Percentage of free memory before activating swap.
 
Default is 60
 
 
 
 
=== Links ===
 
*[https://linuxhint.com/understanding_vm_swappiness/ Understanding vm.swappiness]
*https://major.io/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/
 
 
== vm.vfs_cache_pressure ==
 
Clear cache:
echo 1 > /proc/sys/vm/drop_caches
 
To free/clear all caches:
 
echo 3 > /proc/sys/vm/drop_caches

Latest revision as of 13:59, 29 October 2021

Tuning linux with sysctl


Links

Tuning memory

vm.swappiness

Percentage of free memory before activating swap.

Default is 60



Links


vm.vfs_cache_pressure

Clear cache:

echo 1 > /proc/sys/vm/drop_caches

To free/clear all caches:

echo 3 > /proc/sys/vm/drop_caches