Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Mar 2001 20:50:03 -0800 (PST)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/26057: [PATCH] Minor ps(1) fixes
Message-ID:  <200103250450.f2P4o3Z41100@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/26057; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: dd@FreeBSD.ORG
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/26057: [PATCH] Minor ps(1) fixes
Date: Sun, 25 Mar 2001 14:40:31 +1000 (EST)

 On Sat, 24 Mar 2001 dd@FreeBSD.ORG wrote:
 
 > >Description:
 > 
 > When the kinfo_proc structure was introduced, the ps(1) manual page
 > was not updated.  Thus, it still talks about keywords that don't
 > exist.  Also, one line in ps.c was forgotten.  The latter results in
 > an annoying warning when using ps(1) with the -j flag (see
 > how-to-repeat).
 
 Some of the bugs are in kinfo_proc, not in ps.
 
 > Index: ps.1
 > ===================================================================
 > RCS file: /st/src/FreeBSD/src/bin/ps/ps.1,v
 > retrieving revision 1.30
 > diff -u -r1.30 ps.1
 > --- ps.1	2001/02/01 16:24:50	1.30
 > +++ ps.1	2001/03/20 03:34:55
 > @@ -99,7 +99,7 @@
 >  header per page of information.
 >  .It Fl j
 >  Print information associated with the following keywords:
 > -user, pid, ppid, pgid, sess, jobc, state, tt, time and command.
 > +user, pid, ppid, pgid, jobc, state, tt, time and command.
 
 I think the seesion pointer can be used to distinguish sessions.
 pstat(8) still prints it (pstat gets it in a different way).
 
 >...
 > -.It ktracep
 > -tracing vnode
 >...
 > -.It p_ru
 > -resource usage (valid only for zombie)
 
 Other pointers may be useful for groping in kmem or in panic dumps, but
 gdb is better for that.
 
 I hacked my ps to show the cputime() resource usage for zombies in all
 cases.  It's not very useful to print it as 0.
 
 > -.It rsz
 > -resident set size + (text size / text use count) (alias rssize)
 
 Hopefully no one uses this any more.
 
 Bruce
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103250450.f2P4o3Z41100>