From owner-freebsd-fs@freebsd.org Tue Apr 26 15:01:19 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7DE3B1CAAA for ; Tue, 26 Apr 2016 15:01:19 +0000 (UTC) (envelope-from gldisater@gmail.com) Received: from mail-io0-x234.google.com (mail-io0-x234.google.com [IPv6:2607:f8b0:4001:c06::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B1C49130B for ; Tue, 26 Apr 2016 15:01:19 +0000 (UTC) (envelope-from gldisater@gmail.com) Received: by mail-io0-x234.google.com with SMTP id 190so12627096iow.1 for ; Tue, 26 Apr 2016 08:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=CTZQKFAF60nIO1w+KxqLDplAmfMQ1x7NuF+AyTb8bDE=; b=L4wT40w1IHb0fEfJtsOXCIhIjPIuoIynKDyBc6dXVN50hyGs06coAsQy08UslyO7uv TyXoVO9cLITU5mYqf8cJASIuUVgey/dlTavvIA+zMLytuEPUfxFfKpVaGJ6YLWs8eC8H IGfZOPX3EYAYPI1+QQvE978nLqwSp9QmGh1HDDJUWg6lJuZR+3Yn3KhZYAlTo8mvDDcy lm6M6frP4/+HdsR/E2kRPB8cZq77DddvG/u4ncgdidoggca6/xU9s1rmQ9vruCNIZueL rj+C29/QoBcbnTKZSHx2FNIWQx+W8+BzyTnSbSZ9re+IaC1c3B/veBa1fbuiRBbGMNTj GXaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=CTZQKFAF60nIO1w+KxqLDplAmfMQ1x7NuF+AyTb8bDE=; b=Bb0GHWW3gdepPNCZoXg8cev7AcjZFvrWLAowV40Go4oXkDLUxnMwri+76iEEXIcb7f 3SDm/b16KZ8BfCrRITztyR4dKL/s6FyabQm7VpQlc1jYoMR91kleLahLkq/Gw7FCodyl +5yjIr+IcZ5I3/Y/jAG5M6OKZ0ZgBdJURwe/9VINYJ/soEMjXNcdxqllgXFp5SX/lUXl QG9NFcGLyrRDPeF4Q2rckrQizKOXkx1wAm9QjzY/3ixxjGGV9T46DtRyAkcsGzo1Grnz WEiCXm/aCZ38fdfQa0rgfqvSZZ43zQm6lIvtVC2KP0URtshMHodwbRFZiqjdwS2kZiB7 5+5w== X-Gm-Message-State: AOPr4FUmBQH3TxbsZ6ph8kcQZT1lnOW5Gn86yFgJNO3kLSIUm984rmU2tXRTKFx0OiLg7Q== X-Received: by 10.107.151.8 with SMTP id z8mr3925719iod.191.1461682878953; Tue, 26 Apr 2016 08:01:18 -0700 (PDT) Received: from [192.168.1.128] (dhcp-108-168-15-83.cable.user.start.ca. [108.168.15.83]) by smtp.gmail.com with ESMTPSA id y198sm1812837iof.10.2016.04.26.08.01.18 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Apr 2016 08:01:18 -0700 (PDT) Subject: Re: How to speed up slow zpool scrub? To: freebsd-fs@freebsd.org References: <571F62AD.6080005@quip.cz> <571F687D.8040103@internetx.com> <571F6EA4.90800@quip.cz> From: Jeremy Faulkner Message-ID: <571F82B5.3010807@gmail.com> Date: Tue, 26 Apr 2016 11:01:09 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <571F6EA4.90800@quip.cz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2016 15:01:20 -0000 zfs get all tank0 On 2016-04-26 9:35 AM, Miroslav Lachman wrote: > InterNetX - Juergen Gotteswinter wrote on 04/26/2016 15:09: >> to speed up the scrub itself you can try >> >> sysctl -w vfs.zfs.scrub_delay = 4 (default, 0 means higher prio) > > I will try it in the idle times > >> but be careful as this can cause a serious performance impact, the value >> can be changed on the fly >> >> your pool is raidz, mirror ? dedup is hopefully disabled? > > I forgot to mention it. Disks are partitioned to four partitions: > > # gpart show -l ada0 > => 34 7814037101 ada0 GPT (3.6T) > 34 6 - free - (3.0K) > 40 1024 1 boot0 (512K) > 1064 10485760 2 swap0 (5.0G) > 10486824 31457280 3 disk0sys (15G) > 41944104 7769948160 4 disk0tank0 (3.6T) > 7811892264 2144871 - free - (1.0G) > > diskXsys partitions are used for base system pool which is 4-way mirror > > diskXtank0 partitions are used for data storage as RAIDZ > > # zpool list > NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT > sys 14.9G 11.0G 3.92G - 79% 73% 1.00x ONLINE - > tank0 14.4T 10.8T 3.56T - 19% 75% 1.00x ONLINE - > > > # zpool status -v > pool: sys > state: ONLINE > scan: scrub repaired 0 in 1h2m with 0 errors on Sun Apr 24 04:03:54 2016 > config: > > NAME STATE READ WRITE CKSUM > sys ONLINE 0 0 0 > mirror-0 ONLINE 0 0 0 > gpt/disk0sys ONLINE 0 0 0 > gpt/disk1sys ONLINE 0 0 0 > gpt/disk2sys ONLINE 0 0 0 > gpt/disk3sys ONLINE 0 0 0 > > errors: No known data errors > > pool: tank0 > state: ONLINE > scan: scrub in progress since Sun Apr 24 03:01:35 2016 > 7.63T scanned out of 10.6T at 36.7M/s, 23h32m to go > 0 repaired, 71.98% done > config: > > NAME STATE READ WRITE CKSUM > tank0 ONLINE 0 0 0 > raidz1-0 ONLINE 0 0 0 > gpt/disk0tank0 ONLINE 0 0 0 > gpt/disk1tank0 ONLINE 0 0 0 > gpt/disk2tank0 ONLINE 0 0 0 > gpt/disk3tank0 ONLINE 0 0 0 > > errors: No known data errors > > > # zdb | grep ashift > ashift: 12 > ashift: 12 > > > Thank you for your informations. > >