From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 04:17:15 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 32E4216A4CE for ; Sat, 26 Mar 2005 04:17:15 +0000 (GMT) Received: from web50905.mail.yahoo.com (web50905.mail.yahoo.com [206.190.38.125]) by mx1.FreeBSD.org (Postfix) with SMTP id 61FB243D39 for ; Sat, 26 Mar 2005 04:17:14 +0000 (GMT) (envelope-from jonstew1983@yahoo.com) Received: (qmail 25508 invoked by uid 60001); 26 Mar 2005 04:17:13 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=g8W9wHUoyB0+EfHZBh+3PJfDjDY8kyLiGK3fNUUI/+Ip3UPMg8RrqqOd3NPZ3IMM4d30YOvBNl7AUxVKGBOXalSDwmphQZnWywe8MU6axxFKl0Yhp0u/Pi7QEI+7zs3fE/QEAu71y79mZIs/3rhBB1EzrdrzPiHcQy4TUSo2wa8= ; Message-ID: <20050326041713.25506.qmail@web50905.mail.yahoo.com> Received: from [204.117.152.100] by web50905.mail.yahoo.com via HTTP; Fri, 25 Mar 2005 20:17:13 PST Date: Fri, 25 Mar 2005 20:17:13 -0800 (PST) From: Jonathan Stewart To: Giorgos Keramidas In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: Dan Nelson 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: Sat, 26 Mar 2005 04:17:15 -0000 --- Giorgos Keramidas wrote: > On 2005-03-25 10:08, Jonathan Stewart wrote: > > --- Giorgos Keramidas keramida at ceid dot upatras dot gr wrote: > > > So, what you are looking for is a single byte count that > increases > > > sequentially for all read() and write() system calls? > > > > Pretty much, yes. To be specific all read() and write() calls for a > > given process. Even something that counted in 512 byte or > UFUFSlocks > > would be useful. > > To what end, may I ask? Per process statistics may include byte > counts from a > few thousand threads that read and/or write from a few hundred > descriptors. > > Even per file descriptor statistics quickly get useless when one > considers > that a single byte read may cause the read-ahead of a few thousand > bytes or > that a single write may reach the corresponding device several > seconds later. > As I mentioned in an earlier email my main use of this is really just for one program. I can do a du to find out how much information it needs to read and then by watching how much it has read get a rough idea of how much longer it will be. Not really a necessary feature just a "nice to have" kind of thing. Jonathan __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/