]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not try to fill socket send buffer to the last byte.
authormav <mav@FreeBSD.org>
Fri, 22 May 2020 18:10:46 +0000 (18:10 +0000)
committermav <mav@FreeBSD.org>
Fri, 22 May 2020 18:10:46 +0000 (18:10 +0000)
commite7c45f4413c2d9e3d3356a1c5e285fe9684e28a0
tree13e68f8430257bf860281fa7633b0cec709c4b7d
parentb0a72bc08d60b49104ac2d2d1cab5160ecfc6030
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