htop icon indicating copy to clipboard operation
htop copied to clipboard

LoadAverage-bar scaling

Open LukasLedvina opened this issue 10 years ago • 2 comments

Hi, I'm set the top of the LoadAverage-bar to the #CPUs. Top @ 100 make no sense. And I switched off automatical upscaling. Future feature request might be upscale the load average as needed and when it decreases downscale it slower to the #CPUs. Lukas

PS: I fixed one misc.

LukasLedvina avatar Jun 23 '15 23:06 LukasLedvina

In a heavily loaded system, sometimes the load averages are much higher than the number of CPUs. 100 is too much, indeed, but on the other hand, setting the bar to 1 for a single-processor machine is too low. Maybe something like 5*cpus is reasonable...

hishamhm avatar Aug 12 '15 20:08 hishamhm

Ok, what do you think about this improvement:

  • to make a bar max value dynamically adjustable.
  • start with value 1 per CPU
  • if load is higher than max bar value, set up the max bar value to the load
  • in the opposite case (when max value > #CPU) decrease max bar value by say 1% ?
  • to distinguish between overloaded system and not overloaded system draw bar by '|' bellow #CPU and the rest of the bar by 'X' or '~', or unicode '☹', or by an another character.

LukasLedvina avatar Aug 26 '15 14:08 LukasLedvina