From 2f2fc237713e13a1ed7ea0835571a9d4befed0c6 Mon Sep 17 00:00:00 2001 From: Moinak Ghosh Date: Fri, 26 Apr 2013 19:21:11 +0530 Subject: [PATCH] Tweak index size computation. --- rabin/global/index.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rabin/global/index.c b/rabin/global/index.c index 6514e8d..684bb60 100644 --- a/rabin/global/index.c +++ b/rabin/global/index.c @@ -190,10 +190,10 @@ set_cfg: *memreqd = MEM_REQD(*hash_slots, *hash_entry_size); /* - * If memory required is more than thrice the indicated memory limit then + * If memory required is more than twice the indicated memory limit then * we switch to Segmented Similarity based dedupe. */ - if (*memreqd > (memlimit * 3) && cfg->dedupe_mode == MODE_SIMPLE && + if (*memreqd > (memlimit * 2) && cfg->dedupe_mode == MODE_SIMPLE && *pct_interval == 0 && tmppath != NULL) { *pct_interval = DEFAULT_PCT_INTERVAL; set_user = 1;