Re: even hash tables sizes, FAQ entry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 20 Jul 2007, Patrick McHardy wrote:

David Lang wrote:
On Fri, 20 Jul 2007, Thomas Jacob wrote:

On Thu, Jul 19, 2007 at 05:13:11PM -0700, David Lang wrote:
[..]

Is this still true? What is the reason for this? And: Does
any odd hashtable size work as well as other odd hash tables sizes
in the same order of magnitude?


changing conntrack_max is not chaning the hash bucket count, that change
can only be done in the code or as a module parameter at module load
time.


Sure, I meant odd hash bucket counts of course, so is this
FAQ still accurate?


as far as I know.


None of this is :) hash_buckets can be changed at runtime through the
sysfs module parameter and the size can be chosen arbitary, in fact
the current -git tree will round it up to the next multiple of
PAGE_SIZE / (sizeof(struct hlist_head)) to avoid memory wastage.

not knowing what that sizeof evaluates to, has anyone checked to make sure that this doesn't cause pathalogical performance or distribution problems with this hash?

David Lang


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux