diff options
author | Eric Dumazet <edumazet@google.com> | 2016-12-08 11:41:54 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-09 22:12:21 -0500 |
commit | 4b272750dbe6f92a8d39a0ee1c7bd50d6cc1a2c8 (patch) | |
tree | 133fce068fcb1964ef08ae66ef51f5301d0862ad /include/linux/pr.h | |
parent | d96dac145492ff54e32967dc486e2a90e51664ea (diff) |
udp: add busylocks in RX path
Idea of busylocks is to let producers grab an extra spinlock
to relieve pressure on the receive_queue spinlock shared by consumer.
This behavior is requested only once socket receive queue is above
half occupancy.
Under flood, this means that only one producer can be in line
trying to acquire the receive_queue spinlock.
These busylock can be allocated on a per cpu manner, instead of a
per socket one (that would consume a cache line per socket)
This patch considerably improves UDP behavior under stress,
depending on number of NIC RX queues and/or RPS spread.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/pr.h')
0 files changed, 0 insertions, 0 deletions