hammer - Add simple I/O optimization, collect stats on new deduplications
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 4 Aug 2011 02:41:22 +0000 (19:41 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 4 Aug 2011 02:41:22 +0000 (19:41 -0700)
commit178820278fb09e3fd57312a9d6eda54040fda374
treeefd3cbe63db9718a0c536ccd5486e9025307c7a9
parente9c8ad3de06380d50c82602e718613d908c1ac59
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.
sbin/hammer/cmd_dedup.c