[Bug 264622] /usr/bin/top needs 7 digit formatting for PID _or_ PID in hex?

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 11 Jun 2022 21:07:04 UTC

            Bug ID: 264622
           Summary: /usr/bin/top needs 7 digit formatting for PID _or_ PID
                    in hex?
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: dgilbert@eicat.ca

Here's the top I'm currently looking at:


I'm going to paste just a few lines so everyone doesn't have to flip to a

811995 root          5 134  i10   224M   189M uwait   14   0:04  65.55% rustc
1065359 root          4 134  i10   203M   172M uwait    6   0:02  43.84% rustc
757722 root          1 134  i10   126M    73M ppwait   2   0:04  19.17%

Now... I'll go on the record as "in favour" of process-ids of more than 100k
(was that our previous limit?) ... but this formatting is awful.

I see two choices: 

1. eek out one more column for a 32 bit (2^32 ~ 4M) value ... username starts
in the 9th column.  

2. Start representing PIDs as hex values.

I actually like #2.  Obviously, a great number of utilities need to change for
#2 --- but that would save 2 or 3 columns in top (and similarly in ps).

Either way, something needs to change.

I would be willing to make either change, but who gets to decide on this?

You are receiving this mail because:
You are the assignee for the bug.