Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2001 17:36:11 -0400
From:      Ben Eisenbraun <bene@klatsch.org>
To:        Juha Saarinen <juha@saarinen.org>
Cc:        Vladimir Pianykh <fox@vl7.net>, Thomas Gravgaard <fehaar@infopaq.dk>, "'freebsd-stable@freebsd.org'" <freebsd-stable@FreeBSD.ORG>
Subject:   Re: df trouble
Message-ID:  <20011009173611.K85156@klatsch.org>
In-Reply-To: <Pine.LNX.4.33.0110100949270.10609-100000@vimfuego.saarinen.org>; from juha@saarinen.org on Wed, Oct 10, 2001 at 09:49:50AM %2B1300
References:  <20011009173206.H2816-100000@vl7.net> <Pine.LNX.4.33.0110100949270.10609-100000@vimfuego.saarinen.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ufs/ffs/fs.h>, 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011009173611.K85156>