From owner-freebsd-fs@freebsd.org Wed Jul 22 00:32:20 2015 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 6104C9A7C95 for ; Wed, 22 Jul 2015 00:32:20 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from mail.in-addr.com (mail.in-addr.com [IPv6:2a01:4f8:191:61e8::2525:2525]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 296131895 for ; Wed, 22 Jul 2015 00:32:20 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by mail.in-addr.com with local (Exim 4.85 (FreeBSD)) (envelope-from ) id 1ZHhxK-000HPQ-4d; Wed, 22 Jul 2015 01:32:18 +0100 Date: Wed, 22 Jul 2015 01:32:18 +0100 From: Gary Palmer To: javocado Cc: FreeBSD Filesystems Subject: Re: Prioritize resilvering priority Message-ID: <20150722003218.GD41419@in-addr.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 00:32:20 -0000 On Tue, Jul 21, 2015 at 04:06:05PM -0700, javocado wrote: > Hi, > > How does one go about prioritizing the resilvering process so it does not > overwhelm normal disk I/O on a FreeBSD (8.3amd) system? Further, can this > be altered in real time, or do the settings have to be in place prior to > the resilvering even starting? You don't state, but is this on ZFS? I assume they're on 8.3 also, but look at settings like vfs.zfs.resilver_min_time_ms and vfs.zfs.resilver_delay in sysctl. Searching for resilver_min_time_ms and resilver_delay may give some hints, e.g. http://broken.net/uncategorized/zfs-performance-tuning-for-scrubs-and-resilvers/ does the opposite to what you want, but it should give hints. Also https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/zfs-advanced.html I think they're dynamic. I tuned the scrub settings and they took effect immediately. Regards, Gary