[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0807311010250.4551@wrl-59.cs.helsinki.fi>
Date: Thu, 31 Jul 2008 10:34:13 +0300 (EEST)
From: "Ilpo Järvinen" <ilpo.jarvinen@...sinki.fi>
To: David Miller <davem@...emloft.net>
cc: buytenh@...tstofly.org, Netdev <netdev@...r.kernel.org>,
akarkare@...vell.com, nico@....org,
Herbert Xu <herbert@...dor.apana.org.au>
Subject: Re: using software TSO on non-TSO capable netdevices
On Wed, 30 Jul 2008, David Miller wrote:
> From: Lennert Buytenhek <buytenh@...tstofly.org>
> Date: Thu, 31 Jul 2008 02:41:23 +0200
>
> > The hacky patch below (on top of 2.6.27-rc1 + stubbing out the
> > sk_can_gso() check) reduces the 1 GiB 1000 Mb/s sendfile test from:
> ...
> > I.e. dramatic CPU time improvements, and some overall speedup as well.
> >
> > I wonder if something like this can be done in a less hacky fashion --
> > the hard part I guess is deciding when to keep coalescing (to reduce
> > CPU overhead) vs. when to push out what has been coalesced so far (in
> > order to keep the pipe filled), and I'm not sure I have good ideas
> > about how to make that decision.
>
> Interesting, I'll take a closer look at this.
>
> Actually your patch is less of a surprise, because one of the issues I
> had to surmount constantly when rewriting the TSO output path was the
> implicit conflict between TSO deferral (to accumulate segments) and
> the nagle logic.
I think your statement makes very little sense to me (though I had to
lookup the meaning of surmount but that seems not so significant
anyway)... They both work into the same direction, ie., to delay sending
to prevent excessive processing of small bits, but the region of operation
shouldn't overlap (nagle works with <mss, and tso deferring logic
basically begins from where the nagle ends)?
It seems to me that this not about conflict between TSO deferring and
nagle sub-mss logic at all (perhaps there wasn't as direct relation to
this issue as I read...?) AFAICT, the change only makes (!nonagle &&
tp->packets_out && tcp_minshall_check(tp)) test in tcp_nagle_check more
likely to occur (and result in false), ie., basically we end up using
nagle test also to prevent sending of >= mss skbs, besides the usual
functionality which is to prevent sending in case of < mss sized ones.
...Which seems just an extension to what we checked for in
tcp_tso_should_defer().
So it guess that the results just show that there's benefit in deferring
even more than we do currently.
--
i.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists