diff options
author | 2015-05-12 17:24:50 -0700 | |
---|---|---|
committer | 2015-05-14 17:49:06 -0400 | |
commit | 91dd93f956b9ea9ecf47fd4b9acd2d2e7f980303 (patch) | |
tree | 1144107d6ac2f98703f314450ebb866baf6bcbad /net/switchdev/switchdev.c | |
parent | vlan: Correctly propagate promisc|allmulti flags in notifier. (diff) | |
download | wireguard-linux-91dd93f956b9ea9ecf47fd4b9acd2d2e7f980303.tar.xz wireguard-linux-91dd93f956b9ea9ecf47fd4b9acd2d2e7f980303.zip |
netlink: move nl_table in read_mostly section
netlink sockets creation and deletion heavily modify nl_table_users
and nl_table_lock.
If nl_table is sharing one cache line with one of them, netlink
performance is really bad on SMP.
ffffffff81ff5f00 B nl_table
ffffffff81ff5f0c b nl_table_users
Putting nl_table in read_mostly section increased performance
of my open/delete netlink sockets test by about 80 %
This came up while diagnosing a getaddrinfo() problem.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions