David Lang wrote: > On Fri, 20 Jul 2007, Patrick McHardy wrote: >> >> 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 Its not something a user needs to know, but its 4 bytes on 32 bit and 8 bytes on 64 bit. > has anyone checked to make > sure that this doesn't cause pathalogical performance or distribution > problems with this hash? Yes. jhash has been extensively scrutinzed before becoming standard for basically everything under net/. You can safely assume that all hashsizes behave similar (and patches for outdates FAQs are welcome).