Bug 427204

Summary: idle shutdown ksystemstats daemon
Product: [Applications] plasma-systemmonitor Reporter: Harald Sitter <sitter>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: kde, nate, plasma-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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