Re: [PATCH net] skbuff: back tiny skbs with kmalloc() in __netdev_alloc_skb() too

2021-01-15 Thread Alexander Lobakin
From: Eric Dumazet Date: Fri, 15 Jan 2021 15:28:37 +0100 > On Fri, Jan 15, 2021 at 12:55 AM Alexander Lobakin wrote: >> >> Commit 3226b158e67c ("net: avoid 32 x truesize under-estimation for >> tiny skbs") ensured that skbs with data size lower than 1025 bytes >> will be kmalloc'ed to avoid exce

Re: [PATCH net] skbuff: back tiny skbs with kmalloc() in __netdev_alloc_skb() too

2021-01-15 Thread Eric Dumazet
On Fri, Jan 15, 2021 at 12:55 AM Alexander Lobakin wrote: > > Commit 3226b158e67c ("net: avoid 32 x truesize under-estimation for > tiny skbs") ensured that skbs with data size lower than 1025 bytes > will be kmalloc'ed to avoid excessive page cache fragmentation and > memory consumption. > Howeve

[PATCH net] skbuff: back tiny skbs with kmalloc() in __netdev_alloc_skb() too

2021-01-14 Thread Alexander Lobakin
Commit 3226b158e67c ("net: avoid 32 x truesize under-estimation for tiny skbs") ensured that skbs with data size lower than 1025 bytes will be kmalloc'ed to avoid excessive page cache fragmentation and memory consumption. However, the same issue can still be achieved manually via __netdev_alloc_skb