From owner-freebsd-hackers Sat Oct 17 00:24:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA07601 for freebsd-hackers-outgoing; Sat, 17 Oct 1998 00:24:42 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (castles305.castles.com [208.214.167.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA07596 for ; Sat, 17 Oct 1998 00:24:38 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id AAA01257; Sat, 17 Oct 1998 00:29:07 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810170729.AAA01257@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Warner Losh cc: hackers@FreeBSD.ORG Subject: Re: softupdates and sync In-reply-to: Your message of "Sat, 17 Oct 1998 01:17:12 MDT." <199810170717.BAA00645@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 17 Oct 1998 00:29:06 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Question, > If I remove a huge directory with on a volume that has soft > updates enabled, then my df avail stat doesn't change (although the > rm happens very very fast). So, I type sync, and there isn't much > disk activity and the df stat is still the same. So I wait a while, > no disk activity. After 5 minutes I unmount and remount the volume. > The unmout causes a huge amount of traffic to the disk. On remount > the missing space reappears. > > This seems odd to me, but is it normal? Is it normal to have > lots of unwritten blocks after a sync command has been issued? Seems, > on its surface, to be a bug to me. I can understand the df stats not updating > until the space is actually gone, but to have sync not write out all > the softupdate deferred writes seems wrong somehow. It's "normal", but it shouldn't take minutes; the buckets are meant to cycle around every 30 seconds or so. You haven't tweaked the update timer by any chance, have you? -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message