Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2005 18:07:14 -0500 (EST)
From:      user <user@dhp.com>
To:        David Kirchner <dpk@dpk.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how do I tell FreeBSD to sync, for real ?
Message-ID:  <Pine.LNX.4.21.0511081759040.8180-100000@shell.dhp.com>
In-Reply-To: <35c231bf0511081458w24119f79g3e32786cb997d4cc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 8 Nov 2005, David Kirchner wrote:

> On 11/8/05, user <user@dhp.com> wrote:
> > No, I'm not asking "why do I need to sync" ... I understand why I need to
> > wait, or issue a sync command.  No problems there.
> >
> > What I am asking is, why is one issuance of `sync` not enough ?  Why is
> > two not enough ?  Why do I need to issue 6 or 8 of them ?
> 
> Softupdates is why. If you disable softupdates (tunefs -n disable
> /dev/whatever) you shouldn't have to worry about the sync delay any
> more.
> 
> I do wish there was a way to force it to sync to disk on demand, though.


Yes, that is what I am looking for.  Well, a way besides:


sync ; sync ; sync ; sync ; sync ; sync ; echo "boy am I a jackass"

or:

mount -ur /mnt/fs ; mount -uw /mnt/fs ; echo "what a loser I am"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0511081759040.8180-100000>