CPU % usage column changing width #1534
Labels
enhancement
Extension or improvement to existing feature
needs-discussion 🤔
Changes need to be discussed and require consent
On a machine with more than 10 cores the CPU usage for an multi-threaded process can be over 1000%. htop correctly makes the column wider when this happens.
However, when that process then drops back to under 1000% the column shrinks again, and if the process is running for a long time at roughly 1000%, sometimes a bit above, sometimes a bit below, the column keeps growing and shrinking. This is visually very annoying and I think it is a bug, and that the column should always grow if needed, but never shrink - or maybe only shrink if it hasn't needed the extra space for a significant time, of the order of at least 10s of seconds.
To reproduce, try using the
cpulimit
tool to throttle a longffmpeg
task. For example, this will take ages to convert a 50fps video to 25fps, and attempt to use exactly 1000% of the CPU. In practice it will sometimes overshoot and undershoot, resulting in the actual osage oscillating back and forth between about 950% and 1050%:You can get
cpulimit
here.The text was updated successfully, but these errors were encountered: