xfs
[Top] [All Lists]

Re: [patch] remove unnecessary periodic superblock logging.

To: Timothy Shimmin <tes@xxxxxxx>
Subject: Re: [patch] remove unnecessary periodic superblock logging.
From: David Chinner <dgc@xxxxxxx>
Date: Thu, 10 Apr 2008 15:49:13 +1000
Cc: David Chinner <dgc@xxxxxxx>, Barry Naujok <bnaujok@xxxxxxx>, xfs-dev <xfs-dev@xxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx>
In-reply-to: <47FDA5BA.3080401@sgi.com>
References: <20080410042001.GF108924158@sgi.com> <op.t9do1hkj3jf8g2@pc-bnaujok.melbourne.sgi.com> <47FDA5BA.3080401@sgi.com>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Thu, Apr 10, 2008 at 03:29:30PM +1000, Timothy Shimmin wrote:
> Barry Naujok wrote:
> >On Thu, 10 Apr 2008 14:20:01 +1000, David Chinner <dgc@xxxxxxx> wrote:
> >
> >>Remove periodic logging of in-core superblock counters.
> >>
> >>xfssyncd triggers the logging of superblock counters every
> >>30s if the filesystem is made with lazy-count=1. This will
> >>prevent disks from idling and spinning down as there will
> >>be a log write every 30s. With the way counter recovery
> >>works for lazy-count=1, this code is unnecessary and provides
> >>no real benefit, so just remove it.
> >
> >I'm happy with this (xfs_initialize_perag_data() does the
> >global counter recovery during mount).
> >
> 
> So we only do the sb count logging at unmount type times...
> xfs_attr_quiesce() and xfs_unmountfs(),
> when no log recovery will happen.
> Hmmm...so why do we have to log it out at these times?
> I'm forgetting how this works.

xfs_log_sbcount() sync's the incore counters to the superblock
buffer transactionally. Not strictly necessary, but for consistency
with other superblock updates.....

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group


<Prev in Thread] Current Thread [Next in Thread>