CUDev 发表于 2008-03-29 18:30

tcp_low_latency

fisherman:~# cat /proc/sys/net/ipv4/tcp_low_latency
0
在看TCP的Fast Path的过程中,看到了这个设置,找一个linuxinsight的解释。
If set, the TCP stack makes decisions that prefer lower latency as
opposed to higher throughput. By default, this option is not set
meaning that higher throughput is preferred. An example of an
application where this default should be changed would be a Beowulf
compute cluster.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12592/showart_511458.html

russelltao 发表于 2013-08-20 09:39

tcp_low_latency设为0时,以整个操作系统的效率优先,此时TCP会通过使用prequeue队列,使网络软中断的执行时间缩短,回ACK的时机延后,进程读取TCP套接字时略延后。
设为1时,以TCP读取消息时,使应用进程减少延迟为优先。二者相反,默认是不打开这个开关的。

太阳有点热 发表于 2014-03-26 11:22

在这里又看到你了,看了你的高性能网络编程,很有收获,谢谢你的分享。回复 2# russelltao


   
页: [1]
查看完整版本: tcp_low_latency