git: hammer - Add memory use limit option for dedup runs

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Aug 3 22:04:00 PDT 2011


commit fbe1c6652892c718ed11437dd5806a560fc5e173
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Aug 3 21:57:48 2011 -0700

    hammer - Add memory use limit option for dedup runs
    
    * Add '-m memlimit' (default 1G) to limit memory use during a dedup run.
      If the limit is reached hammer will reduce the range of CRCs in the scan
      and will perform multiple passes as needed to dedup the entire filesystem.
    
    * VerboseOpt (-v) will be verbose about crc-range truncation and multiple
      passes.

Summary of changes:
 sbin/hammer/cmd_dedup.c |  272 ++++++++++++++++++++++++++++++++++-------------
 sbin/hammer/hammer.8    |   22 ++++
 sbin/hammer/hammer.c    |   30 +++++-
 sbin/hammer/hammer.h    |    1 +
 4 files changed, 252 insertions(+), 73 deletions(-)

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


-- 
DragonFly BSD source repository





More information about the Commits mailing list