1 .TH PS 1 "September 14, 2004"
3 ps \- Display processes
9 command displays the status of all processes in the desired state.
10 This command does not take any locks (all cpus should be frozen while
11 kdb is running) so it can safely be used to debug lock problems with
14 Without any parameters, \fBps\fP displays all the interesting
15 processes, excluding idle tasks and sleeping system daemons.
16 If a parameter is specified, it is a single string consisting of the
17 letters D, R, S, T, C, Z, E, U, I and M, in any order.
18 Each letter selects processes in a specific state, when multiple
19 letters are specified, a process will be displayed if it is in any of
28 D Uninterruptible sleep
37 M Sleeping system daemon
42 For state R (running), the process may not be on a cpu at the moment,
43 but it is ready to run.
44 The header line above the backtrace contains '1' in the fourth field if
45 the process is actually on a cpu.
47 The idle task is run on each cpu when there is no work for that cpu to do.
48 Unless the idle task is servicing an interrupt, there is no point in
49 printing the idle task.
50 An idle task that is not servicing a interrupt is marked as state I,
51 while servicing an interrupt it is in state R.
52 By default, idle tasks are not printed, use \fBps\ I\fR to print them.
53 If the idle tasks are not being printed, the start of the \fBps\R
54 output contains a list of which cpus are idle.
56 Each cpu has one or more system daemons to handle per cpu work such as
58 A system daemon (idenified by a NULL mm pointer) that is sleeping is
60 These processes rarely have any useful data and generate a lot of
61 output on large machines, so sleeping system daemons are not printed by
63 Use \fBps\ M\fR to print them.
65 At the start of the \fBps\fR output is a line giving the cpu status,
66 see the kdb \fBcpu\fR command.
72 This environment variable (default=DRSTCZEU) is used when \fBps\fR
73 is issued with no parameters.
75 .SH SMP CONSIDERATIONS
80 displays the useful tasks, suppressing idle tasks and sleeping
85 displays only tasks that are running or are in an uninterruptible
95 This is easier than remembering DRSTCZEUIM.