]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not try to fill socket send buffer to the last byte.
authorAlexander Motin <mav@FreeBSD.org>
Fri, 22 May 2020 18:10:46 +0000 (18:10 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Fri, 22 May 2020 18:10:46 +0000 (18:10 +0000)
commit1f29b46c42e430d2ce974640ea3f0e3fc52c7aa4
tree13e68f8430257bf860281fa7633b0cec709c4b7d
parent7096c29e5bf255a6bc308bcf028f38c12c5243fe
Do not try to fill socket send buffer to the last byte.

Setting so_snd.sb_lowat to at least 1/8 of the socket buffer size allows
send thread more actively use PDUs coalescing, that dramatically reduces
TCP lock congestion and number of context switches, when the socket is
full and PDUs are small.

MFC after: 1 week
Sponsored by: iXsystems, Inc.
sys/dev/iscsi/icl_soft.c