[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20070522231202.GA17720@gondor.apana.org.au>
Date: Wed, 23 May 2007 09:12:02 +1000
From: Herbert Xu <herbert@...dor.apana.org.au>
To: David Miller <davem@...emloft.net>
Cc: xma@...ibm.com, ak@...e.de, krkumar2@...ibm.com,
netdev@...r.kernel.org, netdev-owner@...r.kernel.org,
rdreier@...co.com
Subject: Re: [RFC] New driver API to speed up small packets xmits
On Tue, May 22, 2007 at 03:36:36PM -0700, David Miller wrote:
>
> > > Yep, for any NIC that supports SG but not TSO then software GSO will
> > > be a big win. When the NIC doesn't support SG then the win is mostly
> > > offset by the need to copy the packet again.
...
> SKB's from TSO are composed of discontiguous page chunks represented
> by the skb_shared_info() array. These can come either from sendmsg()
> user data (which the kernel fills into a per-socket data page which is
> reallocated once filled), or from sendfile() page cache pages.
Yes sendmsg() is the case where it's almost even whether GSO is
turned on or off because GSO does an extra copy which offsets the
win in reduced per-packet cost.
For sendfile() it's still a win though since we have to copy it
anyway and doing it in GSO avoids the per-packet cost.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
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