[procps] Re: important newlib patches

  • From: Jim Warner <james.warner@xxxxxxxxxxx>
  • To: Procps-ng Mail list <procps@xxxxxxxxxxxxx>
  • Date: Fri, 4 Mar 2022 12:37:15 -0600

On 2/28/22 3:34 AM, Craig Small wrote:

It also depends on how long the system has been up:
up 17 days, 11:21,  1 user,  load average: 0.35, 0.65, 1.02
ELAPSED of a process is  335,50 which is about 13 days.  But it looks a like neater code-wise anyhow.
That's pretty neat actually, CPU load versus total run time.  ps probably should have that too as it makes *way* more sense to use %CUU rather than %CPU in a one-shot setup.

Hi Craig,

Your observation about the ELAPSED value inspired me to refactor top's scale_tics function to better reflect times. Then I inspired myself to offer users some control over such scaling.

[ my blind spot is rebooting 9 separate linux distributions daily ]

Also, your comments on ps and cpu utilization further inspired me to add that new library item to the ps repertoire.

[ that was before I realized ps already offered 4 similar options ]

And while not at all inspiring, along the way I discovered two insidious bugs. One was in the library and the other was in ps.

The attached represents the vegetables of my efforts (or maybe fruits).



p.s. Now I'm gonna be uninspired for the time being.

Other related posts: