From: kuznet@ms2.inr.ac.ru
To: sim@netnation.com (Simon Kirby)
Cc: linux-kernel@vger.kernel.org
Subject: Re: Really slow netstat and /proc/net/tcp in 2.4
Date: Fri, 12 Oct 2001 20:44:58 +0400 (MSK DST) [thread overview]
Message-ID: <200110121644.UAA12030@ms2.inr.ac.ru> (raw)
In-Reply-To: <20011011125538.C10868@netnation.com> from "Simon Kirby" at Oct 11, 1 12:55:38 pm
Hello!
> Is it possible to fix this? Was the 2.2 hash table just that much
> smaller?
2.2 did not use hash tables, holding special single list for /proc.
If I understand correctly it was removed because added more data/work
and new point of synchronization for main path being useful only for /proc.
The approach would be justified, if you had 100000 sockets. In this
case both approaches are equally slow. :-) But for 1000 sockets hash
table of 100000 entries is sort of overscaled.
> Is it possible to fix this?
To fix --- no. To make differently --- yes.
Well, actually, if you are interested drop me a not I can pack for you some
my old work on this. It is fully functional, but api is still dirty.
It requires some patching kernel, unfortunately.
Alexey
next prev parent reply other threads:[~2001-10-12 16:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-11 18:47 Really slow netstat and /proc/net/tcp in 2.4 Simon Kirby
2001-10-11 19:30 ` kuznet
2001-10-11 19:55 ` Simon Kirby
2001-10-12 16:44 ` kuznet [this message]
2001-10-12 19:36 ` Simon Kirby
2001-10-12 19:43 ` kuznet
2001-10-12 19:56 ` Andi Kleen
2001-10-12 22:10 ` Simon Kirby
2001-10-12 23:57 ` Andi Kleen
2001-10-13 15:07 ` Hugh Dickins
2001-10-13 16:07 ` Andi Kleen
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=200110121644.UAA12030@ms2.inr.ac.ru \
--to=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=sim@netnation.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