Re: dedupe and replay

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2014-09-27 07:45, Jens Axboe wrote:
On 09/27/2014 05:19 AM, Alket Memushaj wrote:
thanks for the quick response - but unfortunately this patch does not
seem to have changed the result. I managed to get a 1.4:1 dedupe when
setting dedupe_percentage to 99%. The test rig I have is like this: an
array w/ inline dedupe @ 4K and I am the only user on it - I have a
single machine mounting a single lun from the array (the whole space
in the array is assigned to this lun). The synthetic test at
dedupe_percentage=80 results in a 4:1 dedupe ratio from the array. The
replay at 80% comes out as undedupable (ratio = 1.0:1) even with the
latest patch. The replay generates about 1.7 million I/Os. ~1 million
are 4K, 80 thousand are 8K, 70 thousand are 32K, etc... there's a
decent number of I/O that is not a multiple of 4K, but the vast
majority of the I/O is a multiple of 4K. The offset for each I/O is 4K
aligned in the vast majority of I/Os.

(please don't top post)

I'll try with a trace replay here. If you can, would be nice to get your
trace.

So ran a quick test here. The original file:

[dedupe]
filename=test
bssplit=4k/58:8k/5:16k/5:32k/5:64k/5:128k/5
rw=write
size=1g
dedupe_percentage=80
write_iolog=dedupe.log

Ran this and check how well 'test' dedupes:

axboe@nelson:/home/axboe/git/fio $ t/dedupe test
Will check <test>, size <1073741824>, using 8 threads
Threads(8): 262144 items processed
Extents=262144, Unique extents=51955
De-dupe factor: 5.05
Fio setting: dedupe_percentage=80

So far, so good, we get expected results (1:4, or 80%). The dedupe.log looks fine, lets replay that with:

[dedupe]
filename=test
rw=write
read_iolog=dedupe.log
size=1g
dedupe_percentage=80
write_iolog=dedupe.log

Ran this, and then check how well that dedupes:

axboe@nelson:/home/axboe/git/fio $ t/dedupe test
Will check <test>, size <1073741824>, using 8 threads
Threads(8): 262144 items processed
Extents=262144, Unique extents=51953
De-dupe factor: 5.05
Fio setting: dedupe_percentage=80

Pretty much identical. So it seems to work fine for me, generating appropriately random buffers.

I might need your trace to figure out what's going on for you.

--
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux