How to optimize TCP / IP stack in Linux?

mary asked:

Currently I noticed there are about 15K open connections to localhost. It is mainly connecting to Memcached. I am clueless where I should start to optimize TCP/IP stack. Memcached support UDP, but the PHP library doesn’t support it.

The server has a lot of memory, about 7GB and it is dual core. Any pointers in how to optimize TCP / IP stack in Linux ?

My answer:


Since memcached is running on the same server, consider configuring it (and your web app) to use a UNIX socket instead of network connections.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.