From owner-freebsd-bugs Sat Mar 24 20:50: 8 2001 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 DB0B237B71A for ; Sat, 24 Mar 2001 20:50:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2P4o3Z41100; Sat, 24 Mar 2001 20:50:03 -0800 (PST) (envelope-from gnats) Date: Sat, 24 Mar 2001 20:50:03 -0800 (PST) Message-Id: <200103250450.f2P4o3Z41100@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: bin/26057: [PATCH] Minor ps(1) fixes Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/26057; it has been noted by GNATS. From: Bruce Evans 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