]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-dedup-tool: larger default op size
authorSage Weil <sage@newdream.net>
Tue, 12 May 2020 14:55:45 +0000 (09:55 -0500)
committerSage Weil <sage@newdream.net>
Wed, 27 May 2020 12:47:27 +0000 (07:47 -0500)
If we don't read the entire object the rabin calculation won't work.  Avoid
this by default by just using a sufficiently large chunk size.

Signed-off-by: Sage Weil <sage@newdream.net>
src/tools/ceph_dedup_tool.cc

index 181d96023c335f79cea247257d2376397ca668ba..ae98f914160d030802916056c6640633dcbea10b 100644 (file)
@@ -48,7 +48,7 @@
 #include "common/rabin.h"
 
 using namespace librados;
-unsigned default_op_size = 1 << 22;
+unsigned default_op_size = 1 << 26;
 unsigned default_max_thread = 2;
 int32_t default_report_period = 2;
 map< string, pair <uint64_t, uint64_t> > chunk_statistics; // < key, <count, chunk_size> >