Meaning of csh "time" output?

der Mouse mouse at mcgill-vision.UUCP
Sat Apr 16 17:29:13 AEST 1988


In article <309 at rhesus.primate.wisc.edu>, bin at rhesus.primate.wisc.edu (Brain in Neutral) writes:
> The csh "time" command produces lines of the form:
> 	0.1u 0.4s 0:01 41% 18+17k 0+11io 21pf+8w
> The csh manual explains the first 4 fields.  What do the rest mean?

>From 4.2BSD csh source:

%Uu %Ss %E %P%% %X+%Dk %I+%Oio %Fpf+%Ww

%U	user time, seconds (ru_utime field of rusage struct)
%S	system time, seconds (ru_stime field of ditto)
%E	elapsed time, min:sec or hr:min:sec
%P	percentage of #:## accounted for by #.#u + #.#s
	 (ie, cpu utilization percentage)
%X	some sort of average (over time) of the text segment size
%D	ditto of the data+stack sizes
%I	"block input operations" (ru_inblock, see getrusage(2))
%O	"block output operations" (ru_oublock)
%F	page faults (from disk)
%W	swaps (entire process swapped)

%I and %O mean, according to the 4.3 man page for getrusage(), the
following:

ru_inblock	the number of times the file system had to perform
		input.

ru_outblock	the number of times the file system had to perform
     ^ [sic]	input.

Under NOTES, a warning appears:

The number ru_inblock and ru_outblock[sic] account only for real I/O;
data supplied by the caching mechanism is charged only to the first
process to read or write the data.

(grammar mistakes theirs).  And yes, <sys/resource.h> calls it
ru_oublock even though half the man page calls it ru_outblock.

					der Mouse

			uucp: mouse at mcgill-vision.uucp
			arpa: mouse at larry.mcrcim.mcgill.edu



More information about the Comp.unix.questions mailing list