All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael <mclaud@roznica.com.ua>
To: linux-btrfs@vger.kernel.org
Subject: Re: [RFC PATCH v10 00/16] Online(inband) data deduplication
Date: Fri, 11 Apr 2014 21:00:09 +0300	[thread overview]
Message-ID: <53482DA9.4090101@roznica.com.ua> (raw)

Hi Liu,

Thanks for your work.

Each test copy 2gb file from sdf (btrfs) to sde (btrfs with dedup 4k 
blocksize).
Before every test i recreate filesystem.
On second write all goods.

Test 1
Nodesize = leafsize = 4k
Write overhead ~ x1.5

Test 2
Nodesize = leafsize = 16k
Write overhead ~ x19



Test 1:

fs created label (null) on /dev/sde
         nodesize 4096 leafsize 4096 sectorsize 4096 size 931.32GiB
Btrfs v3.14-dirty
./btrfs dedup enable /mnt/backupkvm/ ; ./btrfs dedup on -b4k 
/mnt/backupkvm/

[root@hranilka2 ~]# cat /sys/block/sde/stat
   157149     3096  1285992   128900  6472058 12962342 718660664 
1511294062        0  1576195 1527264468
[root@hranilka2 ~]# cat /sys/block/sde/stat
   157149     3096  1285992   128900  6526802 13268740 724690168 
1512117500        0  1587233 1528090320
write sectors: 724690168 - 718660664 = 6029504 sector
write mbyte: 6029504 * 512 / 1024 / 1024 ~ 2944 mb

[root@hranilka2 ~]# cat /sys/block/sdf/stat
   338633      165 346540680  7043771        7        4 1496 35        
0   610795  7043095
[root@hranilka2 ~]# cat /sys/block/sdf/stat
   342737      165 350743176  7127546        7        4 1496 35        
0   618652  7126860
read sectors: 350743176 - 346540680 = 4202496 sector
read mbyte: 4202496 * 512 / 1024 / 1024 ~ 2052 mb



Test 2:

fs created label (null) on /dev/sde
         nodesize 16384 leafsize 16384 sectorsize 4096 size 931.32GiB
Btrfs v3.14-dirty
./btrfs dedup enable /mnt/backupkvm/ ; ./btrfs dedup on -b4k 
/mnt/backupkvm/


[root@hranilka2 ~]# cat /sys/block/sde/stat
   157440     3313  1290392   129277  6526912 13272046 724722864 
1512117920        0  1587500 1528091116
[root@hranilka2 ~]# cat /sys/block/sde/stat
   157440     3313  1290392   129277  6964494 13836479 803994376 
1514935880        0  1730081 1530910351
write sectors: 803994376 - 724722864 = 79271512 sector
write mbyte: 79271512 * 512 / 1024 / 1024 ~ 38706 mb

[root@hranilka2 ~]# cat /sys/block/sdf/stat
   342737      165 350743176  7127546        7        4 1496 35        
0   618652  7126860
[root@hranilka2 ~]# cat /sys/block/sdf/stat
   346841      165 354945672  7266231        7        4 1496 35        
0   629824  7265539
read sectors: 354945672 - 350743176 = 4202496 sector
read mbyte: 4202496 * 512 / 1024 / 1024 ~ 2052 mb

--
Michael Serikov
-- 

             reply	other threads:[~2014-04-11 18:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-11 18:00 Michael [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-04-10  3:48 [RFC PATCH v10 00/16] Online(inband) data deduplication Liu Bo
2014-04-10  9:08 ` Konstantinos Skarlatos
2014-04-10 15:44   ` Liu Bo
2014-04-10 15:55 ` Liu Bo
2014-04-11  9:28   ` Martin Steigerwald
2014-04-11  9:51     ` Liu Bo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53482DA9.4090101@roznica.com.ua \
    --to=mclaud@roznica.com.ua \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.