Jeremy Archer wrote: > I am pondering the fact that the txg is part of the hash key for the arc. It > seems to me, > this has a profound implication: read caching is per txg.
I assuming you are looking at: BUF_HASH_INDEX() and buf_hash() in $SRC/uts/common/fs/zfs/arc.c right ? Note that the txg is the *birth* txg of the block which is doesn't change. It is that txg that is used in the hash not the txg that we are doing the read of the block in. -- Darren J Moffat