hammer - Collect record statistics, implement ^T and ^C
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 4 Aug 2011 01:42:38 +0000 (18:42 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 4 Aug 2011 01:42:38 +0000 (18:42 -0700)
commite9c8ad3de06380d50c82602e718613d908c1ac59
tree04fa23acb34c3cfba3217222556e4dfb03ce1028
parentce5fe8cc570b00463fd0efbb317ee8f53c9f09ac
hammer - Collect record statistics, implement ^T and ^C

* Add a check for ^C

* Add a check for ^T and print statistics.

* When doing the dedup for real run a pre-pass on the b-tree to count the
  number of data records present so the ^T feature can print out progress.

  This also has the side effect of doing locality-of-reference disk
  accesses to allow the b-tree data blocks to be cached by the kernel
  (or swapcache) before doing the real pass which will insert random data
  block reads when verifying duplicates.  Due to the efficiencies both passes
  should run faster than the original combined pass, or at least not take
  too much longer.
sbin/hammer/cmd_dedup.c