DragonFly BSD
DragonFly commits List (threaded) for 2011-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: hammer - Collect record statistics, implement ^T and ^C


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 3 Aug 2011 18:48:12 -0700 (PDT)

commit e9c8ad3de06380d50c82602e718613d908c1ac59
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Wed Aug 3 18:42:38 2011 -0700

    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.

Summary of changes:
 sbin/hammer/cmd_dedup.c |   69 ++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 62 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e9c8ad3de06380d50c82602e718613d908c1ac59


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]