From owner-freebsd-questions Tue Jun 6 2:34:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 89C6837BFFD for ; Tue, 6 Jun 2000 02:34:39 -0700 (PDT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Tue, 6 Jun 2000 10:34:17 +0100 Received: from localhost (cmjg@localhost) by mail.ilrt.bris.ac.uk (8.8.7/8.8.8) with ESMTP id KAA29659; Tue, 6 Jun 2000 10:34:16 +0100 (BST) Date: Tue, 6 Jun 2000 10:34:16 +0100 (BST) From: Jan Grant To: Jeff Gray Cc: freebsd-questions@FreeBSD.ORG Subject: Re: df - du leakage In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 5 Jun 2000, Jeff Gray wrote: > The difference in result is fine, but the difference is growing. As has probably been suggested by now, this is due to a rotated logfile that some process still has open, but is no longer referenced from the directory tree. Killing the process will (should, anyway) release the extra resources. How, then, do you find which process has this open file? My favourite utility for this is lsof; although fstat may find what you're after: fstat | awk 'NR==1||$5=="/var"' (assuming /var is a separate partition) -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287163 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk On modesty: whoever said "it's hard being perfect" obviously wasn't me. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message