Received: with ECARTIS (v1.0.0; list xfs); Mon, 18 Feb 2008 02:21:54 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,MIME_8BIT_HEADER autolearn=no version=3.3.0-r574664 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with SMTP id m1IALmGX016298 for ; Mon, 18 Feb 2008 02:21:50 -0800 Received: from snort.melbourne.sgi.com (snort.melbourne.sgi.com [134.14.54.149]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id VAA22902; Mon, 18 Feb 2008 21:21:57 +1100 Received: from snort.melbourne.sgi.com (localhost [127.0.0.1]) by snort.melbourne.sgi.com (SGI-8.12.5/8.12.5) with ESMTP id m1IALsLF67628239; Mon, 18 Feb 2008 21:21:55 +1100 (AEDT) Received: (from dgc@localhost) by snort.melbourne.sgi.com (SGI-8.12.5/8.12.5/Submit) id m1IALoA267665661; Mon, 18 Feb 2008 21:21:50 +1100 (AEDT) X-Authentication-Warning: snort.melbourne.sgi.com: dgc set sender to dgc@sgi.com using -f Date: Mon, 18 Feb 2008 21:21:50 +1100 From: David Chinner To: =?iso-8859-1?B?VPZy9ms=?= Edwin Cc: David Chinner , Oliver Pinter , xfs@oss.sgi.com, Linux Kernel , Arjan van de Ven , Christoph Lameter , Christoph Hellwig Subject: Re: xfsaild causing 30+ wakeups/s on an idle system since 2.6.25-rcX Message-ID: <20080218102150.GL155407@sgi.com> References: <47B863A9.5070206@gmail.com> <6101e8c40802170851w73db8130t9bcfdc5cf053f0dc@mail.gmail.com> <20080217224736.GX155407@sgi.com> <47B952D3.2030900@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <47B952D3.2030900@gmail.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: ClamAV 0.91.2/5867/Sun Feb 17 23:12:11 2008 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 14491 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: dgc@sgi.com Precedence: bulk X-list: xfs On Mon, Feb 18, 2008 at 11:41:39AM +0200, Török Edwin wrote: > David Chinner wrote: > > On Sun, Feb 17, 2008 at 05:51:08PM +0100, Oliver Pinter wrote: > > > >> On 2/17/08, Török Edwin wrote: > >> > >>> Hi, > >>> > >>> xfsaild is causing many wakeups, a quick investigation shows > >>> xfsaild_push is always > >>> returning 30 msecs timeout value. > >>> > > > > That's a bug > > Ok. Your patches fixes the 30+ wakeups :) Good. I'll push it out for review then. > > , and has nothing to do with power consumption. ;) > > > > I suggest using a sysctl value (such as > /proc/sys/vm/dirty_writeback_centisecs), instead of a hardcoded default > 1000. No, too magic. I dislike adding knobs to workaround issues that really should be fixed by having sane default behaviour. Further down the track as we correct know issues with the AIL push code we'll be able to increase this idle timeout or even make it purely wakeup driven once we get back to an idle state. However, right now it still needs that once a second wakeup to work around a nasty corner case that can hang the filesystem.... Cheers, Dave. -- Dave Chinner Principal Engineer SGI Australian Software Group