kstat.zfs.misc.arcstats.hash_collisions

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Apr 16 06:59:26 UTC 2010


On Fri, Apr 16, 2010 at 01:19:38AM +0300, Andriy Gapon wrote:
> kstat.zfs.misc.arcstats.hash_elements: 8465
> kstat.zfs.misc.arcstats.hash_elements_max: 336855
> kstat.zfs.misc.arcstats.hash_collisions: 3463061
> kstat.zfs.misc.arcstats.hash_chains: 549
> kstat.zfs.misc.arcstats.hash_chain_max: 19
> 
> Doesn't hash_collisions value look fishy?
> I haven't looked at the code yet.  Perhaps stats gathering is not correct,
> perhaps something else, but collisions value is really too high for my taste.

The hash_collisions counter is increased every time we try to add buffer
to the list and something is already there. I think more important
counter here is hash_chain_max, which contains maximum number of buffers
on one list ever recorded. And 19 doesn't seem like a big number.

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20100416/89fe8a58/attachment.pgp


More information about the freebsd-fs mailing list