This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:sysctl_swapiness_rhel7 [2016/11/29 10:40] admin created |
linux:sysctl_swapiness_rhel7 [2016/11/29 10:46] (current) admin |
||
---|---|---|---|
Line 11: | Line 11: | ||
In order to do this, you’ve got three ways: | In order to do this, you’ve got three ways: | ||
- | * through the /proc filesystem, | + | * through the **/proc** filesystem, |
- | * with the sysctl command, | + | * with the **sysctl** command, |
- | * through the /etc/sysctl.conf file. | + | * through the **/etc/sysctl.conf** file. |
====== The /proc Filesystem ====== | ====== The /proc Filesystem ====== | ||
Line 79: | Line 79: | ||
net.ipv6.conf.all.disable_ipv6 = 1 | net.ipv6.conf.all.disable_ipv6 = 1 | ||
</code> | </code> | ||
- | **Note**: As seen before, the sysctl -a command gets all the kernel runtime parameters with their current value. By redirecting the output to a file, this is also a good way to back up your configuration before any change. | + | **Note**: As seen before, the **sysctl -a** command gets all the kernel runtime parameters with their current value. By redirecting the output to a file, this is also a good way to back up your configuration before any change. |
- | Default kernel runtime configuration is located in the /usr/lib/sysctl.d directory and is executed before anything else (see sysctl –system). | + | Default kernel runtime configuration is located in the **/usr/lib/sysctl.d** directory and is executed before anything else (see **sysctl –system**). |
- | Caution: Kernel runtime parameters set in the /etc/sysctl.conf file can be overrided by the application of a tuned profile (see this example). | + | **Caution**: Kernel runtime parameters set in the **/etc/sysctl.conf** file can be overrided by the application of a **tuned** profile. |