Re: [PATCH 1/4] net/skbuff: don't waste memory reserves

2019-04-19 Thread Andrey Ryabinin
On 4/19/19 4:41 PM, Eric Dumazet wrote: > On 04/19/2019 06:17 AM, Andrey Ryabinin wrote: >> > >> I don't see why that would be a problem. If refill failed because we didn't >> have >> access to reserves, then there going to be an another refill attempt, right? >> And the next refill attempt will

[PATCH 1/4] net/skbuff: don't waste memory reserves

2019-04-18 Thread Andrey Ryabinin
In some workloads we have noticed packets being dropped by sk_filter_trim_cap() because the 'skb' was allocated from pfmemalloc reserves: /* * If the skb was allocated from pfmemalloc reserves, only * allow SOCK_MEMALLOC sockets to use it as this socket is *