git: hammer - Add simple I/O optimization, collect stats on new deduplications
dillon at crater.dragonflybsd.org
Wed Aug 3 19:46:33 PDT 2011
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Aug 3 19:41:22 2011 -0700
hammer - Add simple I/O optimization, collect stats on new deduplications
* Add a simple I/O optimization. When dealing with CRC collisions scan
the SHA sub-tree looking for the data_offset/data_len match, allowing
us to avoid unnecessary I/O reads.
This effects data which has already been de-duplicated, so it will improve
dedup rescan times on the portion that has already been dedupped.
* Collect statistics on NEW deduplications during the pass and print them
out in the final stats as well as in the ^T stats.
Summary of changes:
sbin/hammer/cmd_dedup.c | 81 ++++++++++++++++++++++++++++++++++-------------
1 files changed, 59 insertions(+), 22 deletions(-)
DragonFly BSD source repository
More information about the Commits