From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 03:53:04 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 E5F5116A4CE for ; Fri, 25 Mar 2005 03:53:04 +0000 (GMT) Received: from web50903.mail.yahoo.com (web50903.mail.yahoo.com [206.190.38.123]) by mx1.FreeBSD.org (Postfix) with SMTP id 613C243D39 for ; Fri, 25 Mar 2005 03:53:04 +0000 (GMT) (envelope-from jonstew1983@yahoo.com) Received: (qmail 41292 invoked by uid 60001); 25 Mar 2005 03:53:03 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=kEpYgjoDQPVGN/TUcH2jTjEks577+4/I1H7OMRbTtoCUSYhFQgq/Q1ptr2k0Z9UZPPXOvi55EVM8AhdYKSOSyO0WirGC3U8QxJaRsUG5YJu+xQXYO4Hs8mAXjLjLovYMA/0VPlazlT3eH71t3jrIidRIFPdogkO3AsJg7MVujuM= ; Message-ID: <20050325035303.41290.qmail@web50903.mail.yahoo.com> Received: from [204.117.152.100] by web50903.mail.yahoo.com via HTTP; Thu, 24 Mar 2005 19:53:03 PST Date: Thu, 24 Mar 2005 19:53:03 -0800 (PST) From: Jonathan Stewart To: Dan Nelson In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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:53:05 -0000 --- Dan Nelson wrote: > 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. > Hmm, that almost works but the program opens 1000's of files each time. The program is Unison which is a file synchronizer and I have it synchronizing files sets >40GB with and 1000's or more files. Based on your description once the file is closed I can't even tell if it was read or not :P Thanks (a bunch) again, Jonathan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com