git: hammer - Add simple I/O optimization, collect stats on new deduplications
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Aug 3 19:46:33 PDT 2011
commit 178820278fb09e3fd57312a9d6eda54040fda374
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(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/178820278fb09e3fd57312a9d6eda54040fda374
--
DragonFly BSD source repository
More information about the Commits
mailing list