xfs
[Top] [All Lists]

Re: XFS write cache flush policy

To: xfs@xxxxxxxxxxx
Subject: Re: XFS write cache flush policy
From: Stan Hoeppner <stan@xxxxxxxxxxxxxxxxx>
Date: Wed, 19 Dec 2012 23:48:48 -0600
In-reply-to: <20121220014014.GA15121@xxxxxxx>
References: <20121215221622.GF9806@dastard> <20121216103025.GA14880@xxxxxxx> <20121216111046.GA16756@xxxxxxx> <20121216204847.GN9806@dastard> <20121216232251.GA20370@xxxxxxx> <20121217232441.GA5031@dastard> <20121218003438.GB30736@xxxxxxx> <20121218202914.GC15182@dastard> <20121219010445.GA24313@xxxxxxx> <20121219224328.GN15182@dastard> <20121220014014.GA15121@xxxxxxx>
Reply-to: stan@xxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0
On 12/19/2012 7:40 PM, Matthias Schniedermeyer wrote:

> I had thought about issuing a 
> 'sync', because the previous incarnation of the bug flashed before my 
> inner eye. But by the time i had shutdown X and got to the 
> command-prompt i had already forgotten to type 'sync' and went straight 
> for 'reboot'

When did you last read the man pages for reboot and shutdown?  reboot
issues a sync automatically unless you specify

-n     Don't sync before reboot or halt. Note that the kernel and
storage drivers may still sync.

(note the disclaimer)

and even though the shutdown man page doesn't state so explicitly, I'm
pretty darn sure that shutdown issues a sync before halting or rebooting.

Thus, you shouldn't have to manually call sync before issuing your
favorite system restart command.  If sync isn't being called, maybe
there's an issue with the versions of these commands shipped with your
distro, or other type of problem.

-- 
Stan

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