Received: with ECARTIS (v1.0.0; list xfs); Mon, 07 Apr 2008 14:58:39 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham 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 m37LwSvl002118 for ; Mon, 7 Apr 2008 14:58:31 -0700 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 HAA17982; Tue, 8 Apr 2008 07:58:58 +1000 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 m37LwvsT125536651; Tue, 8 Apr 2008 07:58:58 +1000 (AEST) Received: (from dgc@localhost) by snort.melbourne.sgi.com (SGI-8.12.5/8.12.5/Submit) id m37LwtH0125357219; Tue, 8 Apr 2008 07:58:55 +1000 (AEST) X-Authentication-Warning: snort.melbourne.sgi.com: dgc set sender to dgc@sgi.com using -f Date: Tue, 8 Apr 2008 07:58:55 +1000 From: David Chinner To: Thor Kristoffersen Cc: Timothy Shimmin , xfs@oss.sgi.com Subject: Re: Does XFS prevent disk spindown? Message-ID: <20080407215855.GE108924158@sgi.com> References: <20080401003005.GJ103491721@sgi.com> <47F1CF6D.2040103@sandeen.net> <47F9735E.8020900@sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: ClamAV 0.91.2/6021/Wed Feb 27 15:55:48 2008 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 15240 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, Apr 07, 2008 at 10:33:19PM +0200, Thor Kristoffersen wrote: > Timothy Shimmin writes: > > Thor Kristoffersen wrote: > >>> Use blktrace, or echo 1 > /proc/sys/vm/block_dump to see what block and > >>> who's writing it... it's probably the superblock? what kernel? > >> > >> This is kernel version 2.6.24. More specifically it's a Debian kernel from > >> package linux-image-2.6.24-1-686 (2.6.24-4). > >> > >> I put the system in runlevel 1 and executed the test as you suggested. On > >> /dev/sda3 I have mounted (with noatime) an XFS filesystem that contains > >> data that is not supposed to be accessed by any process. In the output > >> below I have filtered out all accesses to other partitions. (BTW, this is > >> not actually the disk that I wanted to spin down, but I think the log > >> proves my point.) > >> > >> > > I'm wondering if that is writing to the xfs ondisk log/journal in those cases. > > What does 'xfs_logprint -t' show in these "idle" states > > after these writes? > > xfs_logprint produces output like the one shown below, so it does indeed > look like it's writing to the journal. But why should it need to keep > writing to the journal when there have been no updates to any files on that > partition recently? Are you using lazy-count=1? (i.e. output of 'xfs_info ', please). Cheers, Dave. -- Dave Chinner Principal Engineer SGI Australian Software Group