hishamhm / htop

htop is an interactive text-mode process viewer for Unix systems. It aims to be a better 'top'.
GNU General Public License v2.0
5.84k stars 582 forks source link

[feature request] lazy sorting (exponentially decaying moving average) #827

Open stheid opened 6 years ago

stheid commented 6 years ago

Problem: htop updates sorting every second with makes the view quiet unstable when many processes have similar computation.

Suggestion: Allow sorting to be more lazy, by using an exponential moving average. Its like the windowed average for "load avg", but is way easier to calculate. Therefore processes that have a high consumption over a longer period will be placed on top and processes that really spike will also be on top.

But this feature would not be suitable in every use case so it would have to be disabled by default and could be enabled via the options.

If you consider this idea, i can get much more detailed.

benyanke commented 6 years ago

This sounds quite useful.