tcp: Increase tcp_sosend_agglim from 2 to 3
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 30 Jul 2012 06:36:52 +0000 (14:36 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 30 Jul 2012 06:36:52 +0000 (14:36 +0800)
commitb3f7971467e0ce7934443aab946e11396d9f78e6
treee9092d73c84a70ec9676dafdf8b1fe37a1dccb0d
parent6503926dbdde0c21b7203cf9473d140d732b4654
tcp: Increase tcp_sosend_agglim from 2 to 3

This change makes better use of TSO.

When 2 is used, most of the large TCP segments' size are 2*MSS or 3*MSS.
When 3 is used, most of the large TCP segments' size are 4*MSS or 5*MSS.

The math is quite simple, given 1448B segment size:
2 == 4096B == 2 segments
3 == 6144B == 4 segments

Increasing it to a higher value improves single full speed stream's CPU
utilization, but does not have much effect on multiple streams'.
sys/netinet/tcp_input.c