[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <492C85AA.9080205@cosmosbay.com>
Date: Wed, 26 Nov 2008 00:09:30 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: "David S. Miller" <davem@...emloft.net>
CC: Linux Netdev List <netdev@...r.kernel.org>
Subject: [PATCH] net: Use a percpu_counter for orphan_count
Hi David
Here is the second patch, after one for sockets_allocated
Thank you
[PATCH] 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@...mosbay.com>
---
include/net/sock.h | 2 +-
include/net/tcp.h | 2 +-
net/dccp/dccp.h | 2 +-
net/dccp/proto.c | 16 ++++++++++------
net/ipv4/inet_connection_sock.c | 4 ++--
net/ipv4/proc.c | 2 +-
net/ipv4/tcp.c | 12 +++++++-----
net/ipv4/tcp_timer.c | 2 +-
8 files changed, 24 insertions(+), 18 deletions(-)
View attachment "orphan.patch" of type "text/plain" (5848 bytes)
Powered by blists - more mailing lists