
david.lang at digitalinsight
Jul 20, 2007, 11:08 AM
Post #6 of 8
(1533 views)
Permalink
|
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
|