aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_timer.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2022-06-09 06:34:09 +0000
committerJakub Kicinski <[email protected]>2022-06-10 23:21:26 +0000
commit3cd3399dd7a84ada85cb839989cdf7310e302c7d (patch)
tree8e815ea9747b1e3e1a7ca89414f4f9f35f3bf185 /net/ipv4/tcp_timer.c
parentnet: add per_cpu_fw_alloc field to struct proto (diff)
downloadkernel-3cd3399dd7a84ada85cb839989cdf7310e302c7d.tar.gz
kernel-3cd3399dd7a84ada85cb839989cdf7310e302c7d.zip
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 <[email protected]> Acked-by: Soheil Hassas Yeganeh <[email protected]> Reviewed-by: Shakeel Butt <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
0 files changed, 0 insertions, 0 deletions