From: Andi Kleen <ak@suse.de>
To: Jean Delvare <jdelvare@suse.de>
Cc: netdev@vger.kernel.org, Andi Kleen <ak@suse.de>
Subject: Re: [PATCH] net: Saner thash_entries default with much memory
Date: Fri, 26 Oct 2007 17:34:17 +0200 [thread overview]
Message-ID: <20071026153416.GA23491@bingen.suse.de> (raw)
In-Reply-To: <200710261721.32019.jdelvare@suse.de>
On Fri, Oct 26, 2007 at 05:21:31PM +0200, Jean Delvare wrote:
> I know that /proc/net/tcp is
> deprecated in favor of tcp_diag, however at the moment netstat only
> knows of the former.
Even tcp_diag will be slow when all slots are dumped. It's a fundamental
problem of the data structure. /proc has slightly higher constant
factor overhead, that's all.
Also there are some tricks to make it a little faster (e.g.
the old patches to not take the lock for empty buckets) but again
it's only just patching constant factors, not the fundamental
scaling issue.
> I propose 2 millions of entries as the arbitrary high limit. This
It's probably still far too large.
-Andi
next prev parent reply other threads:[~2007-10-26 15:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-26 15:21 [PATCH] net: Saner thash_entries default with much memory Jean Delvare
2007-10-26 15:34 ` Andi Kleen [this message]
2007-10-30 7:57 ` David Miller
2007-10-30 13:18 ` Jean Delvare
2007-10-30 21:11 ` David Miller
2007-10-30 20:42 ` Andi Kleen
2007-10-30 21:46 ` David Miller
2007-10-26 15:55 ` akepner
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=20071026153416.GA23491@bingen.suse.de \
--to=ak@suse.de \
--cc=jdelvare@suse.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.