From owner-freebsd-fs@freebsd.org Wed Mar 24 12:31:04 2021 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F2C515B46D5 for ; Wed, 24 Mar 2021 12:31:03 +0000 (UTC) (envelope-from martin@lispworks.com) Received: from mail.lispworks.com (mail.lispworks.com [46.17.166.21]) by mx1.freebsd.org (Postfix) with ESMTP id 4F56zC03zXz4RKt for ; Wed, 24 Mar 2021 12:31:02 +0000 (UTC) (envelope-from martin@lispworks.com) Received: from higson.cam.lispworks.com (higson.cam.lispworks.com [192.168.1.7]) by lwfs1-cam.cam.lispworks.com (8.15.2/8.15.2) with ESMTP id 12OCUqMx044651; Wed, 24 Mar 2021 12:30:52 GMT (envelope-from martin@lispworks.com) Received: from higson.cam.lispworks.com (localhost.localdomain [127.0.0.1]) by higson.cam.lispworks.com (8.14.4) id 12OCUq4n030004; Wed, 24 Mar 2021 12:30:52 GMT Received: (from martin@localhost) by higson.cam.lispworks.com (8.14.4/8.14.4/Submit) id 12OCUqur030001; Wed, 24 Mar 2021 12:30:52 GMT Date: Wed, 24 Mar 2021 12:30:52 GMT Message-Id: <202103241230.12OCUqur030001@higson.cam.lispworks.com> From: Martin Simmons To: Mathieu Chouquet-Stringer CC: freebsd-fs@freebsd.org In-reply-to: (message from Mathieu Chouquet-Stringer on Tue, 23 Mar 2021 10:38:13 +0100) Subject: Re: Scrub incredibly slow with 13.0-RC3 (as well as RC1 & 2) References: <202103221515.12MFFHRK015188@higson.cam.lispworks.com> X-Rspamd-Queue-Id: 4F56zC03zXz4RKt X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of martin@lispworks.com has no SPF policy when checking 46.17.166.21) smtp.mailfrom=martin@lispworks.com X-Spamd-Result: default: False [0.15 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[46.17.166.21:from]; FREEFALL_USER(0.00)[martin]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[lispworks.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; SPAMHAUS_ZRD(0.00)[46.17.166.21:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.85)[-0.850]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[no SPF record]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:51055, ipnet:46.17.166.0/24, country:GB]; MAILMAN_DEST(0.00)[freebsd-fs] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2021 12:31:04 -0000 >>>>> On Tue, 23 Mar 2021 10:38:13 +0100, Mathieu Chouquet-Stringer said: > > So it's better but still not great, it's been running for 9.5 hours now: > > scan: scrub in progress since Tue Mar 23 01:03:09 2021 > 3.90T scanned at 121M/s, 3.90T issued at 121M/s, 24.5T total > 0B repaired, 15.93% done, 2 days 01:24:58 to go > > For reference I had the following after 12 hours with the new scrub algorithm: > > scan: scrub in progress since Sun Mar 21 23:47:40 2021 > 2.82T scanned at 77.8M/s, 2.24T issued at 62.0M/s, 24.5T total > 0B repaired, 9.17% done, 4 days 08:23:32 to go FWIW, I think the new scrub algorithm was added in 2018. You could try to profile it: https://wiki.freebsd.org/DTrace/Tutorial#Lesson_9._Profile_On-CPU_Kernel_Stacks __Martin