Bug 427204 - idle shutdown ksystemstats daemon
Summary: idle shutdown ksystemstats daemon
Status: RESOLVED FIXED
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-01 12:43 UTC by Harald Sitter
Modified: 2020-11-09 16:01 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Sitter 2020-10-01 12:43:04 UTC
Currently the background daemon is started on-demand but not shut down without demand. That means after having used PSSM once, the system will always have 1mib more ram used and spend a couple cycles on checking new/changed solid devices.
It might be nice to introduce an idle timer that shuts down the daemon if nothing is connected to it for N (=1?) minutes.
Comment 1 David Edmundson 2020-10-01 12:44:20 UTC
ack.
Comment 2 Bug Janitor Service 2020-11-09 15:13:51 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/ksysguard/-/merge_requests/53
Comment 3 David Redondo 2020-11-09 16:00:21 UTC
Git commit 57374fe5b159999aa2c4bfa3102db078e8829c00 by David Redondo.
Committed on 09/11/2020 at 15:13.
Pushed by davidre into branch 'master'.

Stop the daemon if we have no client

M  +3    -0    ksystemstats/ksysguarddaemon.cpp

https://invent.kde.org/plasma/ksysguard/commit/57374fe5b159999aa2c4bfa3102db078e8829c00
Comment 4 David Redondo 2020-11-09 16:01:25 UTC
Git commit beb9dc895a8417529902d6fae79c1402c47632b1 by David Redondo.
Committed on 09/11/2020 at 16:01.
Pushed by davidre into branch 'Plasma/5.20'.

Stop the daemon if we have no client


(cherry picked from commit 57374fe5b159999aa2c4bfa3102db078e8829c00)

M  +3    -0    ksystemstats/ksysguarddaemon.cpp

https://invent.kde.org/plasma/ksysguard/commit/beb9dc895a8417529902d6fae79c1402c47632b1