Files
linux-cix/include/linux
Paolo Abeni 8a3854c7b8 udp: track the forward memory release threshold in an hot cacheline
When the receiver process and the BH runs on different cores,
udp_rmem_release() experience a cache miss while accessing sk_rcvbuf,
as the latter shares the same cacheline with sk_forward_alloc, written
by the BH.

With this patch, UDP tracks the rcvbuf value and its update via custom
SOL_SOCKET socket options, and copies the forward memory threshold value
used by udp_rmem_release() in a different cacheline, already accessed by
the above function and uncontended.

Since the UDP socket init operation grown a bit, factor out the common
code between v4 and v6 in a shared helper.

Overall the above give a 10% peek throughput increase under UDP flood.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Acked-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-10-24 10:52:50 +01:00
..
2022-09-26 19:46:29 -07:00
2021-01-24 14:27:17 +01:00
2018-01-01 12:40:27 -07:00
2022-10-03 14:02:45 -07:00
2022-02-28 23:26:27 -08:00
2022-10-03 14:03:19 -07:00
2022-10-03 14:03:19 -07:00
2022-09-26 10:13:13 -07:00
2022-10-03 17:34:32 -07:00
2021-02-03 19:05:50 +01:00
2022-10-04 20:52:38 +02:00
2022-10-11 17:42:58 -06:00
2022-10-11 17:42:58 -06:00
2021-03-18 12:58:27 -04:00
2021-08-19 09:02:55 +09:00
2022-09-29 15:20:29 +02:00
2022-10-07 09:32:40 -04:00
2022-10-07 08:10:52 -06:00
2022-09-28 10:00:16 +02:00
2022-07-10 21:17:30 -04:00