diff options
author | Eric Dumazet <[email protected]> | 2022-06-08 23:34:09 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-06-10 16:21:26 -0700 |
commit | 3cd3399dd7a84ada85cb839989cdf7310e302c7d (patch) | |
tree | 8e815ea9747b1e3e1a7ca89414f4f9f35f3bf185 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 0defbb0af775ef037913786048d099bbe8b9a2c2 (diff) |
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 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions