Re: hide kernel threads in ps?

2011-09-18 Thread Philip Guenther
Having muttered a bunch, I'm in favor of this. One last comment: On Wed, Aug 31, 2011 at 2:17 AM, Uwe Stuehler u...@openbsd.org wrote: --- bin/ps/ps.1 6 Jul 2011 21:42:11 - 1.76 +++ bin/ps/ps.1 31 Aug 2011 09:01:06 - ... +.It Fl H +Also display information about kernel visible

Re: hide kernel threads in ps?

2011-09-18 Thread Uwe Stuehler
On Sun, Sep 18, 2011 at 04:28:28PM -0700, Philip Guenther wrote: If there are no objections, I'll commit this with the ps.1 diff reduced to: ... +.It Fl H +Also display information about kernel visible threads. The distinction betwen kernel threads and kernel visible threads is certainly

Re: hide kernel threads in ps?

2011-08-31 Thread Ted Unangst
On Wed, Aug 31, 2011, Uwe Stuehler wrote: Help! My Nagios checks failed. :) This fixes them by hiding kernel threads from ps output. I'd also like to show the main process ID in the PID column as otherwise there is no way of knowing which threads belong together. Likely struct kinfo_proc

Re: hide kernel threads in ps?

2011-08-31 Thread Mark Kettenis
Date: Wed, 31 Aug 2011 16:38:41 -0400 From: Ted Unangst t...@tedunangst.com On Wed, Aug 31, 2011, Uwe Stuehler wrote: Help! My Nagios checks failed. :) This fixes them by hiding kernel threads from ps output. I'd also like to show the main process ID in the PID column as

Re: hide kernel threads in ps?

2011-08-31 Thread Uwe Stuehler
On Wed, Aug 31, 2011 at 11:50 PM, Philip Guenther guent...@gmail.com wrote: As is -L, which is used for threads (LWPs) by Solaris and FreeBSD. B sigh Part of me would be tempted to reuse -k, changing it from unsuppressing P_SYSTEM procs to unsuppressing P_THREAD procs. B Then process 0 would

Re: hide kernel threads in ps?

2011-08-31 Thread john slee
On 1 September 2011 10:21, Uwe Stuehler u...@openbsd.org wrote: If -k would become free for other uses, just for consideration: - in FreeBSD and Solaris, -k is unused - in NetBSD, -k specifies the sort order - in Linux' procps, k specifies the sort order -k in AIX /usr/bin/ps is documented as