net: Use a percpu_counter for orphan_count
Instead of using one atomic_t per protocol, use a percpu_counter for "orphan_count", to reduce cache line contention on heavy duty network servers. Signed-off-by:Eric Dumazet <dada1@cosmosbay.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/sock.h 1 addition, 1 deletioninclude/net/sock.h
- include/net/tcp.h 1 addition, 1 deletioninclude/net/tcp.h
- net/dccp/dccp.h 1 addition, 1 deletionnet/dccp/dccp.h
- net/dccp/proto.c 10 additions, 6 deletionsnet/dccp/proto.c
- net/ipv4/inet_connection_sock.c 2 additions, 2 deletionsnet/ipv4/inet_connection_sock.c
- net/ipv4/proc.c 1 addition, 1 deletionnet/ipv4/proc.c
- net/ipv4/tcp.c 7 additions, 5 deletionsnet/ipv4/tcp.c
- net/ipv4/tcp_timer.c 1 addition, 1 deletionnet/ipv4/tcp_timer.c
Please register or sign in to comment