On Mar 1, 2010, at 7:44 PM, study wrote:
> Hello ZFS experts:
>
> I would like to study ZFS de-duplication feature. Can someone please let me
know which directory/files I should be looking at?
The community home page is:
http://hub.opensolaris.org/bin/view/Community+Group+zfs/
from there you should start with the docs and source code tour:
http://hub.opensolaris.org/bin/view/Community+Group+zfs/docs
http://hub.opensolaris.org/bin/view/Community+Group+zfs/source
The source tour is somewhat outdated (doesn''t contain dedup
changes). But it is a good starting point for figuring out how the
parts fit together.
Once you grok that, most of the dedup code is in the source files:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/fs/zfs/ddt.c
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/fs/zfs/ddt_zap.c
You will find the zdb -D flag useful as you explore real systems.
-- richard
ZFS storage and performance consulting at http://www.RichardElling.com
ZFS training on deduplication, NexentaStor, and NAS performance
http://nexenta-atlanta.eventbrite.com (March 16-18, 2010)