From owner-freebsd-questions Sun Dec 15 10:44:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D4FB37B401 for <freebsd-questions@FreeBSD.ORG>; Sun, 15 Dec 2002 10:44:37 -0800 (PST) Received: from mail.liwing.de (mail.liwing.de [213.70.188.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4883F43E4A for <freebsd-questions@FreeBSD.ORG>; Sun, 15 Dec 2002 10:44:36 -0800 (PST) (envelope-from rehsack@liwing.de) Received: (qmail 78054 invoked from network); 15 Dec 2002 18:44:29 -0000 Received: from stingray.liwing.de (HELO liwing.de) ([213.70.188.164]) (envelope-sender <rehsack@liwing.de>) by mail.liwing.de (qmail-ldap-1.03) with SMTP for <mike@ascendency.net>; 15 Dec 2002 18:44:29 -0000 Message-ID: <3DFCCD53.60409@liwing.de> Date: Sun, 15 Dec 2002 19:43:31 +0100 From: Jens Rehsack <rehsack@liwing.de> Organization: LiWing IT-Services User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Loiterman <mike@ascendency.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: du -sh inconsistant with df -h References: <F93lZz02H67yRLVbNDN000116f0@hotmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: <freebsd-questions.FreeBSD.ORG> List-Archive: <http://docs.freebsd.org/mail/> (Web Archive) List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions) List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-questions> List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-questions> X-Loop: FreeBSD.ORG Mike Loiterman wrote: > This is strange. When I do: > > [11:49:09 root@fat_man: /var]# du -sh > 7.0M . > > but when I do: > > [11:49:18 root@fat_man: /var]# df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/ad0s1a 97M 55M 34M 62% / > /dev/ad0s1f 1.7G 1.2G 403M 75% /usr > /dev/ad0s1e 19M 8.6M 9.2M 48% /var > procfs 4.0K 4.0K 0B 100% /proc > > Where are the extra 1.6 megs at? > > I thought there must be a stray process running that had a lock on that > amount of memory, but I couldn't find anything with top or via ps -aux. > I use tripwire everynight to check file consistencies and I believe it's > the problem, I can't figure out how or why. Rebooting the server fixes > the problem and clears up the missing memory. ??? > > Please reply to mike@ascendency.net which is the address I am subscribed > with, but since my isp hasn't corrected my reverse dns problem yet, I > can't post from that address to *@freebsd.org. Thanks! > Hm, let me see what my development machine says: -bash-2.05b# cd /var/www/ -bash-2.05b# du -sh 471M . -bash-2.05b# df -h Filesystem Size Used Avail Capacity Mounted on /dev/da0s1a 126M 46M 70M 40% / /dev/da0s1e 7.9G 1.4G 5.9G 19% /usr /dev/da0s1f 3.9G 268M 3.4G 7% /var /dev/da0s1g 5.8G 471M 4.9G 9% /var/www procfs 4.0K 4.0K 0B 100% /proc Maybe it's because your /var filesystem is really small? If you can you should try boot in single user mode and test again. It could help seeing your running processes... But 1.6 Meg??? To much I think for being cached, isn't it? Jens To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message