From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10650a,2b0354dec0a4e30e,start X-Google-Attributes: gid10650a,public X-Google-Thread: fee84,2b0354dec0a4e30e,start X-Google-Attributes: gidfee84,public From: "Karl" Subject: What does ru_inblock of an rusage struct specify? Date: 1999/07/27 Message-ID: <379dc754@rcfnews.cs.umass.edu>#1/1 X-Deja-AN: 505802657 X-Original-NNTP-Posting-Host: 128.119.41.102 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 X-Trace: 27 Jul 1999 10:51:00 -0500, 128.119.41.102 Organization: Dept. of Computer Science, UMass/Amherst Newsgroups: comp.unix.osf.osf1,comp.unix.internals (This is in on a Digital Unix OSF1 v4.0 - alpha) The function getrusage() returns an rusage structure that, among other things, contains a member called ru_inblock. The Digital man page says ru_inblock is a count of the number of input block operations performed by the calling process. My questions: 1. What exactly is an "input block operation" in this context? 2. Does this number (i.e., the number of input block operations) correspond to the traditional idea of a block ( the usual 512 or 1024 byte thing)? For example, if my program only does a single 5120 byte fread() from disk, will ru_inblock equal 10? By the way, on a Sun system, the man page says: ru_inblock The number of times the file system had to perform input in servicing a read(2) request. - Karl