The vaious time fiels in /proc/PID/stat return time

in clock ticks (USER_HZ, cputime_to_clock_t()).
This commit is contained in:
Michael Kerrisk 2008-06-24 13:15:17 +00:00
parent 8c54c588e3
commit 7a017e241f
1 changed files with 18 additions and 10 deletions

View File

@ -667,28 +667,34 @@ The number of major faults that the process's
waited-for children have made.
.TP
\fIutime\fP %lu
The number of jiffies that this process has been scheduled in user
mode.
Amount of time that this process has been scheduled in user mode,
measured in clock ticks (divide by
.IR sysconf(_SC_CLK_TCK) .
This includes guest time, \fIguest_time\fP
(time spent running a virtual CPU, see below),
so that applications that are not aware of the guest time field
do not lose that time from their calculations.
.TP
\fIstime\fP %lu
The number of jiffies that this process has been scheduled in kernel
mode.
Amount of time that this process has been scheduled in kernel mode,
measured in clock ticks (divide by
.IR sysconf(_SC_CLK_TCK) .
.TP
\fIcutime\fP %ld
The number of jiffies that this process's
waited-for children have been scheduled in user mode.
Amount of time that this process's
waited-for children have been scheduled in user mode,
measured in clock ticks (divide by
.IR sysconf(_SC_CLK_TCK) .
(See also
.BR times (2).)
This includes guest time, \fIcguest_time\fP
(time spent running a virtual CPU, see below).
.TP
\fIcstime\fP %ld
The number of jiffies that this process's
waited-for children have been scheduled in kernel mode.
Amount of time that this process's
waited-for children have been scheduled in kernel mode,
measured in clock ticks (divide by
.IR sysconf(_SC_CLK_TCK) .
.TP
\fIpriority\fP %ld
(Explanation for Linux 2.6)
@ -842,10 +848,12 @@ Aggregated block I/O delays, measured in clock ticks (centiseconds).
.TP
\fIguest_time\fP %lu (since Linux 2.6.24)
Guest time of the process (time spent running a virtual CPU
for a guest operating system), in centiseconds.
for a guest operating system), measured in clock ticks (divide by
.IR sysconf(_SC_CLK_TCK) .
.TP
\fIcguest_time\fP %ld (since Linux 2.6.24)
Guest time of the process's children, in centiseconds.
Guest time of the process's children, measured in clock ticks (divide by
.IR sysconf(_SC_CLK_TCK) .
.RE
.TP
.I /proc/[number]/statm