[Top] [All Lists]

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

To: meissner@xxxxxxx (Marcus Meissner)
Subject: Re: [patch] do not readlock all buckets in /proc/net/tcp
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 05 Jul 2004 21:27:54 +1000
Cc: netdev@xxxxxxxxxxx
In-reply-to: <>
Organization: Core
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: tin/1.7.4-20040225 ("Benbecula") (UNIX) (Linux/2.4.26-1-686-smp (i686))
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.
Visit Openswan at
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page:
PGP Key:

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