hammer - Add memory use limit option for dedup runs
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 4 Aug 2011 04:57:48 +0000 (21:57 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 4 Aug 2011 05:02:47 +0000 (22:02 -0700)
commitfbe1c6652892c718ed11437dd5806a560fc5e173
tree4b898e8cda429e118c48a4062d07b52f64727f0f
parent178820278fb09e3fd57312a9d6eda54040fda374
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.
sbin/hammer/cmd_dedup.c
sbin/hammer/hammer.8
sbin/hammer/hammer.c
sbin/hammer/hammer.h