From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE9F8CA9EC5 for ; Wed, 30 Oct 2019 12:54:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 94EB32080F for ; Wed, 30 Oct 2019 12:54:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726207AbfJ3Myk (ORCPT ); Wed, 30 Oct 2019 08:54:40 -0400 Received: from server.roznica.com.ua ([80.90.224.56]:37650 "EHLO server.roznica.com.ua" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbfJ3Myk (ORCPT ); Wed, 30 Oct 2019 08:54:40 -0400 Received: from work.roznica.com.ua (h244.onetel95.onetelecom.od.ua [91.196.95.244]) by server.roznica.com.ua (Postfix) with ESMTP id D8E6272451F; Wed, 30 Oct 2019 14:54:38 +0200 (EET) Subject: Re: Read-only snapshot send speed very slow after modify original data. Need help To: fdmanana@gmail.com Cc: linux-btrfs References: From: Michael Message-ID: Date: Wed, 30 Oct 2019 14:54:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org 30.10.2019 14:38, Filipe Manana пишет: > On Wed, Oct 30, 2019 at 12:17 PM Michael wrote: >> Hi linux-btrfs, >> >> Step to reproduce >> >> 1) mkfs.btrfs -draid6 -mraid6 /dev/sd[abcdefgh] >> >> 2) mount >> -onoatime,nodiratime,thread_pool=24,max_inline=0,ssd_spread,compress-force=zstd >> /dev/sda /mnt/test/ > Have you tried without raid6, like single disk device case for > example? And without compression? > Did such dramatic difference happened as well? > > Thanks. without compression step 8: ~800MiB/s - fast raid1, raid10, raid5, raid6, single drive step 8 with compression: ~4MiB/s > >> 3) btrfs subvol create /mnt/test/subvol/ >> >> 4) dd if=/dev/zero of=/mnt/test/subvol/test.dat bs=1M count=65536 >> >> 5) btrfs subvol snapshot -r /mnt/test/subvol /mnt/test/subvol.ro >> >> 6) btrfs send /mnt/test/subvol.ro | pv >/dev/null >> >> 64,1GiB 0:01:18 [ 833MiB/s] - fast >> >> 7) for i in {1..16384}; do echo $i; printf '\x01\x02\x03' | dd >> of=/mnt/test/subvol/test.dat bs=1 seek=$(($i * 1024 * 1024)) count=3 >> conv=notrunc; done >> >> 8) btrfs send /mnt/test/subvol.ro | pv >/dev/null >> >> I stop it at 0:01:18 >> >> 464MiB 0:01:18 [4,67MiB/s] - very very slow >> >> >> uname -a >> Linux storage.domain.com 5.3.7-200.fc30.x86_64 #1 SMP Fri Oct 18 >> 20:13:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux >> > -- С уважением, Михаил 067-786-11-75