diff options
author | Eric Dumazet <[email protected]> | 2022-06-10 20:30:16 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-06-13 13:35:25 +0100 |
commit | 219160be496f7f9cd105c5708e37cf22ab4ce0c7 (patch) | |
tree | cf2ec0a5c25c90def3f59acc871d490b4aa3afba /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4066bf4ce3ae3e322fa0c3c6418e45d99ff086b8 (diff) |
tcp: sk_forced_mem_schedule() optimization
sk_memory_allocated_add() has three callers, and returns
to them @memory_allocated.
sk_forced_mem_schedule() is one of them, and ignores
the returned value.
Change sk_memory_allocated_add() to return void.
Change sock_reserve_memory() and __sk_mem_raise_allocated()
to call sk_memory_allocated().
This removes one cache line miss [1] for RPC workloads,
as first skbs in TCP write queue and receive queue go through
sk_forced_mem_schedule().
[1] Cache line holding tcp_memory_allocated.
Signed-off-by: Eric Dumazet <[email protected]>
Acked-by: Soheil Hassas Yeganeh <[email protected]>
Reviewed-by: Shakeel Butt <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions