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

            Bug ID: 430726
           Summary: Plasma-systemmonitor gives wrong information about the
                    processes running under firejail
           Product: plasma-systemmonitor
           Version: unspecified
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: ksysguard-b...@kde.org
          Reporter: sepa...@gmail.com
                CC: ahiems...@heimr.nl, plasma-b...@kde.org
  Target Milestone: ---

First of all,thank you for developing this application.It's been a while that I
was looking for a nice graphical linux monitoring tool.

I don't know whether it's a priority for you to consider firejail or not,but
plasma-systemmonitor gives wrong information about programs running under
firejail.It might be because of the pid-namespace in which the firejail
programs reside(former KSysGuard have been doing it correctly,maybe because of
the daemon "ksysguardd" running as root in the background)

I think one of the main advantages of this new system-monitoring software is
that it can add up the mem usage of all processes of an application,the area in
which ksysguard was lacking.But it's almost useless for me as I mostly run my
programs under firejail.

So it would be a nice feature if it supports firejail and at the same time can
show the total memory usage(I have a custom script that makes use of the "smem"
tool and reports the total memory usage based on the process' PSS,and I'm sure
it's the most accurate one in terms of memory usage analysis.If I manually add
up the mem usage of all processes of an app shown by ksysguard,whether under
firejail or not,it's almost accurate,but in plasma-systemmonitor neither
"memory" nor "Private memory" works as intended for firejailed programs).



STEPS TO REPRODUCE
1. Install firejail
2. Run a program like firefox under firejail by running this: "firejail
firefox"
3. Compare the results shown by "plasma-systemmonitor" with this script:
```
sudo smem -t -a | grep -i firefox | awk 'NR!=1  {Total+=$(NF-1)} END
{if(Total!="") {print Total/1024" MB"} }'
```


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro 20.2
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1

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

Reply via email to