From owner-freebsd-bugs Fri Feb 15 2:50:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9867137B417 for ; Fri, 15 Feb 2002 02:50:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1FAo0Q81680; Fri, 15 Feb 2002 02:50:00 -0800 (PST) (envelope-from gnats) Received: from descent.robbins.dropbear.id.au (146.d.010.mel.iprimus.net.au [210.50.203.146]) by hub.freebsd.org (Postfix) with ESMTP id 8B3BE37B416 for ; Fri, 15 Feb 2002 02:49:46 -0800 (PST) Received: (from tim@localhost) by descent.robbins.dropbear.id.au (8.11.6/8.11.6) id g1EAnFG18080; Thu, 14 Feb 2002 21:49:15 +1100 (EST) (envelope-from tim) Message-Id: <200202141049.g1EAnFG18080@descent.robbins.dropbear.id.au> Date: Thu, 14 Feb 2002 21:49:15 +1100 (EST) From: Tim Robbins Reply-To: Tim Robbins To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/34955: [PATCH] ps(1) is out of touch with reality Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34955 >Category: bin >Synopsis: [PATCH] ps(1) is out of touch with reality >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 15 02:50:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Tim Robbins >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: FreeBSD descent.robbins.dropbear.id.au 4.5-STABLE FreeBSD 4.5-STABLE #3: Thu Feb 7 01:39:15 EST 2002 tim@descent.robbins.dropbear.id.au:/usr/obj/usr/src/sys/DESCENT i386 >Description: The `flags' and `state' information in ps(1) is out of sync with both and the ps program. There are more flags, and MADV_{SEQUENTIAL,RANDOM} information is not printed anymore. >How-To-Repeat: N/A >Fix: Diff is against RELENG_4; ps(1) in -CURRENT is also out of sync. Index: ps.1 =================================================================== RCS file: /home/ncvs/src/bin/ps/ps.1,v retrieving revision 1.24.2.6 diff -u -r1.24.2.6 ps.1 --- ps.1 2002/02/01 14:09:30 1.24.2.6 +++ ps.1 2002/02/15 10:45:20 @@ -197,7 +197,6 @@ .It Dv "P_ADVLOCK" Ta No "0x00001 Process may hold a POSIX advisory lock" .It Dv "P_CONTROLT" Ta No "0x00002 Has a controlling terminal" .It Dv "P_INMEM" Ta No "0x00004 Loaded into memory" -.It Dv "P_NOCLDSTOP" Ta No "0x00008 No SIGCHLD when children stop" .It Dv "P_PPWAIT" Ta No "0x00010 Parent is waiting for child to exec/exit" .It Dv "P_PROFIL" Ta No "0x00020 Has started profiling" .It Dv "P_SELECT" Ta No "0x00040 Selecting; wakeup/waiting danger" @@ -211,6 +210,13 @@ .It Dv "P_EXEC" Ta No "0x04000 Process called exec" .It Dv "P_OWEUPC" Ta No "0x20000 Owe process an addupc() call at next ast" .It Dv "P_SWAPPING" Ta No "0x40000 Process is being swapped" +.It Dv "P_SWAPINREQ" Ta No "0x80000 Swapin request due to wakeup" +.It Dv "P_KTHREADP" Ta No "0x200000 Process is really a kernel thread" +.It Dv "P_DEADLKTREAT" Ta No "0x800000 Lock acquisition - deadlock treatment" +.It Dv "P_JAILED" Ta No "0x1000000 Process is in jail" +.It Dv "P_OLDMASK" Ta No "0x2000000 Need to restore mask before pause" +.It Dv "P_ALTSTACK" Ta No "0x4000000 Have alternate signal stack" +.It Dv "P_INEXEC" Ta No "0x8000000 Process is in execve()" .El .It lim The soft limit on memory used, specified via a call to @@ -241,11 +247,6 @@ Marks a process in disk (or other short term, uninterruptible) wait. .It I Marks a process that is idle (sleeping for longer than about 20 seconds). -.It J -Marks a process which is in -.Xr jail 2 . -The hostname of the prison can be found in -.Ql Li /proc//status . .It R Marks a runnable process. .It S @@ -266,20 +267,13 @@ The process has raised .Tn CPU scheduling priority. -.It > -The process has specified a soft limit on memory requirements and is -currently exceeding that limit; such a process is (necessarily) not -swapped. -.It A -the process has asked for random page replacement -.Pf ( Dv MADV_RANDOM , -from -.Xr madvise 2 , -for example, -.Xr lisp 1 -in a garbage collect). .It E The process is trying to exit. +.It J +Marks a process which is in +.Xr jail 2 . +The hostname of the prison can be found in +.Ql Li /proc//status . .It L The process has pages locked in core (for example, for raw .Tn I/O ) . @@ -288,15 +282,6 @@ .Tn CPU scheduling priority (see .Xr setpriority 2 ) . -.It S -The process has asked for -.Tn FIFO -page replacement -.Pf ( Dv MADV_SEQUENTIAL , -from -.Xr madvise 2 , -for example, a large image processing program using virtual memory to -sequentially address voluminous data). .It s The process is a session leader. .It V >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message