fastos / fastsocket

Fastsocket is a highly scalable socket and its underlying networking implementation of Linux kernel. With the straight linear scalability, Fastsocket can provide extremely good performance in multicore machines. In addition, it is very easy to use and maintain. As a result, it has been deployed in the production environment of SINA.
GNU General Public License v2.0
3.76k stars 727 forks source link

Update tcp.h #51

Closed igroykt closed 8 years ago

igroykt commented 9 years ago

Destroy TIME_WAIT state after 10 seconds instead of 60. Useful for heavy loaded web servers and have no problems with NAT (instead of using net.ipv4.tcp_tw_recycle). http://www-01.ibm.com/support/knowledgecenter/SSEQTJ_6.1.0/com.ibm.websphere.edge.doc/edge/cp/admingd45.htm Tested for a year on servers with 24 cores and 128gb ram.

PerthCharles commented 9 years ago

If you want to decrease the TIME_WAIT length, you may want to fix the comment too. :)

gfreewind commented 9 years ago

I think it could be achieved by sysctl "net.ipv4.tcp_fin_timeout".

igroykt commented 9 years ago

@gfreewind fin_timeout for FIN_WAIT state (not for TIME_WAIT).

gfreewind commented 9 years ago

Ok. Could you modify it with the comment ?