Re: Awfully slow /proc/net/tcp, netstat, in.identd in 2.4 (updated)

Andi Kleen (ak@muc.de)
19 Oct 2001 20:22:21 +0200


In article <20011019085944.A16467@netnation.com>,
Simon Kirby <sim@netnation.com> writes:

> TCP: Hash tables configured (established 262144 bind 65536)

No it means you have 512+k buckets (*4 on UP; *8 on SMP for bytes = ~4MB)
for the established hash and 64k for the bind hash (the later is only
used internally and searched for netstat).

4MB for a hash table looks ridiculously large to me.

> ...but shrinking the size slightly won't really fix the problem, it will
> just make it less obvious.

the size is the problem. walking an 4MB table will be always slow.

-Andi
-
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/