[Top] [All Lists]

Re: [patch] do not readlock all buckets in /proc/net/tcp

To: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [patch] do not readlock all buckets in /proc/net/tcp
From: Marcus Meissner <meissner@xxxxxxx>
Date: Mon, 5 Jul 2004 13:35:55 +0200
Cc: netdev@xxxxxxxxxxx
In-reply-to: <>
References: <> <>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6i
On Mon, Jul 05, 2004 at 09:27:54PM +1000, Herbert Xu wrote:
> Marcus Meissner <meissner@xxxxxxx> wrote:
> > 
> > This patch makes the files /proc/net/tcp and /proc/net/tcp6 not acquire
> > the readlock for every bucket.
> > 
> > On ppc64 and ia64 the readlocks are so expensive, that reading /proc/net/tcp
> > takes 0.25 seconds on a usual p670 LPAR.
> > 
> > And it locks 65536 buckets where just 20 chains are used at all in a normal
> > non-netserver setup.
> Why not use NETLINK+TCP_DIAG instead? It's much faster.

Not sure if you want / can fix all proprietary software.

Oh, and NETLINK+TCP_DIAG seems to have the same readlock contention problem,
see tcpdiag_dump().

Ciao, Marcus

<Prev in Thread] Current Thread [Next in Thread>