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 show up by default too...

Hmm. I agree that it may not be necessary to control the display of P_SYSTEM
procs separately, but as mnemonic, -k sounds like kernel, kthread, and
there's no
"k" in "tHread". :)

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

As for -H:
- in FreeBSD, -H shows "kernel visible" threads (and "ps -Hx" shows threads
   of kernel threads as well, whereas "ps -x" shows just the main
thread/proc)
- in NetBSD, -H is unused
- in Linux, -H switches to a tree display
- in Solaris, -H enables the "locality group" column (LGRP)

(I've done just a quick cross-check. Maybe I missed something.)

Reply via email to