netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* O(n^2) or worse ?   cat /proc/net/tcp
@ 2008-03-23 22:43 Matti Aarnio
  2008-03-23 23:20 ` David Miller
  2008-03-24  4:06 ` Andi Kleen
  0 siblings, 2 replies; 7+ messages in thread
From: Matti Aarnio @ 2008-03-23 22:43 UTC (permalink / raw)
  To: netdev

I have about 750 TCP socket on one multi-threaded server application, and 
about 250 on three single-threaded clients.

I did observe odd slowness at first with  "lsof -p .."  program, then at
"netstat -na".  Same slowdown happens with:  cat /proc/net/tcp
(that 'cat' took 25 seconds...)

Sure this is not earth shatterinly dangerous thing, rather a nuisance
when a monitoring application is not as fast as one would expect.


Application works fine, though.

  /Matti Aarnio

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

end of thread, other threads:[~2008-03-27 21:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-23 22:43 O(n^2) or worse ? cat /proc/net/tcp Matti Aarnio
2008-03-23 23:20 ` David Miller
2008-03-24  3:33   ` Matti Aarnio
2008-03-27 11:49   ` Matti Aarnio
2008-03-27 21:28     ` David Miller
2008-03-24  4:06 ` Andi Kleen
2008-03-27 10:51   ` Matti Aarnio

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).