From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 20:31:05 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 354A616A4CE for ; Fri, 25 Mar 2005 20:31:05 +0000 (GMT) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 617F043D3F for ; Fri, 25 Mar 2005 20:31:03 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 25932 invoked by uid 207); 25 Mar 2005 20:31:01 -0000 Received: from keramida@ceid.upatras.gr by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.19/3.81. Clear:RC:1(81.186.70.75):. Processed in 0.38156 secs); 25 Mar 2005 20:31:01 -0000 Received: from dialup75.ach.sch.gr (HELO gothmog.gr) ([81.186.70.75]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 25 Mar 2005 20:31:00 -0000 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j2PKUsCv006431; Fri, 25 Mar 2005 22:30:54 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j2PKUrD3006430; Fri, 25 Mar 2005 22:30:53 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 25 Mar 2005 22:30:53 +0200 From: Giorgos Keramidas To: Jonathan Stewart Message-ID: <20050325203052.GA1680@gothmog.gr> References: <20050325180841.63828.qmail@web50903.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050325180841.63828.qmail@web50903.mail.yahoo.com> 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: Fri, 25 Mar 2005 20:31:05 -0000 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.