Sysctl: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 11: Line 11:
Displays all available and "opaque" values.
Displays all available and "opaque" values.


<pre>
sysctl -A
sysctl -A
</pre>


=Attributes=
For more details about individual configuration attributes, see: {{Internal|Kernel Runtime Configuration|Kernel Runtime Configuration}}
=Options=
==<tt>-w</tt>==
Write configuration:
<syntaxhighlight lang='bash'>
sysctl -w net.bridge.bridge-nf-call-iptables=1
</syntaxhighlight>
This writes <code>/proc/sys/net/bridge/bridge-nf-call-iptables</code>.


==hw.memsize==
=Mac Only Attributes=
 
====hw.memsize====


Physical memory size available on the system (in bytes).
Physical memory size available on the system (in bytes).
==kernel.pid_max==
Represents the [[Linux_Process_Management_Concepts#Maximum_Number_of_Processes_Allowed_on_the_System|maximum number of processes allowed on the system]].
==net.core.wmem_max==
12582912
==net.core.rmem_max==
2582912
==net.ipv4.tcp_rmem==
10240 87380 12582912
==net.ipv4.tcp_window_scaling==
1
==net.ipv4.tcp_timestamps==
==net.ipv4.tcp_sack==
==net.ipv4.tcp_no_metrics_save==
==net.core.netdev_max_backlog==
5000


=<tt>/etc/sysctl.conf</tt>=
=<tt>/etc/sysctl.conf</tt>=


Contains the kernel configuration. It is read by <tt>sysctl</tt>.
{{Internal|/etc/sysctl.conf|/etc/sysctl.conf}}

Latest revision as of 16:22, 2 July 2021

Internal

Overview

Gets/sets the kernel state.

Displays all available and "opaque" values.

sysctl -A

For more details about individual configuration attributes, see:

Kernel Runtime Configuration

Options

-w

Write configuration:

sysctl -w net.bridge.bridge-nf-call-iptables=1

This writes /proc/sys/net/bridge/bridge-nf-call-iptables.

Mac Only Attributes

hw.memsize

Physical memory size available on the system (in bytes).

/etc/sysctl.conf

/etc/sysctl.conf