https://bugs.kde.org/show_bug.cgi?id=499959

--- Comment #2 from John <ilikef...@waterisgone.com> ---
(In reply to duha.bugs from comment #1)
> Mission Center is not developed by KDE. You will have to report the bug to
> them: https://gitlab.com/mission-center-devs/mission-center/-/issues

I understand that it's not developed by KDE, but I wanted to report a higher
CPU usage just by upgrading Plasma from version 6.2.5 to 6.30 as everything
else stayed the same (the computer, the OS, Mission Center).
And since Htop, that I like a lot and use from time to time is not able to give
me a single percentage value of usage and Plasma's System Monitor just
fluctuates a lot and too fast to figure out what is the average CPU usage like
for the past minute, I had to use another tool and this one is the best, in my
opinion.

I did a few more tests and I thing I figured out a problem with my before and
after value.
I discovered that if I change in Plasma's Power and Battery widget the Power
profile from "Power save" to "Balanced" the CPU usage shown in Mission Center
can reach again 2% on idle.
Have a look:
https://imgur.com/WQe7wxS
Same with the Power profile set to "Performance"
Because of that I started looking for another independent option to understand
if this different CPU usage problem depending on the power profile is a problem
in Mission Center or Plasma, so:

I've taken this CPU measuring usage command that gives a single percentage
value:
grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage
"%"}'
From:
https://stackoverflow.com/a/9229580
And combined it with:
while script; do sleep 10; done
From:
https://stackoverflow.com/a/25158585
As I could not make it work with the 'watch' command.

The result being this command (which probably works better than with the
'watch' command as you can see a history of values).

while grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print
usage "%"}'; do sleep 1; done;

I've switched the power profile and ran if for all 3 of them and it got me
these results:
--------------------------------Power Save--------------------------------
5.06676%
5.0661%
5.06542%
5.06474%
5.0641%
5.06342%
5.06272%
5.06206%
5.06142%
5.06076%
--------------------------------Balanced--------------------------------
5.05539%
5.05476%
5.05411%
5.05347%
5.0528%
5.05217%
5.0515%
5.05088%
5.05024%
5.04962%
--------------------------------Performance--------------------------------
5.03792%
5.03726%
5.03656%
5.03585%
5.03515%
5.03445%
5.03376%
5.03304%
5.03234%
5.03166%

So the CPU usage is always around 5% (though decreasing a bit with the higher
power profile) and most likely it was the same for Plasma 6.2.5 too and
probably I had looked at it while having the Power profile set as "Power save"
and didn't know that Mission Center would display an inaccurate result because
of it.
I will try to report it upstream.
Good that Plasma 6.3.0 doesn't have a higher CPU usage than the previous one
without any good reason!

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to