From owner-freebsd-stable Tue Oct 9 14:36: 4 2001 Delivered-To: freebsd-stable@freebsd.org Received: from whiskey.klatsch.org (whiskey.klatsch.org [209.6.82.6]) by hub.freebsd.org (Postfix) with SMTP id 6A7F537B408 for ; Tue, 9 Oct 2001 14:35:58 -0700 (PDT) Received: (qmail 1782 invoked by uid 1001); 9 Oct 2001 21:36:11 -0000 Date: Tue, 9 Oct 2001 17:36:11 -0400 From: Ben Eisenbraun To: Juha Saarinen Cc: Vladimir Pianykh , Thomas Gravgaard , "'freebsd-stable@freebsd.org'" Subject: Re: df trouble Message-ID: <20011009173611.K85156@klatsch.org> Mail-Followup-To: Ben Eisenbraun , Juha Saarinen , Vladimir Pianykh , Thomas Gravgaard , "'freebsd-stable@freebsd.org'" References: <20011009173206.H2816-100000@vl7.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from juha@saarinen.org on Wed, Oct 10, 2001 at 09:49:50AM +1300 X-JZP-Disclaimer: I'm the only one foolish enough to claim these opinions. Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Oct 10, 2001 at 09:49:50AM +1300, Juha Saarinen wrote: > On Tue, 9 Oct 2001, Vladimir Pianykh wrote: > > > Disk usage >100% is not wrong, it mean 5% of disk space reserved for root. > > Users can use only 100% of disk space, but root ~105%. > > That doesn't quite make sense... ;-) While the wording above is a little odd, the explanation behind it is pretty simple. UFS/FFS has a 'minfree' setting that reserves a portion of the filesystem which only root can write to. From the newfs(8) manpage: -m free space % The percentage of space reserved from normal users; the minimum free space threshold. The default value used is defined by MINFREE from , currently 8%. See tunefs(8) for more details on how to set this option. And the tunefs(8) note: -m minfree Specify the percentage of space held back from normal users; the minimum free space threshold. The default value used is 8%. This value can be set to zero, however up to a factor of three in throughput will be lost over the performance obtained at a 10% threshold. Settings of 5% and less force space optimization to always be used which will greatly increase the overhead for file writes. Note that if the value is raised above the current usage level, users will be unable to allocate files until enough files have been deleted to get under the higher threshold. HTH. --ben To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message