Pinboard (jm)
https://pinboard.in/u:jm/public/
recent bookmarks from jmChris Baus: TCP_CORK: More than you ever wanted to know2014-09-11T12:30:44+00:00
http://baus.net/on-tcp_cork/
jmEven with buffered streams the application must be able to instruct the OS to forward all pending data when the stream has been flushed for optimal performance. The application does not know where packet boundaries reside, hence buffer flushes might not align on packet boundaries. TCP_CORK can pack data more effectively, because it has direct access to the TCP/IP layer. [..]
If you do use an application buffering and streaming mechanism (as does Apache), I highly recommend applying the TCP_NODELAY socket option which disables Nagle's algorithm. All calls to write() will then result in immediate transfer of data.
]]>networking tcp via:nmaurer performance ip tcp_cork linux syscalls writev tcp_nodelay nagle packetshttps://pinboard.in/https://pinboard.in/u:jm/b:b1cec5bb1d43/