From: Sven Rudolph <rudsve@drewag.de>
To: linux-kernel@vger.kernel.org
Subject: 2.2 -> 2.4: /proc/net/tcp 10x slower ?
Date: 26 Feb 2001 15:12:01 +0100 [thread overview]
Message-ID: <xfkelwlo7ny.fsf@uxrs2.drewag.de> (raw)
Usually identd's on Linux parse /proc/net/tcp.
When migrating from Linux 2.2.17 to 2.4.2 identd became much slower.
I traced it back to the point where /proc/net/tcp is read.
On the same slightly loaded system:
2.2.17 $ time cat /proc/net/tcp >/dev/null
real 0m0.004s
user 0m0.000s
sys 0m0.010s
(Or sometimes 0.000s due to granularity)
2.2.17 $ time cat /proc/net/tcp >/dev/null
real 0m0.083s
user 0m0.000s
sys 0m0.080s
Is this expected? Or is there a more efficient interface that identd
should use?
Sven
next reply other threads:[~2001-02-26 14:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-26 14:12 Sven Rudolph [this message]
2001-02-26 14:42 ` 2.2 -> 2.4: /proc/net/tcp 10x slower ? Sean Hunter
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=xfkelwlo7ny.fsf@uxrs2.drewag.de \
--to=rudsve@drewag.de \
--cc=linux-kernel@vger.kernel.org \
/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