tcp_low_latency
fisherman:~# cat /proc/sys/net/ipv4/tcp_low_latency0
在看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 tcp_low_latency设为0时,以整个操作系统的效率优先,此时TCP会通过使用prequeue队列,使网络软中断的执行时间缩短,回ACK的时机延后,进程读取TCP套接字时略延后。
设为1时,以TCP读取消息时,使应用进程减少延迟为优先。二者相反,默认是不打开这个开关的。 在这里又看到你了,看了你的高性能网络编程,很有收获,谢谢你的分享。回复 2# russelltao
页:
[1]