[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-netdev
Subject:    Re: Another look at established socket hash table size
From:       "David S. Miller" <davem () davemloft ! net>
Date:       2005-11-30 0:09:37
Message-ID: 20051129.160937.108986879.davem () davemloft ! net
[Download RAW message or body]

From: Mike Stroyan <mike.stroyan@hp.com>
Date: Tue, 29 Nov 2005 16:25:02 -0700

>   Is there any plan to change netstat to replace its uses of
> /proc/net/tcp* ?

Ask the maintainer of that userland utility :-)
It is a change which should be made.

>   The current mechanism with alloc_large_system_hash does scale the
> hash table in proportion to the size of struct inet_ehash_bucket.
> The numentries calculation is always done in terms of the number of hash
> buckets.  The scale parameter is the desired power-of-two ratio between
> the bytes of available RAM and the number of hash buckets.  If the size
> of a pointer increases it will be reflected in the size of the struct.
> That will increase the amount of RAM dedicated to the hash table.

Wonderful, and I'll apply your patch, thanks.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic