I can check its value by cat /proc/sys/net/core/somaxconn
,
is it OK if I change it simply by echo 1024 > /proc/sys/net/core/somaxconn
?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityYes. Alternatively, you can use:
sysctl -w net.core.somaxconn=1024
Add net.core.somaxconn=1024
to /etc/sysctl.conf for it to become permanent (be reapplied after booting).
/proc/sys/net/core/somaxconn
and /etc/sysctl.conf
are persistent?
May 20, 2011 at 1:17
/etc/sysctl.conf
is persistent. /proc
is not a "real" filesystem, only a filesystem interface to the kernel.
May 20, 2011 at 4:11
yes /proc/sys/net/core/somaxconn
is writable if you have the permissions to do so.