Thread (14 messages) 14 messages, 6 authors, 2023-09-07

Re: [RFC net-next 4/4] tcp: defer regular ACK while processing socket backlog

flat view

From: Jakub Kicinski <kuba@kernel.org>
Date: 2023-09-07 18:00:16

On Thu, 7 Sep 2023 19:16:01 +0200 Eric Dumazet wrote:
quoted
Is it okay if I asked why quickack?
Is it related to delay-based CC?  
Note the patch is also helping the 'regular' mode, without "quickack 1" .

This is CC related in any way, but some TCP tx zerocopy workload, sending
one chunk at a time, waiting for the TCP tx zerocopy completion in
order to proceed for the next chunk,
because the 'next chunk'  is re-using the memory.

The receiver application is not sending back a message (otherwise the
'delayed ack' would be piggybacked in the reply),
and it also does not know what size of the message was expected (so no
SO_RCVLOWAT or anything could be attempted)

For this kind of workload, it is crucial the last ACK is not delayed, at all.
Interesting. Some folks at Meta were recently looking into parsing RPCs
in the kernel to avoid unnecessary wakeups. Poor man's KCM using BPF
sockmaps. Passing message size hints from the sender would solve so
many problems..

In any case, I don't mean to question the patch :)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help