Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux parameters sysctl list of the Linux kernel and its explanation [closed]

Does anyone know where I can find a parameters list of sysctl for the linux kernel and its explanation?

I've searched for it and have found nothing. I looked in the kernel headers too with the same result.

like image 943
Emilio Granados Avatar asked Apr 22 '15 13:04

Emilio Granados


People also ask

What are kernel parameters in Linux?

The kernel parameter sem consists of four tokens, SEMMSL, SEMMNS, SEMOPM, and SEMMNI. SEMMNS is the result of SEMMSL multiplied by SEMMNI. The database manager requires that the number of arrays (SEMMNI) be increased as necessary.

Which parameters are passed in sysctl screen?

sysctl is used to modify kernel parameters at runtime. The parameters available are those listed under /proc/sys/. Procfs is required for sysctl(8) support in Linux. You can use sysctl(8) to both read and write sysctl data.

Where are Linux kernel parameters?

Kernel command-line parameters are saved in the boot/grub/grub. cfg configuration file, which is generated by the GRUB2 boot loader. Do not edit this configuration file. Changes to this file are only made by configuration scripts.

What is the command to view the current Linux kernel parameters?

The sysctl command reads the information from the /proc/sys directory. /proc/sys is a virtual directory that contains file objects that can be used to view and set the current kernel parameters.

How to view and change Linux kernel parameters using sysctl?

The -p option allows you to load the settings from a configuration file: When no file is given, sysctl reads the /etc/sysctl.conf file. The sysctl command allows you to view and change Linux kernel parameters. Feel free to leave a comment if you have any questions.

What does sysctl do in Linux?

The sysctl command is used to dynamically modify the operating parameters of the kernel when the kernel is running. The available kernel parameters are in the directory “/proc/sys”. It contains some advanced options for the TCP/ip stack and virtual memory system, which allow experienced administrators to improve compelling system performance.

How do I change the kernel parameter in Linux?

Kernel tuning with sysctl. The Linux kernel is flexible, and you can even modify the way it works on the fly by dynamically changing some of its parameters, thanks to the sysctl command. Sysctl provides an interface that allows you to examine and change several hundred kernel parameters in Linux or BSD.

How do I set a sysctl parameter permanently?

To set a parameter permanently, you’ll need to write the settings to /etc/sysctl.conf or another configuration file in the /etc/sysctl.d directory: sysctl -w net.ipv4.ip_forward=1 >> /etc/sysctl.conf Another way to change parameters is to use the echo command to write the settings to the files in the /proc/sys directory.


2 Answers

Kernel have documentation:

  • https://www.kernel.org/doc/Documentation/sysctl/
  • https://www.kernel.org/doc/Documentation/networking/ -- several files with sysctl in their names describe specific information.
like image 132
myaut Avatar answered Sep 20 '22 14:09

myaut


You can get the full list just by running:

$ sysctl -a

What the individual parameters means depends on your exact kernel version, but you can likely find an explanation for any of the interesting ones using Google or @myaut's links.

like image 40
Adrian Petrescu Avatar answered Sep 20 '22 14:09

Adrian Petrescu