public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sean Hunter <sean@dev.sportingbet.com>
To: Sven Rudolph <rudsve@drewag.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.2 -> 2.4: /proc/net/tcp 10x slower ?
Date: Mon, 26 Feb 2001 14:42:09 +0000	[thread overview]
Message-ID: <20010226144209.A3379@dev.sportingbet.com> (raw)
In-Reply-To: <xfkelwlo7ny.fsf@uxrs2.drewag.de>
In-Reply-To: <xfkelwlo7ny.fsf@uxrs2.drewag.de>; from rudsve@drewag.de on Mon, Feb 26, 2001 at 03:12:01PM +0100

The identd wot I wrote is still fast as anything on 2.4 :)

As you can see from this teeny sample of my ident log, I take just a little
over 1/100th of a second to respond (on average). :)

2001-02-25 16:18:35.714731500 Q [194.75.152.225] - [32907, 25]
2001-02-25 16:18:35.726085500 A [194.75.152.225] - [9a0c62e79c0df893bb96dd74/3a99305b/b0164] for [32907, 25] UID [506]
2001-02-26 09:41:02.535514500 Q [195.92.249.252] - [33363, 21]
2001-02-26 09:41:02.548884500 A [195.92.249.252] - [8c0babd7b8ab6830b7092839/3a9a24ae/8454c] for [33363, 21] UID [500]

By the way, the intention of my ident server was not to be fast, but just to be
a little simpler and less over-engineered than pidentd, and not to give out any
site-specific information (uid's etc).  The speed was a bonus.

Sean


On Mon, Feb 26, 2001 at 03:12:01PM +0100, Sven Rudolph wrote:
> 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
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

      reply	other threads:[~2001-02-26 14:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-26 14:12 2.2 -> 2.4: /proc/net/tcp 10x slower ? Sven Rudolph
2001-02-26 14:42 ` Sean Hunter [this message]

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=20010226144209.A3379@dev.sportingbet.com \
    --to=sean@dev.sportingbet.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rudsve@drewag.de \
    /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