Date: Thu, 24 Mar 2005 21:44:30 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Jonathan Stewart <jonstew1983@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Discrepancy between ps -i -o inblk and figuring numbers by hand Message-ID: <20050325034430.GF10908@dan.emsphone.com> In-Reply-To: <20050325033029.23218.qmail@web50910.mail.yahoo.com> References: <20050325033029.23218.qmail@web50910.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050325034430.GF10908>