View | Details | Raw Unified | Return to bug 60890
Collapse All | Expand All

(-)ps.1 (-33 / +22 lines)
Lines 211-234 Link Here
211
The flags associated with the process as in
211
The flags associated with the process as in
212
the include file
212
the include file
213
.In sys/proc.h :
213
.In sys/proc.h :
214
.Bl -column P_NOCLDSTOP P_NOCLDSTOP
214
.Bl -column P_STOPPED_SINGLE 0x4000000
215
.It Dv "P_ADVLOCK" Ta No "0x00001	Process may hold a POSIX advisory lock"
215
.It Dv "P_ADVLOCK" Ta No "0x00001	Process may hold a POSIX advisory lock"
216
.It Dv "P_CONTROLT" Ta No "0x00002	Has a controlling terminal"
216
.It Dv "P_CONTROLT" Ta No "0x00002	Has a controlling terminal"
217
.It Dv "P_INMEM" Ta No "0x00004		Loaded into memory"
217
.It Dv "P_KTHREAD" Ta No "0x00004	Kernel thread"
218
.It Dv "P_NOCLDSTOP" Ta No "0x00008	No SIGCHLD when children stop"
218
.It Dv "P_NOLOAD" Ta No "0x00008	Ignore during load avg calculations"
219
.It Dv "P_PPWAIT" Ta No "0x00010	Parent is waiting for child to exec/exit"
219
.It Dv "P_PPWAIT" Ta No "0x00010	Parent is waiting for child to exec/exit"
220
.It Dv "P_PROFIL" Ta No "0x00020	Has started profiling"
220
.It Dv "P_PROFIL" Ta No "0x00020	Has started profiling"
221
.It Dv "P_SELECT" Ta No "0x00040	Selecting; wakeup/waiting danger"
221
.It Dv "P_STOPPROF" Ta No "0x00040	Has thread in requesting to stop prof"
222
.It Dv "P_SINTR" Ta No "0x00080		Sleep is interruptible"
223
.It Dv "P_SUGID" Ta No "0x00100		Had set id privileges since last exec"
222
.It Dv "P_SUGID" Ta No "0x00100		Had set id privileges since last exec"
224
.It Dv "P_SYSTEM" Ta No "0x00200	System proc: no sigs, stats or swapping"
223
.It Dv "P_SYSTEM" Ta No "0x00200	System proc: no sigs, stats or swapping"
225
.It Dv "P_TIMEOUT" Ta No "0x00400	Timing out during sleep"
224
.It Dv "P_SINGLE_EXIT" Ta No "0x00400	Threads suspending should exit, not wait"
226
.It Dv "P_TRACED" Ta No "0x00800	Debugged process being traced"
225
.It Dv "P_TRACED" Ta No "0x00800	Debugged process being traced"
227
.It Dv "P_WAITED" Ta No "0x01000	Debugging process has waited for child"
226
.It Dv "P_WAITED" Ta No "0x01000	Someone is waiting for us"
228
.It Dv "P_WEXIT" Ta No "0x02000		Working on exiting"
227
.It Dv "P_WEXIT" Ta No "0x02000		Working on exiting"
229
.It Dv "P_EXEC" Ta No "0x04000		Process called exec"
228
.It Dv "P_EXEC" Ta No "0x04000		Process called exec"
230
.It Dv "P_OWEUPC" Ta No "0x20000	Owe process an addupc() call at next ast"
229
.It Dv "P_SA" Ta No "0x08000		Using scheduler activations"
231
.It Dv "P_SWAPPING" Ta No "0x40000	Process is being swapped"
230
.It Dv "P_CONTINUED" Ta No "0x10000	Proc has continued from a stopped state"
231
.It Dv "P_STOPPED_SIG" Ta No "0x20000	Stopped due to SIGSTOP/SIGTSTP"
232
.It Dv "P_STOPPED_TRACE" Ta No "0x40000	Stopped because of tracing"
233
.It Dv "P_STOPPED_SINGLE" Ta No "0x80000	Only one thread can continue"
234
.It Dv "P_PROTECTED" Ta No "0x100000	Do not kill on memory overcommit"
235
.It Dv "P_SIGEVENT" Ta No "0x200000	Process pending signals changed"
236
.It Dv "P_JAILED" Ta No "0x1000000	Process is in jail"
237
.It Dv "P_INEXEC" Ta No "0x4000000	Process is in execve()"
232
.El
238
.El
233
.It label
239
.It label
234
The MAC label of the process.
240
The MAC label of the process.
Lines 271-281 Link Here
271
Marks a process in disk (or other short term, uninterruptible) wait.
277
Marks a process in disk (or other short term, uninterruptible) wait.
272
.It I
278
.It I
273
Marks a process that is idle (sleeping for longer than about 20 seconds).
279
Marks a process that is idle (sleeping for longer than about 20 seconds).
274
.It J
275
Marks a process which is in
276
.Xr jail 2 .
277
The hostname of the prison can be found in
278
.Ql /proc/<pid>/status .
279
.It L
280
.It L
280
Marks a process that is waiting to acquire a lock.
281
Marks a process that is waiting to acquire a lock.
281
.It R
282
.It R
Lines 284-289 Link Here
284
Marks a process that is sleeping for less than about 20 seconds.
285
Marks a process that is sleeping for less than about 20 seconds.
285
.It T
286
.It T
286
Marks a stopped process.
287
Marks a stopped process.
288
.It W
289
Marks an idle interrupt thread.
287
.It Z
290
.It Z
288
Marks a dead process (a ``zombie'').
291
Marks a dead process (a ``zombie'').
289
.El
292
.El
Lines 298-315 Link Here
298
The process has raised
301
The process has raised
299
.Tn CPU
302
.Tn CPU
300
scheduling priority.
303
scheduling priority.
301
.It >
302
The process has specified a soft limit on memory requirements and is
303
currently exceeding that limit; such a process is (necessarily) not
304
swapped.
305
.It A
306
the process has asked for random page replacement
307
.Pf ( Dv MADV_RANDOM ,
308
from
309
.Xr madvise 2 ,
310
for example, lisp in a garbage collect).
311
.It E
304
.It E
312
The process is trying to exit.
305
The process is trying to exit.
306
.It J
307
Marks a process which is in
308
.Xr jail 2 .
309
The hostname of the prison can be found in
310
.Ql /proc/<pid>/status .
313
.It L
311
.It L
314
The process has pages locked in core (for example, for raw
312
The process has pages locked in core (for example, for raw
315
.Tn I/O ) .
313
.Tn I/O ) .
Lines 318-332 Link Here
318
.Tn CPU
316
.Tn CPU
319
scheduling priority (see
317
scheduling priority (see
320
.Xr setpriority 2 ) .
318
.Xr setpriority 2 ) .
321
.It S
322
The process has asked for
323
.Tn FIFO
324
page replacement
325
.Pf ( Dv MADV_SEQUENTIAL ,
326
from
327
.Xr madvise 2 ,
328
for example, a large image processing program using virtual memory to
329
sequentially address voluminous data).
330
.It s
319
.It s
331
The process is a session leader.
320
The process is a session leader.
332
.It V
321
.It V

Return to bug 60890