Re: Socket buffer sizes with autotuning

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <netdev@...>
Date: Friday, May 16, 2008 - 9:13 pm

Ok, now the code seems to work when TSO is disabled, i.e., cwnd
remains low (40-60pkts) and only grows slowly for extended period on
a back2back 1GbE link. It also works when tcpdump was running
after I fixed the code, per your suggestion, to only bump the in_flight
count for fast clones.

But it doesn't work when TSO is enabled. I've fixed tso_fragment() to
correctly set skb_shinfo(buff)->in_flight after the split. But cwnd still
grows rapidly to a few hundred pkts (although smaller than w/o
the fix). The host inflight accounting gets screwed up. It looks like
pskb_expand_head() called by tcp_tso_acked()->tcp_trim_head()
messes up the accounting but I don't know how to fix it (still trying
to understand this complex piece of code). There could be other
reason as well.

Jerry

On Mon, May 12, 2008 at 9:02 PM, David Miller <davem@davemloft.net> wrote:
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Socket buffer sizes with autotuning, Jerry Chu, (Wed Apr 23, 7:29 pm)
Re: Socket buffer sizes with autotuning, David Miller, (Fri Apr 25, 3:05 am)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Tue May 6, 11:57 pm)
Re: Socket buffer sizes with autotuning, David Miller, (Wed May 7, 12:28 am)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Wed May 7, 2:54 pm)
Re: Socket buffer sizes with autotuning, David Miller, (Wed May 7, 5:20 pm)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Wed May 7, 8:16 pm)
Re: Socket buffer sizes with autotuning, David Miller, (Wed May 7, 12:27 am)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Wed May 7, 2:36 pm)
Re: Socket buffer sizes with autotuning, David Miller, (Wed May 7, 5:18 pm)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Wed May 7, 9:37 pm)
Re: Socket buffer sizes with autotuning, David Miller, (Wed May 7, 9:43 pm)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Wed May 7, 11:33 pm)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Mon May 12, 6:22 pm)
Re: Socket buffer sizes with autotuning, David Miller, (Mon May 12, 6:29 pm)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Mon May 12, 6:58 pm)
Re: Socket buffer sizes with autotuning, David Miller, (Mon May 12, 7:01 pm)
Re: Socket buffer sizes with autotuning, David Miller, (Mon May 12, 6:31 pm)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Mon May 12, 11:56 pm)
Re: Socket buffer sizes with autotuning, David Miller, (Mon May 12, 11:58 pm)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Tue May 13, 12:00 am)
Re: Socket buffer sizes with autotuning, David Miller, (Tue May 13, 12:02 am)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Fri May 16, 9:13 pm)
Re: Socket buffer sizes with autotuning, David Miller, (Fri May 16, 9:29 pm)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Fri May 16, 9:47 pm)
Re: Socket buffer sizes with autotuning, John Heffner, (Thu Apr 24, 12:32 pm)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Thu Apr 24, 8:49 pm)
Re: Socket buffer sizes with autotuning, David Miller, (Fri Apr 25, 2:46 am)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Mon Apr 28, 2:30 pm)
Re: Socket buffer sizes with autotuning, John Heffner, (Mon Apr 28, 3:21 pm)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Mon Apr 28, 4:44 pm)
Re: Socket buffer sizes with autotuning, Jerry Chu, (Fri Apr 25, 5:29 pm)
Re: Socket buffer sizes with autotuning, David Miller, (Fri Apr 25, 5:35 pm)