From owner-freebsd-stable@FreeBSD.ORG Tue May 8 16:41:03 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2748616A402 for ; Tue, 8 May 2007 16:41:03 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 8AFFC13C468 for ; Tue, 8 May 2007 16:41:02 +0000 (UTC) (envelope-from illoai@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so125561ugh for ; Tue, 08 May 2007 09:40:58 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TGeqGg7gf6hKzY9gPVql1edJ9zNMkoc6dtLYzarDS0DCo6hsf3SZILNwp1DE3CvlgC5K4ldk8EaABvm5hn3CaMthTDcPmnjTYvGhPrvshPEpsP2giIHAxzc/lNqmPUo8ej0rzjQ+tBRe8J+F8HUToD4XMhsX1bkILNENsWqU/9k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=up2TwQbdDFt1UNCMm23eB/l1VxpPNnt2FpqUUCYboHjTW956WefPTvjImHVq4R3OJITfl9gzD3HaP+iNoE+0oCPD98iSmyrkPecx7Kj85W5/g9gSFDEO5Z3baKTiMZVBq7wRe/xARssIB6Iqc03wwpXh4TVNLh8O2bP9lCm1IgM= Received: by 10.82.100.1 with SMTP id x1mr12135556bub.1178642458022; Tue, 08 May 2007 09:40:58 -0700 (PDT) Received: by 10.82.185.16 with HTTP; Tue, 8 May 2007 09:40:57 -0700 (PDT) Message-ID: Date: Tue, 8 May 2007 11:40:57 -0500 From: "illoai@gmail.com" To: "Peter Jeremy" In-Reply-To: <20070508103852.GE838@turion.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <68517de70705080204i144ad5e5m39eaafee823805f3@mail.gmail.com> <20070508103852.GE838@turion.vk2pj.dyndns.org> Cc: freebsd-stable@freebsd.org, Hanatsu Tori Subject: Re: Incorrect df -k output?? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2007 16:41:03 -0000 On 08/05/07, Peter Jeremy wrote: > On 2007-May-08 13:04:55 +0400, Hanatsu Tori wrote: > >xxxxx# df -k > >Filesystem 1K-blocks Used Avail Capacity Mounted on > >/dev/ad4s1a 76866422 51507978 19209132 73% / > >devfs 1 1 0 100% /dev > >*/dev/ad6s1d 77879478 75006042 -3356922 105% /usr/home/ftp/pub/ARCHIEVE* > > > > > >xxxxx# du -sk /usr/home/ftp/pub/ARCHIEVE > >*75006042 /usr/home/ftp/pub/ARCHIEVE* > > df reports 75006042KB used and du reports 75006042KB used. Where is > the problem? > > >xxxxx# df -h > >Filesystem Size Used Avail Capacity Mounted on > >/dev/ad0s1a 496M 36M 420M 8% / > >devfs 1.0K 1.0K 0B 100% /dev > >/dev/ad0s1d 1.9G 425M 1.4G 23% /tmp > >/dev/ad0s1f 136G 70G 55G 56% /usr > >*/dev/ad0s1e 3.9G 3.6G -21M 101% /var > >*/dev/ad2s1d 144G 25G 108G 19% /hd2 > >procfs 4.0K 4.0K 0B 100% /proc > > > >xxxxx# du -sh /var > >*202M /var* > > This is a bit less obvious - there does appear 3.4GB missing. UFS witholds a certain amount of space. See man 8 tunefs for details. You can, of course, tunefs -m 0, which will slow down writes quite enough. There was a thread some time back (last year? two years ago?) where a well intentioned fellow rather verbosely (at least with regard to this mailing list) went through the entire process of trying to get those last few blocks available. As i recall, in the end he concluded that the naysayers were in fact correct. Your "missing" blocks are necessary for filesystem performance and the overage above (which itself probably well diagnosed in other messages) while obviously not fatal to your system was likely dragging performance down fairly significantly, at least on that filesystem. -- --