Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jun 2022 21:07:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 264622] /usr/bin/top needs 7 digit formatting for PID _or_ PID in hex?
Message-ID:  <bug-264622-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264622

            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:

http://termbin.com/7uii

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

811995 root          5 134  i10   224M   189M uwait   14   0:04  65.55% rus=
tc
1065359 root          4 134  i10   203M   172M uwait    6   0:02  43.84% ru=
stc
757722 root          1 134  i10   126M    73M ppwait   2   0:04  19.17%
pkg-static

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:=20

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

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?

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



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