From: David Miller <davem@davemloft.net>
To: matti.aarnio@zmailer.org
Cc: netdev@vger.kernel.org
Subject: Re: O(n^2) or worse ? cat /proc/net/tcp
Date: Sun, 23 Mar 2008 16:20:21 -0700 (PDT) [thread overview]
Message-ID: <20080323.162021.184196552.davem@davemloft.net> (raw)
In-Reply-To: <20080323224307.GL3700@mea-ext.zmailer.org>
From: Matti Aarnio <matti.aarnio@zmailer.org>
Date: Mon, 24 Mar 2008 00:43:07 +0200
> 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.
There have been some improvements in this area over the
past few releases.
If you tell us what version you're running we can try to
dig out the changes that matter.
next prev parent reply other threads:[~2008-03-23 23:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-23 22:43 O(n^2) or worse ? cat /proc/net/tcp Matti Aarnio
2008-03-23 23:20 ` David Miller [this message]
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
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=20080323.162021.184196552.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=matti.aarnio@zmailer.org \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).