Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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
6  
@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
1  
You would have to modify /etc/sysctl.conf as root to make it persistent. /proc is not a real file system – Ganesh Krishnan Mar 16 '15 at 0:53

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.