Thread (4 messages) 4 messages, 2 authors, 2018-04-01

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

flat view

From: David Miller <davem@davemloft.net>
Date: 2018-04-01 18:09:08

From: Eric Dumazet <redacted>
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 possibly happening on another cpus.

One solution to this problem is to use alloc_skb() instead
of sock_wmalloc() and manually perform a single sk_wmem_alloc change.

This greatly increases speed for applications sending big UDP datagrams.
Looks good, series applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help