Re: 2.4.19pre2aa1

Andrea Arcangeli (andrea@suse.de)
Tue, 12 Mar 2002 07:36:59 +0100


On Tue, Mar 12, 2002 at 05:31:52AM +0000, wli@holomorphy.com wrote:
> On Tue, Mar 12, 2002 at 04:19:58AM +0000, wli@parcelfarce.linux.theplanet.co.uk wrote:
> > http://www.samba.org/~anton/linux/pagecache/pagecache_before.png
> >
> > is a histogram of the pagecache hash function's bucket distribution
> > on an SMP ppc64 machine after some benchmark run.
> >
> > http://www.samba.org/~anton/linux/pagecache/pagecache_after.png
> >
> > has a histogram of a Fibonacci hashing hash function's bucket
> > distribution on the same machine after an identical benchmark run.
>
> akpm just pointed out to me these histograms are not quite the best
> comparisons as the tables differ in size. I'll get something webabble

yes, I also noticed it immediatly, 250000 buckets vs 8million buckets...
Not only that, now I also noticed it seems there is a different number
of entries into the two hashes.

> soon with head-to-head comparisons. OTOH the general nature of things
> should be clear and the behavior of that hash function visible.

I won't be really surprised if you can beat the pagecache hash with big
files. Fibonacci/mul may very well be better there. I'm not sure if you
can beat it on the small files though, and still one should always take
into account the cache effects, the monitoring of the hash distribution
isn't the end of the story.

I would be mostly interested to see a comparions for the hashfn of the
wait_table too, that is the thing we were discussing here.

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