From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 03:44:31 2005 Return-Path: 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 21A2116A4CE for ; Fri, 25 Mar 2005 03:44:31 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3A2D43D31 for ; Fri, 25 Mar 2005 03:44:30 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j2P3iUd6060823; Thu, 24 Mar 2005 21:44:30 -0600 (CST) (envelope-from dan) Date: Thu, 24 Mar 2005 21:44:30 -0600 From: Dan Nelson To: Jonathan Stewart Message-ID: <20050325034430.GF10908@dan.emsphone.com> References: <20050325033029.23218.qmail@web50910.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050325033029.23218.qmail@web50910.mail.yahoo.com> X-OS: FreeBSD 5.4-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: freebsd-questions@freebsd.org Subject: Re: Discrepancy between ps -i -o inblk and figuring numbers by hand X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 03:44:31 -0000 In the last episode (Mar 24), Jonathan Stewart said: > In that case how would I track how much information a process has > actually read from a drive? I occasionally run processes that will > read as much as 40+ gig in a single run which takes quite a while and > on windows :P I can see "bytes read" and "bytes written" per process > which lets me track how much the program has read so far and thus get > an idea of how close it is to done. Sorry for the run-on sentence > there. I use lsof, which can tell you the file offset of each open filedescriptor. "lsof -o -o20 -p ###" will print all the files currently opened by pid ###, and their current offset. -- Dan Nelson dnelson@allantgroup.com