[procps] Re: three for newlib

  • From: Craig Small <csmall@xxxxxxxxxxxx>
  • To: Jim Warner <james.warner@xxxxxxxxxxx>
  • Date: Thu, 16 Dec 2021 08:14:25 +1100

Hi Jim,
  Should be able to do that tonight (12 hrs from now), I've got something
nearly done. It's basically looking at what happens if you have subset=pid
in the proc mount options, see
https://gitlab.com/procps-ng/procps/-/issues/227

For oldlib, the answer was simple, the library simply would not initialise.
newlib, however, can get some useful work in this mode.

I've made some simple quick wins (e.g. skill doesn't always need boot time,
ps loads boot time and total memory only when it needs it) but of course
for a lot of programs need non-pid files and die (e.g. free is pretty
useless).

For top, it currently just dies but it's an interesting question; for the
summary part for sure it's not going to work, but what about the process
list? It could work (for most fields), but is it worthwhile making that
happen?

 - Craig



On Thu, 16 Dec 2021 at 07:18, Jim Warner <james.warner@xxxxxxxxxxx> wrote:

Hi Craig,

Would you please push these 3 patches to newlib.

Thanks in advance & regards,

Jim

( I'm scraping the bottom of the barrel )

Other related posts: