From: Jens Axboe Date: Sun, 28 Sep 2014 03:29:03 +0000 (-0600) Subject: t/dedupe: fixup bloom entry calculation X-Git-Tag: fio-2.1.13~18 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=bc095aab789a2e7d036c6d499f6c124a0c2d5de0;p=fio.git t/dedupe: fixup bloom entry calculation With m/n at 8x and with 5 default hashes for blooming, we should be around ~2% false positive rate max. Signed-off-by: Jens Axboe --- diff --git a/t/dedupe.c b/t/dedupe.c index 12ede8f0..f9fb8c4a 100644 --- a/t/dedupe.c +++ b/t/dedupe.c @@ -452,7 +452,7 @@ static int dedupe_check(const char *filename, uint64_t *nextents, if (use_bloom) { uint64_t bloom_entries; - bloom_entries = (3 * dev_size ) / (blocksize * 2); + bloom_entries = 8 * (dev_size / blocksize); bloom = bloom_new(bloom_entries); }