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-10-04 19:18:08 +02:00
2022-10-16 11:08:19 -07:00
2022-10-14 08:22:28 +01:00
2022-10-07 12:05:29 -07:00
2022-10-06 13:31:13 +02:00
2022-10-08 08:56:37 -07:00
2022-10-10 09:27:46 -07:00
2022-10-07 16:48:26 -07:00
2022-10-11 10:53:25 -07:00
2022-10-03 21:52:33 -07:00
2022-10-12 11:00:22 -07:00
2022-10-08 10:06:48 -07:00
2022-10-07 16:13:55 -07:00
2022-10-04 19:36:53 -07:00
2022-10-13 09:58:42 -07:00
2022-10-07 16:48:26 -07:00
2022-10-10 13:28:06 -07:00
2022-10-05 11:05:17 -06:00
2022-10-12 11:00:22 -07:00
2022-10-07 09:19:14 -07:00
2022-10-10 11:26:40 -06:00
2022-10-10 17:53:04 -07:00
2022-10-14 13:03:00 -07:00
2022-10-17 18:52:43 -07:00
2022-10-14 13:44:44 -07:00
2022-10-10 10:21:22 -07:00
2022-10-10 17:53:04 -07:00
2022-10-10 17:53:04 -07:00
2022-10-03 14:03:19 -07:00
2022-10-16 10:45:17 -07:00
2022-10-12 18:51:49 -07:00
2022-10-10 19:45:17 -07:00
2022-10-11 18:51:11 -07:00
2022-10-04 13:31:45 -07:00
2022-10-06 05:57:36 -07:00
2022-10-10 17:53:04 -07:00
2022-10-10 19:45:17 -07:00
2022-10-03 20:33:41 -07:00
2022-10-03 14:03:30 -07:00
2022-10-03 14:03:20 -07:00
2022-10-12 11:16:58 -07:00
2022-10-12 11:00:22 -07:00
2022-10-03 14:03:21 -07:00
2022-10-12 16:30:56 -06:00
2022-10-04 08:13:20 -06:00
2022-10-10 13:28:06 -07:00
2022-10-03 14:21:44 -07:00
2022-10-03 14:21:43 -07:00
2022-10-03 14:02:59 -07:00
2022-10-03 14:03:33 -07:00
2022-10-03 14:03:19 -07:00
2022-10-03 14:03:21 -07:00
2022-10-03 14:03:25 -07:00
2022-10-07 10:48:49 -07:00
2022-10-06 17:31:02 -07:00
2022-10-03 17:51:52 -07:00
2022-10-04 12:06:58 -06:00
2022-10-10 17:53:04 -07:00
2022-10-03 14:03:29 -07:00
2022-10-12 18:51:49 -07:00
2022-10-12 18:51:49 -07:00
2022-10-03 14:03:35 -07:00
2022-10-03 14:03:19 -07:00
2022-10-03 14:03:28 -07:00
2022-10-10 17:53:04 -07:00
2022-10-24 10:52:50 +01:00
2022-10-15 11:17:12 +01:00
2022-10-19 13:00:04 -07:00
2022-10-03 14:03:15 -07:00
2022-10-11 17:42:55 -06:00
2022-10-03 17:34:32 -07:00
2022-10-03 14:03:04 -07:00
2022-10-10 17:53:04 -07:00
2022-10-04 09:46:22 -07:00
2022-10-11 11:08:18 -07:00
2022-10-03 14:21:43 -07:00
2022-10-04 13:32:08 +02:00
2022-10-03 17:33:57 -07:00
2022-10-20 17:49:10 -07:00
2022-10-04 20:52:38 +02:00
2022-10-04 20:52:38 +02:00
2022-10-11 17:42:58 -06:00
2022-10-04 15:55:55 +02:00
2022-10-11 17:42:58 -06:00
2022-10-18 10:27:02 -07:00
2022-10-04 15:59:36 +02:00
2022-10-10 17:53:04 -07:00
2022-10-14 12:28:43 -07:00
2022-10-09 14:05:15 -07:00
2022-10-03 14:03:33 -07:00
2022-10-12 16:30:34 -06:00
2022-10-15 21:42:05 +02:00
2022-10-10 17:53:04 -07:00
2022-10-03 14:03:18 -07:00
2022-10-08 08:56:37 -07:00
2022-10-10 09:10:28 -07:00
2022-10-03 14:03:36 -07:00
2022-10-03 14:03:36 -07:00
2022-10-03 17:44:18 -07:00
2022-10-04 11:21:06 +02:00
2022-10-03 14:03:18 -07:00
2022-10-24 10:52:50 +01:00
2022-10-07 09:32:40 -04:00
2022-10-07 08:10:52 -06:00
2022-10-07 09:32:40 -04:00
2022-10-07 15:00:25 +02:00
2022-10-03 14:03:08 -07:00