From cfb6a75f8c834394b1489b1fbadaed5bb987158a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 12 May 2020 09:55:45 -0500 Subject: [PATCH] ceph-dedup-tool: larger default op size 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 --- src/tools/ceph_dedup_tool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/ceph_dedup_tool.cc b/src/tools/ceph_dedup_tool.cc index 181d96023c335..ae98f914160d0 100644 --- a/src/tools/ceph_dedup_tool.cc +++ b/src/tools/ceph_dedup_tool.cc @@ -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 > chunk_statistics; // < key, > -- 2.39.5