Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Sep 1997 10:35:23 +0200
From:      Nadav Eiron <nadav@barcode.co.il>
To:        Greg Lehey <grog@lemis.com>
Cc:        Donn Miller <dmm125@bellatlantic.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: "df" estimates are off
Message-ID:  <342F684B.7F67@barcode.co.il>
References:  <Pine.NEB.3.96.970929011000.28104B-100000@myname.my.domain> <19970929153303.59702@lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Greg Lehey wrote:
> 
> On Mon, Sep 29, 1997 at 01:13:06AM +0000, Donn Miller wrote:
> > Hello,
> >
> > Recently, I've noticed that the df command has been showing negative disk
> > space, and was wondering how far negative it could go until the /usr
> > partition was full:
> >
> > Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> > /dev/wd0a       48431    39551     5006    89%    /
> > /dev/wd0s1     423072   392984    30088    93%    /dos
> > /dev/wd0s4e    548911   526867   -21868   104%    /usr
> > procfs              4        4        0   100%    /proc
> >
> > But then I noticed that, for /usr, it shows -21868 avail, but when doing
> > the math, 22044 is actually available.  For /, shows 5006, but act. free
> > space is 8880.
> 
> ufs allows users access to only 90% of the total space on disk.  The
> rest is reserved for root.  To make it more confusing, the 90% mark
> can be changed with tunefs(8), so the designers chose to refer to
> whatever this mark is as 100%.  Under normal circumstances, this means
> that root can pump the file system up to 111% of its nominal
> capacity.  This is *bad*, especially on /usr, since no normal user can
> write to the disk any more.

And then there is the performance issue. This margin is designed to
allow the filesystem to wisely place files on disk (to avoid DOS-style
fragentation). By filling it up you also loose performance.

> 
> > The disk usage for /dos is right on target.
> 
> This suggests that /dos is not ufs.
> 
> > Is it because df is allowing for a 'safety margin' of free space, or do I
> > need to reboot or rebuild some database or something?
> 
> You need to remove some data, or you'll run into trouble.
> 
> Greg
Nadav



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?342F684B.7F67>