[net.unix] csh time command help

pinkas@mipos3.UUCP (Israel Pinkas) (10/16/86)

Can anyone tell me what all the fields that the csh time command prints out
are?  When I do something like 'time ls' in csh, I get:

	1.3u 0.7s 0:11 19% 23+79k 3+0io 2pf+0w

The man page for csh documents the fist 4 fields as user time, system time,
elapsed time (all in seconds), and utilization (i.e. (u+s)/e).  I guess
that the next fields are memory usage, io calls, and page faults.  What the
numbers mean is not described.  Could anyone send me a definite description
of the last 6 numbers?

Thanks,

Israel

UUCP:	{amd,hplabs,decwrl}!intelca!mipos3!pinkas
ARPA:	pinkas%mipos3.intel.com@relay.cs.net
CSNET:	pinkas%mipos3.intel.com
-- 

UUCP:	{amd,hplabs,decwrl}!intelca!mipos3!pinkas
ARPA:	pinkas%mipos3.intel.com@relay.cs.net
CSNET:	pinkas%mipos3.intel.com

collins@encore.UUCP (Jeff Collins) (10/18/86)

In article <219@mipos3.UUCP> pinkas@mipos3.UUCP (Israel Pinkas) writes:
>Can anyone tell me what all the fields that the csh time command prints out
>are?  When I do something like 'time ls' in csh, I get:
>
>	1.3u 0.7s 0:11 19% 23+79k 3+0io 2pf+0w
>
>The man page for csh documents the fist 4 fields as user time, system time,
>elapsed time (all in seconds), and utilization (i.e. (u+s)/e).  I guess
>that the next fields are memory usage, io calls, and page faults.  What the
>numbers mean is not described.  Could anyone send me a definite description
>of the last 6 numbers?
>
>Thanks,
>
>Israel
>

	23+79k -- Average resident sizes of text and data+stack.  The numbers
		  are measured in 512-byte pages.

	3+0io  -- This is the I/O charged to the process (not necessarily
		  initiated by the process).  The 3 is the total number of
		  requests, the 0 is the number of disk accesses.  The
		  difference is the number of buffer cache hits.

	2pf+0w -- The 2pf is the number of page faults that required disk I/O
		  to read the page (known in unix as major faults).  The 0w is
		  the number of times ths process was swapped to disk.

						-jeff-

jerryp@tektools.UUCP (10/21/86)

In article <219@mipos3.UUCP> pinkas@mipos3.UUCP (Israel Pinkas) writes:
>Can anyone tell me what all the fields that the csh time command prints out
>are?  When I do something like 'time ls' in csh, I get:
>
>	1.3u 0.7s 0:11 19% 23+79k 3+0io 2pf+0w

A year or two ago, David Brown ({zehntel,amd,fortune,resonex}!varian!david)
posted a manual page for the csh "time" command.  The man page was actually
written by Mark Wittenberg ({zehntel,varian}!rtech!mark).

Among the neat, undocumented stuff in it was the fact that you can change the
output format of the "time" command by setting a shell variable named "time".
For instance, here's a setting I like to use:

set time=(0 "user=%U sec, system=%S sec, elapsed=%E min, cpu use=%P, %W swaps,\
  %I disk reads, %O disk writes.  Data+stack+text pages: %K avg., %M max.")

The man page was written for 4.1bsd csh; I don't know if it much has changed
for 4.[23]bsd.  If anyone wants a copy of the man page, let me know.
If I get enough requests, I'll post it to net.sources.

--Jerry Peek, Tektronix, Inc.
US Mail:    MS 74-900, P.O. Box 500, Beaverton, OR 97077
uucp:       {allegra,decvax,hplabs,ihnp4,ucbvax}!tektronix!tektools!jerryp
CS,ARPAnet: jerryp%tektools@tektronix.csnet
Phone:      +1 503 627-1603

jerryp@tektools.UUCP (Jerry Peek) (10/24/86)

Summary:

In article <1760@tektools.UUCP>, I wrote:
> A year or two ago, David Brown ({zehntel,amd,fortune,resonex}!varian!david)
> posted a manual page for the csh "time" command.  The man page was actually
> written by Mark Wittenberg ({zehntel,varian}!rtech!mark).
> 
> The man page was written for 4.1bsd csh; I don't know if it much has changed
> for 4.[23]bsd.  If anyone wants a copy of the man page, let me know.
> If I get enough requests, I'll post it to net.sources.

Fifteen requests in one day is enough; I'll post it to net.sources!
I'll also try to send a copy via e-mail to the people who asked specifically
for e-mail copies.

--Jerry Peek, Tektronix, Inc.
US Mail:    MS 74-900, P.O. Box 500, Beaverton, OR 97077
uucp:       {allegra,decvax,hplabs,ihnp4,ucbvax}!tektronix!tektools!jerryp
CS,ARPAnet: jerryp%tektools@tektronix.csnet
Phone:      +1 503 627-1603