Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Karl" <kbarkei@cs.umass.edu>
Subject: What does ru_inblock of an rusage struct specify?
Date: 1999/07/27	[thread overview]
Message-ID: <379dc754@rcfnews.cs.umass.edu> (raw)

(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






                 reply	other threads:[~1999-07-27  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox