[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <492AB357.1080304@cosmosbay.com>
Date: Mon, 24 Nov 2008 14:59:51 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: "David S. Miller" <davem@...emloft.net>
CC: Andi Kleen <andi@...stfloor.org>,
Linux Netdev List <netdev@...r.kernel.org>,
Corey Minyard <minyard@....org>,
Christian Bell <christian@...i.com>
Subject: [PATCH] net: avoid a pair of dst_hold()/dst_release() in ip_push_pending_frames()
We can reduce pressure on dst entry refcount that slowdown UDP transmit
path on SMP machines. This pressure is visible on RTP servers when
delivering content to mediagateways, especially big ones, handling
thousand of streams. Several cpus send UDP frames to the same
destination, hence use the same dst entry.
This patch makes ip_push_pending_frames() steal the refcount its
callers had to take when filling inet->cork.dst.
This doesnt avoid all refcounting, but still gives speedups on SMP,
on UDP/RAW transmit path.
Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
---
net/ipv4/ip_output.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
View attachment "ip_push_pending_frames.patch" of type "text/plain" (542 bytes)
Powered by blists - more mailing lists