[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f2a30934-a0fe-ae1e-0897-2bb7dc572270@intel.com>
Date: Wed, 15 Feb 2023 17:17:53 +0100
From: Alexander Lobakin <aleksander.lobakin@...el.com>
To: Edward Cree <ecree.xilinx@...il.com>,
Jakub Kicinski <kuba@...nel.org>
CC: <davem@...emloft.net>, <netdev@...r.kernel.org>,
<edumazet@...gle.com>, <pabeni@...hat.com>, <willemb@...gle.com>,
<fw@...len.de>
Subject: Re: [PATCH net-next 2/3] net: skbuff: cache one skb_ext for use by
GRO
From: Edward Cree <ecree.xilinx@...il.com>
Date: Wed, 15 Feb 2023 15:37:44 +0000
> On 15/02/2023 03:43, Jakub Kicinski wrote:
>> On the driver -> GRO path we can avoid thrashing the kmemcache
>> by holding onto one skb_ext.
>
> Hmm, will one be enough if we're doing GRO_NORMAL batching?
> As for e.g. UDP traffic up to 8 skbs (by default) can have
> overlapping lifetimes.
>
I thought of an array of %NAPI_SKB_CACHE_SIZE to be honest. From what
I've ever tested, no cache (for any netstack-related object) is enough
if it can't serve one full NAPI poll :D
+ agree with Paolo re napi_reuse_skb(), it's used only in the NAPI
context and recycles a lot o'stuff already, we can speed it up safely here.
Thanks,
Olek
Powered by blists - more mailing lists