On 6/17/19 8:19 PM, Christoph Paasch wrote: > > Yes, this does the trick for my packetdrill-test. > > I wonder, is there a way we could end up in a situation where we can't > retransmit anymore? > For example, sk_wmem_queued has grown so much that the new test fails. > Then, if we legitimately need to fragment in __tcp_retransmit_skb() we > won't be able to do so. So we will never retransmit. And if no ACK > comes back in to make some room we are stuck, no? Well, RTO will eventually fire. Really TCP can not work well with tiny sndbuf limits. There is really no point trying to be nice. There is precedent in TCP stack where we always allow one packet in RX or TX queue even with tiny rcv/sndbuf limits (or global memory pressure) We only need to make sure to allow having at least one packet in rtx queue as well.
- [PATCH net 0/4] tcp: make sack processing more robust Eric Dumazet
- [PATCH net 4/4] tcp: enforce tcp_min_snd_mss in tcp_... Eric Dumazet
- Re: [PATCH net 4/4] tcp: enforce tcp_min_snd_mss... Jonathan Lemon
- Re: [PATCH net 4/4] tcp: enforce tcp_min_snd_mss... Tyler Hicks
- [PATCH net 2/4] tcp: tcp_fragment() should apply san... Eric Dumazet
- Re: [PATCH net 2/4] tcp: tcp_fragment() should a... Jonathan Lemon
- Re: [PATCH net 2/4] tcp: tcp_fragment() should a... Christoph Paasch
- Re: [PATCH net 2/4] tcp: tcp_fragment() shou... Eric Dumazet
- Re: [PATCH net 2/4] tcp: tcp_fragment() ... Christoph Paasch
- Re: [PATCH net 2/4] tcp: tcp_fragme... Eric Dumazet
- Re: [PATCH net 2/4] tcp: tcp_fr... Christoph Paasch
- Re: [PATCH net 2/4] tcp: tc... Eric Dumazet
- [PATCH net 3/4] tcp: add tcp_min_snd_mss sysctl Eric Dumazet
- Re: [PATCH net 3/4] tcp: add tcp_min_snd_mss sys... Jonathan Lemon
- Re: [PATCH net 3/4] tcp: add tcp_min_snd_mss sys... Tyler Hicks
- [PATCH net 1/4] tcp: limit payload size of sacked sk... Eric Dumazet
- Re: [PATCH net 1/4] tcp: limit payload size of s... Jonathan Lemon
- Re: [PATCH net 0/4] tcp: make sack processing more r... David Miller