Summary: | Add per process power-related information in the process table | ||
---|---|---|---|
Product: | [Unmaintained] ksysguard | Reporter: | Luca Carlon <carlon.luca> |
Component: | general | Assignee: | KSysGuard Developers <ksysguard-bugs> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | wishlist | CC: | kde, nate |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | KSysGuard including per-process power consumption. |
Description
Luca Carlon
2019-08-14 16:48:22 UTC
Looks like a great idea. Are there any source code and build instructions available for those who want to test this feature? At the moment I just have a draft. I can improve it a bit and share. I would like to have some feedback from the community about the key points before working more on this. Do you think relying on some fork of powertop would be a good approach? Are there licensing issues? Would you prefer to have a fork of powertop in the form of a shared library or do you prefer to integrate the code. Do you think linking to libksysguard is ok or do we want a daemon with a dbus interface instead? Hello, this is just a draft of the architecture of what I imagined, but I guess it is simpler to get comments/critics by providing what I did. I added a few notes about the build procedure in my main repo: https://github.com/carlonluca/libksysguard. Powertop includes a training phase of a few minutes (on battery) where values are simply hidden (I guess): I'm currently missing this phase and I just provide values even if those are not probably accurate during it. I've never built the code outside my env yet, so please let me know if you see something is not working in the build phase. Luca, the infra we talked about https://phabricator.kde.org/D23287 Let me know if it works for you I have a similar version for doing global information. It probably is. I'll read more carefully. Do you also happen to have an example? At the moment I'm more worried about the other portion of the implementation. Multiple instances of KSysGuard are allowed, but I see only one KAuth helper process. There's an example here: D23288, but the network stats are probably a better example. We'll have one soon.
>Multiple instances of KSysGuard are allowed, but I see only one KAuth helper process.
I don't see why that needs to be an issue. I'm also not convinced we need kauth, just something suid - but we can discuss that on phab nearer the time.
It is not necessarily an issue, but that means I need to know how it works. The second instance of KSysGuard calls into the existing KAuth helper? Is it creating a new thread? This is something I need to know cause it means things must be thread-safe. I excepted two helper processes. If running an executable with suid bit is allowed, it would probably be a good option. I didn't do that cause some systems do not allow it, like Android, and also I think it is ignored with SELinux. But it would be better to design first and implement after, instead of implementing, redesigning and reimplementing. Are there other parts of Plasma using suid bit? Maybe KAuth itself? I don't think any of this is a showstopper to plugin integration, but the implementation may differ, and I can't therefore go on. I'll study what you provided. Thanks! ksysguard is no longer maintained, in Plasma 6 there is the Plasma system monitor for this task. If your wish is still valid for the Plasma 6 replacement, please re-open and we can move this bug to the new product, thanks! |