From owner-freebsd-questions@FreeBSD.ORG Tue Nov 8 22:03:09 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 1777B16A420 for ; Tue, 8 Nov 2005 22:03:09 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8E8143D45 for ; Tue, 8 Nov 2005 22:03:08 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 20515 invoked from network); 8 Nov 2005 22:03:08 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail28.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 8 Nov 2005 22:03:08 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 76F9D28441; Tue, 8 Nov 2005 17:03:06 -0500 (EST) Sender: lowell@be-well.ilk.org To: user To: freebsd-questions@freebsd.org References: From: Lowell Gilbert Date: 08 Nov 2005 17:03:06 -0500 In-Reply-To: Message-ID: <4464r2dch1.fsf@be-well.ilk.org> Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: 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 Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 22:03:09 -0000 user writes: > Sometimes you delete a large batch of files, or you do some other serious > FS operations and the output of `df` does not tell you immediately of the > new disk space, etc. > > If you run something like: sync > > Or even: sync ; sync > > it still doesn't show up. You either have to wait for a while, or you > have to get silly with something like: > > sync ; sync ; sync ; sync ; sync ; sync ; sync > > (or unmount and remount the FS) > > ----- > > So my question is, well first off, why does this happen this way ? But > mostly what I want to know is, is there a more graceful way to tell > FreeBSD "sync for real this time, not just for joke only ?" > > Basically, is there a nicer way to get what I want than: > > sync ; sync ; sync ; sync ; sync ; sync ; sync "sleep 30"? http://www.usenix.org/publications/library/proceedings/usenix99/full_papers/mckusick/mckusick.pdf