For most people, the kernel provided with our favorite linux distro is good enough for daily use. But for some other people, they need more performance out of their linux machine, so they need to tune some kernel parameters, to suit whatever need they have in their hands.
$ sudo sysctl <tunable class>.<tunable>
$ sudo sysctl -w <tunable class>.<tunable> >> /etc/sysctl.conf
$ sudo sysctl -w <tunable class>.<tunable> >> /etc/sysctl.d/filename.conf
$ sudo sysctl -p
$ sudo sysctl -p /etc/sysctl.d/filename.conf
$ sudo sysctl --system
$ sudo sysctl -a
$ sudo sysctl -a --pattern 'kernel'
What are the available tunable classes? According to Red Hat, these are the ones available in RHEL.
- abi: execution domain and personalities
- crypto: cryptographic interfaces
- debug: kernel debugging interfaces
- dev: device specific information
- fs: global and specific filesystem tunables
- kernel: global kernel tunables
- net: network tunables
- sunrpc: sun remote procedure calls (NFS)
- user: user namespace limits
- vm: tuning and management of memory, buffer and cache
How to get information about the tunables and its usage? Refer to https://www.kernel.org/doc/Documentation/
No comments:
Post a Comment