Bug 433170 - Option to change update interval
Summary: Option to change update interval
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Monitor widgets (show other bugs)
Version: 5.21.0
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 433695 433774 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-02-18 13:47 UTC by dS810
Modified: 2021-05-10 11:52 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.23
Sentry Crash Report:


Attachments
Sernsors (24.49 KB, image/png)
2021-02-18 13:47 UTC, dS810
Details
flamegraph of plasmashell while running the misbehaving widget (67.14 KB, image/svg+xml)
2021-02-26 11:34 UTC, jade
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dS810 2021-02-18 13:47:59 UTC
Created attachment 135851 [details]
Sernsors

Refresh frequency for the sensors is to high. I thinks it's 2 times pro second.

It needs up to 7% cpu time.

I use 5 Sensors (See screenshot).

Operating System: Arch Linux
KDE Plasma Version: 5.21.0
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.10.16-arch1-1
OS Type: 64-bit
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-6300U CPU @ 2.40GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520
Comment 1 Nate Graham 2021-02-18 15:03:36 UTC
What's wrong with a high refresh frequency?
Comment 2 dS810 2021-02-18 19:44:39 UTC
(In reply to Nate Graham from comment #1)
> What's wrong with a high refresh frequency?

Currently desktop looks "hectic" if you have some sensors on it and I guess it needs more CPU time. I my opinion it would be great to have an setting "refresh time" for sensors. Update every two seconds would be sufficient - like 'watch' command.
Comment 3 Nate Graham 2021-02-18 21:51:16 UTC
Thanks for the explanation!
Comment 4 Richard Llom 2021-02-19 12:35:37 UTC
For reference:
in (the current) ksysguard one can set the update interval under View -> Tab properties.
I don't know if this also applied to the widgets of if there is a separate setting.
Comment 5 dS810 2021-02-19 12:48:54 UTC
(In reply to Richard Llom from comment #4)
> For reference:
> in (the current) ksysguard one can set the update interval under View -> Tab
> properties.
> I don't know if this also applied to the widgets of if there is a separate
> setting.

It has no impact...
Comment 6 Richard Llom 2021-02-19 18:09:05 UTC
(In reply to dS810 from comment #5)
> (In reply to Richard Llom from comment #4)
> > For reference:
> > in (the current) ksysguard one can set the update interval under View -> Tab
> > properties.
> > I don't know if this also applied to the widgets of if there is a separate
> > setting.
> 
> It has no impact...

Note that you filled this bug under plasma-systemmonitor, the "new ksysguard". If you are using ksysguard, please fill bugs under:
https://bugs.kde.org/describecomponents.cgi?product=ksysguard


plasma-systemmonitor doesn't ship with plasma yet, you may find it as git package in your distros repository.
Comment 7 dS810 2021-02-19 19:17:01 UTC
(In reply to Richard Llom from comment #6)
> (In reply to dS810 from comment #5)
> > (In reply to Richard Llom from comment #4)
> > > For reference:
> > > in (the current) ksysguard one can set the update interval under View -> Tab
> > > properties.
> > > I don't know if this also applied to the widgets of if there is a separate
> > > setting.
> > 
> > It has no impact...
> 
> Note that you filled this bug under plasma-systemmonitor, the "new
> ksysguard". If you are using ksysguard, please fill bugs under:
> https://bugs.kde.org/describecomponents.cgi?product=ksysguard
> 
> 
> plasma-systemmonitor doesn't ship with plasma yet, you may find it as git
> package in your distros repository.

I mean the "widget" is also named "system monitor" :/
Comment 8 Richard Llom 2021-02-19 22:03:34 UTC
(In reply to dS810 from comment #7)
> (In reply to Richard Llom from comment #6)
> > (In reply to dS810 from comment #5)
> > 
> > Note that you filled this bug under plasma-systemmonitor, the "new
> > ksysguard". If you are using ksysguard, please fill bugs under:
> > https://bugs.kde.org/describecomponents.cgi?product=ksysguard
> > 
> > 
> > plasma-systemmonitor doesn't ship with plasma yet, you may find it as git
> > package in your distros repository.
> 
> I mean the "widget" is also named "system monitor" :/

Yeah, I know its confusing...
Comment 9 dS810 2021-02-19 23:06:34 UTC
(In reply to Richard Llom from comment #8)
> (In reply to dS810 from comment #7)
> > (In reply to Richard Llom from comment #6)
> > > (In reply to dS810 from comment #5)
> > > 
> > > Note that you filled this bug under plasma-systemmonitor, the "new
> > > ksysguard". If you are using ksysguard, please fill bugs under:
> > > https://bugs.kde.org/describecomponents.cgi?product=ksysguard
> > > 
> > > 
> > > plasma-systemmonitor doesn't ship with plasma yet, you may find it as git
> > > package in your distros repository.
> > 
> > I mean the "widget" is also named "system monitor" :/
> 
> Yeah, I know its confusing...

Can you move it?
Comment 10 Frank Steinmetzger 2021-02-20 14:55:05 UTC
(In reply to Nate Graham from comment #1)
> What's wrong with a high refresh frequency?

Hi, it’s me again with my four systems that I upgraded from Plasma 5.20 to 5.21 the other day. ;-)

On three of those I set up four or five system monitor applets for different data, such as CPU, disk load, network load and temperatures. After the upgrade, the update characteristics has changed considerably. The network applet updates once a second, all other twice a second. On the first impression, the visual offset each measurement takes ranges from very small to huge. After some observation I think I found the problem:

My CPU applet only has one line and it moves in small steps of a few pixels.
My temperature applet basically hurls across the screen, and it has shows four lines.
The network applet with two lines is inbetween.
It seems the graph only ever stores 50 values, shared among all graphs. The CPU applet with its single line shows 50 time steps, the network around 25 (50 columns / 2 graphs) and the temperature 18 (50 columns / 3 graphs).
Comment 11 Frank Steinmetzger 2021-02-20 14:58:26 UTC
(In reply to Frank Steinmetzger from comment #10)
> and the temperature 18 (50 columns / 3 graphs).

Checked again, they are in fact only 16. (16 * 3 = 48, which is where the 8 came from in my error).
Comment 12 Arjen Hiemstra 2021-02-26 11:01:17 UTC
Let's keep things separate, please. There's a known issue where sometimes the history amount for a chart is not properly respected, there is at least https://bugs.kde.org/show_bug.cgi?id=433064 to track that.

The request here is for adjusting the update rate of charts. I do have a plan for that, which has become possible now that we are running at a higher update rate. It will mean you can select an update rate that is a certain multiple of the current update rate, so you can have charts update at 500ms, 1000ms, 1500ms, etc.
Comment 13 jade 2021-02-26 11:34:21 UTC
Created attachment 136189 [details]
flamegraph of plasmashell while running the misbehaving widget
Comment 14 jade 2021-02-26 11:39:15 UTC
I believe I moved the bug successfully.

I agree with the usability issues discussed, it basically shows half a second of history, with maybe 2 samples at a time, which is a lot less useful than it used to be prior to plasma 1.21. I dug through the source and it appears to be a regression introduced in https://invent.kde.org/plasma/libksysguard/-/merge_requests/98, but I don't know enough about compiling and running KDE to try bisecting it to make sure.

For me, a bug in this widget, likely this one, has caused plasmashell to take 100% CPU on one core of a beefy processor and make the rest of plasmashell to be laggy. I've attached a flamegraph of where the CPU went.

I had the CPU widget in the bottom bar of my desktop, with 24 CPU sensors, one per hardware thread.

This was not happening continuously and I don't know if I can cause it to reproduce again.
Comment 15 zeertzjq 2021-03-01 06:57:39 UTC
*** Bug 433774 has been marked as a duplicate of this bug. ***
Comment 16 David Redondo 2021-03-01 09:51:53 UTC
*** Bug 433695 has been marked as a duplicate of this bug. ***