From: Marcus Meissner <meissner@suse.de>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: netdev@oss.sgi.com
Subject: Re: [patch] do not readlock all buckets in /proc/net/tcp
Date: Mon, 5 Jul 2004 13:35:55 +0200 [thread overview]
Message-ID: <20040705113555.GA28665@suse.de> (raw)
In-Reply-To: <E1BhRda-0001Rs-00@gondolin.me.apana.org.au>
On Mon, Jul 05, 2004 at 09:27:54PM +1000, Herbert Xu wrote:
> Marcus Meissner <meissner@suse.de> 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
next prev parent reply other threads:[~2004-07-05 11:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-05 11:09 [patch] do not readlock all buckets in /proc/net/tcp Marcus Meissner
2004-07-05 11:27 ` Herbert Xu
2004-07-05 11:35 ` Marcus Meissner [this message]
2004-07-05 12:06 ` Herbert Xu
2004-07-05 12:25 ` YOSHIFUJI Hideaki / 吉藤英明
2004-07-05 12:45 ` Marcus Meissner
2004-07-05 13:25 ` YOSHIFUJI Hideaki / 吉藤英明
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040705113555.GA28665@suse.de \
--to=meissner@suse.de \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).