diff options
author | Liping Zhang <zlpnobody@gmail.com> | 2017-03-12 14:38:47 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-03-13 21:30:43 +0300 |
commit | 03e5fd0e9bcc1f34b7a542786b34b8f771e7c260 (patch) | |
tree | f22669fa7302bfa16f0498beeb3ca5f514deada3 /Documentation/networking/ipvs-sysctl.txt | |
parent | 2cb4bbd75bdf9d423b9f6c629f81eb66ee312fac (diff) | |
download | linux-03e5fd0e9bcc1f34b7a542786b34b8f771e7c260.tar.xz |
netfilter: nft_set_rbtree: use per-set rwlock to improve the scalability
Karel Rericha reported that in his test case, ICMP packets going through
boxes had normally about 5ms latency. But when running nft, actually
listing the sets with interval flags, latency would go up to 30-100ms.
This was observed when router throughput is from 600Mbps to 2Gbps.
This is because we use a single global spinlock to protect the whole
rbtree sets, so "dumping sets" will race with the "key lookup" inevitably.
But actually they are all _readers_, so it's ok to convert the spinlock
to rwlock to avoid competition between them. Also use per-set rwlock since
each set is independent.
Reported-by: Karel Rericha <karel@unitednetworks.cz>
Tested-by: Karel Rericha <karel@unitednetworks.cz>
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'Documentation/networking/ipvs-sysctl.txt')
0 files changed, 0 insertions, 0 deletions