diff options
author | Eric Dumazet <edumazet@google.com> | 2022-06-09 09:34:09 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-06-11 02:21:26 +0300 |
commit | 3cd3399dd7a84ada85cb839989cdf7310e302c7d (patch) | |
tree | 8e815ea9747b1e3e1a7ca89414f4f9f35f3bf185 /net/iucv | |
parent | 0defbb0af775ef037913786048d099bbe8b9a2c2 (diff) | |
download | linux-3cd3399dd7a84ada85cb839989cdf7310e302c7d.tar.xz |
net: implement per-cpu reserves for memory_allocated
We plan keeping sk->sk_forward_alloc as small as possible
in future patches.
This means we are going to call sk_memory_allocated_add()
and sk_memory_allocated_sub() more often.
Implement a per-cpu cache of +1/-1 MB, to reduce number
of changes to sk->sk_prot->memory_allocated, which
would otherwise be cause of false sharing.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/iucv')
0 files changed, 0 insertions, 0 deletions