Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 1999 08:09:50 -0500
From:      Zach Heilig <zach@uffdaonline.net>
To:        Vasudha Ramnath <vasu@krdl.org.sg>
Cc:        questions@freebsd.org
Subject:   Re: df
Message-ID:  <19990517080950.A70413@k6n1.znh.org>
In-Reply-To: <Pine.GSO.4.02.9905171730300.26341-100000@boderek>; from Vasudha Ramnath on Mon, May 17, 1999 at 05:36:29PM %2B0800
References:  <Pine.GSO.4.02.9905171730300.26341-100000@boderek>

next in thread | previous in thread | raw e-mail | index | archive | help
[ from -newbies ]

On Mon, May 17, 1999 at 05:36:29PM +0800, Vasudha Ramnath wrote:
> I'm running FreeBSD 3.1. 
> 'df' shows that /usr is 101 % full (available blocks is a negative number
> !)

> If I do an fsck, there are free blocks available on /usr.
> Any idea what could be the problem ?

No problem at all, the operating system reserves a specified amount
of space per filesystem.  By default, it'll be 8%, but it can be
changed fairly easily (rumor has it that best performance can be had by
reserving 15%).  Performance will degrade pretty quickly as you fill the
disk up more than 10% (a completely full disk is 3x slower than at 10%
free).

$ df /
Filesystem   1K-blocks     Used    Avail Capacity  Mounted on
/dev/wd0s2a      63503    19669    38754    34%    /

Note these numbers:
19669 + 38754 = 58423
63503 - 58423 =  5080
 5080 / 63503 = ~.08 (really: ~.07999622065099286647)
19669 / 58423 = ~.34 (really: ~.33666535439809664002)

And notice the "minimum percentage of free space" below (8%):

# tunefs -p /dev/rwd0s2a
tunefs: soft updates:  (-n)                                enabled
tunefs: maximum contiguous block count: (-a)               15
tunefs: rotational delay between contiguous blocks: (-d)   0 ms
tunefs: maximum blocks per file in a cylinder group: (-e)  2048
tunefs: minimum percentage of free space: (-m)             8%
tunefs: optimization preference: (-o)                      time

[ do not use tunefs to do anything to a mounted filesystem, using
  '-p' is pretty safe, anything else is a bad idea ]

-- 
Zach Heilig <zach@uffdaonline.net>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




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