public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.2 -> 2.4: /proc/net/tcp 10x slower ?
@ 2001-02-26 14:12 Sven Rudolph
  2001-02-26 14:42 ` Sean Hunter
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Rudolph @ 2001-02-26 14:12 UTC (permalink / raw)
  To: linux-kernel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-26 14:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-26 14:12 2.2 -> 2.4: /proc/net/tcp 10x slower ? Sven Rudolph
2001-02-26 14:42 ` Sean Hunter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox