Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

Yes. 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).

share|improve this answer
    
so both /proc/sys/net/core/somaxconn and /etc/sysctl.conf are persistent? –  linux_user May 20 '11 at 1:17
5  
@linux_user - no, only modifying /etc/sysctl.conf is persistent. /proc is not a "real" filesystem, only a filesystem interface to the kernel. –  Eduardo Ivanec May 20 '11 at 4:11

yes /proc/sys/net/core/somaxconn is writable if you have the permissions to do so.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.