Re: [PATCH net-next 0/2] inet: factorize sk_wmem_alloc updates

2018-04-01 Thread David Miller
From: Eric Dumazet Date: Sat, 31 Mar 2018 13:16:24 -0700 > While testing my inet defrag changes, I found that senders > could spend ~20% of cpu cycles in skb_set_owner_w() updating > sk->sk_wmem_alloc for every fragment they cook, competing > with TX completion of prior skbs

[PATCH net-next 0/2] inet: factorize sk_wmem_alloc updates

2018-03-31 Thread Eric Dumazet
While testing my inet defrag changes, I found that senders could spend ~20% of cpu cycles in skb_set_owner_w() updating sk->sk_wmem_alloc for every fragment they cook, competing with TX completion of prior skbs possibly happening on another cpus. One solution to this problem is to use alloc_skb()