From owner-freebsd-questions@FreeBSD.ORG Tue Nov 8 23:07:16 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA6BF16A420 for ; Tue, 8 Nov 2005 23:07:16 +0000 (GMT) (envelope-from user@dhp.com) Received: from shell.dhp.com (shell.dhp.com [199.245.105.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id C727243D5C for ; Tue, 8 Nov 2005 23:07:15 +0000 (GMT) (envelope-from user@dhp.com) Received: by shell.dhp.com (Postfix, from userid 896) id D50F43132F; Tue, 8 Nov 2005 18:07:14 -0500 (EST) Date: Tue, 8 Nov 2005 18:07:14 -0500 (EST) From: user To: David Kirchner In-Reply-To: <35c231bf0511081458w24119f79g3e32786cb997d4cc@mail.gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: how do I tell FreeBSD to sync, for real ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 23:07:16 -0000 On Tue, 8 Nov 2005, David Kirchner wrote: > On 11/8/05, user 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"