From owner-freebsd-questions Mon May 17 6:11:54 1999 Delivered-To: freebsd-questions@freebsd.org Received: from k6n1.znh.org (unknown [207.109.235.27]) by hub.freebsd.org (Postfix) with ESMTP id A3D931555C; Mon, 17 May 1999 06:11:10 -0700 (PDT) (envelope-from zach@uffdaonline.net) Received: (from zach@localhost) by k6n1.znh.org (8.9.3/8.9.1) id NAA70578; Mon, 17 May 1999 13:09:51 GMT (envelope-from zach) Date: Mon, 17 May 1999 08:09:50 -0500 From: Zach Heilig To: Vasudha Ramnath Cc: questions@freebsd.org Subject: Re: df Message-ID: <19990517080950.A70413@k6n1.znh.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Vasudha Ramnath on Mon, May 17, 1999 at 05:36:29PM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message