From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 23 May 2005 19:54:17 +1000
> Perhaps we should set the goal based on the cwnd as we do now?
> As it is I believe we may be doing more work compared to the
> status quo because it's always building 64K blocks and then
> cutting them up as dictated by the cwnd. On the other hand, the
> current code simply builds the packets up to the size that cwnd
I played with this, and it makes no difference.
It would only help when:
1) we are building sk->sk_send_head, and
2) sk->sk_send_head is the tail of the write queue
But the SKB splitting is so cheap that it doesn't
And if we sleep or defer for some reason, say while copying the data
from userspace or whatever, all of this information changes and we
don't bunch up as much as we could have.
Also, in my current code we defer sending not just at ACK arrive
processing, but also when doing normal sends from sendmsg() and
sendpages(). Which totally invalidates your suggested scheme :-)