1rusage(1B)         SunOS/BSD Compatibility Package Commands         rusage(1B)
2
3
4

NAME

6       rusage - print resource usage for a command
7

SYNOPSIS

9       /usr/ucb/rusage command
10
11

DESCRIPTION

13       The  rusage  command  is similar to time(1). It runs the given command,
14       which must be specified; that is, command is not optional as it  is  in
15       the  C  shell's  timing  facility. When the command is complete, rusage
16       displays the real (wall clock), the system CPU, and the user CPU  times
17       which elapsed during execution of the command, plus other fields in the
18       rusage structure, all on one long line. Times are reported  in  seconds
19       and hundredths of a second.
20

EXAMPLES

22       Example 1 The format of rusage output
23
24
25       The example below shows the format of rusage output.
26
27
28         example% rusage wc /usr/share/man/man1/csh (1)
29         3045   13423   78071 /usr/share/man/man1/csh (1)
30         2.26 real 0.80 user 0.36 sys 11 pf 38 pr 0 sw 11 rb 0 wb 16 vcx 37
31                  icx 24 mx 0 ix 1230 id 9 is
32         example%
33
34
35
36
37       Each  of  the fields identified corresponds to an element of the rusage
38       structure, as described in getrusage(3C), as follows:
39
40
41
42
43
44       real                       elapsed real time
45       user      ru_utime         user time used
46       sys       ru_stime         system time used
47       pf        ru_majflt        page faults requiring physical I/O
48       pr        ru_minflt        page faults not requiring physical I/O
49       sw        ru_nswap         swaps
50       rb        ru_inblock       block input operations
51       wb        ru_oublock       block output operations
52       vcx       ru_nvcsw         voluntary context switches
53       icx       ru_nivcsw        involuntary context switches
54       mx        ru_maxrss        maximum resident set size
55       ix        ru_ixrss         currently 0
56       id        ru_idrss         integral resident set size
57       is        ru_isrss         currently 0
58
59

ATTRIBUTES

61       See attributes(5) for descriptions of the following attributes:
62
63
64
65
66       ┌─────────────────────────────┬─────────────────────────────┐
67       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
68       ├─────────────────────────────┼─────────────────────────────┤
69       │Availability                 │SUNWscpu                     │
70       └─────────────────────────────┴─────────────────────────────┘
71

SEE ALSO

73       csh(1), time(1), getrusage(3C), attributes(5)
74

BUGS

76       When the command being timed is interrupted,  the  timing  values  dis‐
77       played may be inaccurate.
78
79
80
81SunOS 5.11                        14 Sep 1992                       rusage(1B)
Impressum