diff options
author | Eric Dumazet <edumazet@google.com> | 2016-04-27 01:30:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-28 04:55:45 +0300 |
commit | 501e7ef569f4ea2dc7e50773cf6a5d757c94f9b4 (patch) | |
tree | ed5b66685cc0b9623945a1b99066502d15fa19f3 /arch/arm64/lib | |
parent | 35ef7d689d7d54ab345b179e50c749fe3a2529eb (diff) | |
download | linux-501e7ef569f4ea2dc7e50773cf6a5d757c94f9b4.tar.xz |
net-rfs: fix false sharing accessing sd->input_queue_head
sd->input_queue_head is incremented for each processed packet
in process_backlog(), and read from other cpus performing
Out Of Order avoidance in get_rps_cpu()
Moving this field in a separate cache line keeps it mostly
hot for the cpu in process_backlog(), as other cpus will
only read it.
In a stress test, process_backlog() was consuming 6.80 % of cpu cycles,
and the patch reduced the cost to 0.65 %
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/arm64/lib')
0 files changed, 0 insertions, 0 deletions