[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100920072149.GA6353@ff.dom.local>
Date: Mon, 20 Sep 2010 07:21:49 +0000
From: Jarek Poplawski <jarkao2@...il.com>
To: David Miller <davem@...emloft.net>
Cc: eric.dumazet@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next-2.6] net: pskb_expand_head() optimization
On Sun, Sep 19, 2010 at 05:17:25PM -0700, David Miller wrote:
> From: Jarek Poplawski <jarkao2@...il.com>
> Date: Sat, 11 Sep 2010 14:31:40 +0200
>
> > Otherwise seems OK, but I still would like to know the scenario
> > demanding this change.
>
> Ok Jarek, after some more consideration I agree with you.
> Removing this kind of sharing would be unwise, ho hum...
>
> While pondering over this I thought about why we even need
> frag lists at all. We need them for two reasons:
>
> 1) Because we have an inability to turn kmalloc data references into
> page based ones easily.
>
> We've run into this sort of problem with socket splice() too.
>
> 2) For recording the segmentation points of a fragmented packet.
>
> We definitely don't use frag lists for performance, if you look
> in the GRO history the GRO code specifically has been changed
> to prefer accumulating into the page vector whenever possible
> because using frag lists is a lot slower.
Yes, and GRO made frag lists more popular btw.
> Anyways, even if we somehow solved #1 we'd still have a lot of
> code (even bluetooth) using it for the sake of issue #2.
Since there exist drivers using entirely paged skbs and napi_gro_frags
path I can't see why #1 or #2 could be unsolvable elsewhere.
> So for the time being there is no clear path for trying to
> eliminate frag lists altogether if we wanted to do that either.
Probably we could start from enhacing moving drivers to paged skbs
where possible. And maybe simplifying the skb model by not allowing
frags and frag lists together?
Btw, I wonder what is the exact reason we can't use only
NET_SKBUFF_DATA_USES_OFFSET?
Jarek P.
--
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