From: Ian Campbell Subject: Re: [OSSTEST PATCH 1/3] ts-xen-build-prep: Run the backgrounded resize2fs with ionice Date: Wed, 4 Jun 2014 12:32:35 +0100 Message-ID: <1401881555.21220.9.camel@kazak.uk.xensource.com> References: <1401881425-29990-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Ws9Qt-0003jy-WD for xen-devel@lists.xenproject.org; Wed, 04 Jun 2014 11:32:40 +0000 In-Reply-To: <1401881425-29990-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org All three of these patches look good to me. Acked-by: Ian Campbell On Wed, 2014-06-04 at 12:30 +0100, Ian Jackson wrote: > We wrap this in > ionice -cBest-Effort -n7 > > This is an attempt to stop resize2fs from starving builds of IO > bandwidth. We have been seeing that some IO-intensive build steps > (notably, configure) can take unreasonable amounts of time and we > suspect resize2fs as the culprit. > > Signed-off-by: Ian Jackson > --- > ts-xen-build-prep | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/ts-xen-build-prep b/ts-xen-build-prep > index 0e68cd3..05a7857 100755 > --- a/ts-xen-build-prep > +++ b/ts-xen-build-prep > @@ -159,7 +159,10 @@ sub lvextend1 ($$$) { > if (!$background) { > target_cmd_root($ho, $cmd, $timeout); > } else { > - target_cmd_root($ho, "$cmd >>resizefs.log 2>&1 + target_cmd_root($ho, > + "ionice -cBest-Effort -n7 ". > + "$cmd >>resizefs.log 2>&1 + 30); > } > } >