From owner-freebsd-stable@FreeBSD.ORG Thu Apr 22 11:07:47 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4F1D106566B for ; Thu, 22 Apr 2010 11:07:47 +0000 (UTC) (envelope-from spawk@acm.poly.edu) Received: from acm.poly.edu (acm.poly.edu [128.238.9.200]) by mx1.freebsd.org (Postfix) with ESMTP id 778CE8FC0A for ; Thu, 22 Apr 2010 11:07:45 +0000 (UTC) Received: (qmail 72965 invoked from network); 22 Apr 2010 11:07:44 -0000 Received: from unknown (HELO ?192.168.0.2?) (spawk@96.224.221.101) by acm.poly.edu with AES256-SHA encrypted SMTP; 22 Apr 2010 11:07:44 -0000 Message-ID: <4BD02DF5.2030402@acm.poly.edu> Date: Thu, 22 Apr 2010 07:07:33 -0400 From: Boris Kochergin User-Agent: Thunderbird 2.0.0.24 (X11/20100330) MIME-Version: 1.0 To: FreeBSD-STABLE Mailing List References: <4BCFF881.9000809@minibofh.org> In-Reply-To: <4BCFF881.9000809@minibofh.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: gmirror(8) rebuild speed X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2010 11:07:47 -0000 Jordi Espasa Clofent wrote: > Hi, > > I wonder if is possible to configure the gmirror rebuild speed. > Neither I've found any related info in the net nor the man pages. > This doesn't do exactly what you want, but might address your problem, anyway: try "renice +20 [gmirror PID]", where "[gmirror PID]" is the PID of the system process handling your mirror (ps auxw | grep g_mirror). I know that back when ZFS code ran in separate processes back in RELENG_7, renicing the zpa_zio* and spa_scrub_thread processes made the system a lot more responsive during a scrub. -Boris