Bug 482379 - GPU Usage and Memory Columns Don't work in System Monitors Processes Page
Summary: GPU Usage and Memory Columns Don't work in System Monitors Processes Page
Status: RESOLVED UPSTREAM
Alias: None
Product: ksystemstats
Classification: Frameworks and Libraries
Component: General (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-04 12:53 UTC by Dashon
Modified: 2024-03-24 17:59 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dashon 2024-03-04 12:53:32 UTC
SUMMARY
Testing plasma 6 using arch's testing repositories.
If you add the gpu usage and memory columns in the processes page of system monitor. They seem to be blank. I am on a nvidia gpu if that is effecting things. Seems similar to this bug https://bugs.kde.org/show_bug.cgi?id=466502. However, in that one the user is reporting how it is showing the wrong thing instead of nothing and I am using text only instead of the charts that that user mentioned.

STEPS TO REPRODUCE
1. Open system monitor.
2. Navigate to the processes page.
3. Edit columns
4. Add the gpu usage and memory columns

OBSERVED RESULT
These fields are blank at least they are on my nvidia rtx 3080

EXPECTED RESULT
They should report similar numbers to the nvtop program.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.6-zen1-2-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C95
System Version: 1.0
Comment 1 Nate Graham 2024-03-05 22:01:26 UTC
Maybe the data format changed again. :/
Comment 2 David Redondo 2024-03-06 08:08:48 UTC
Hi which nvidia-driver version are you using?

Can you provide a short excerpt of  nvidia-smi dmon -s pucm

thanks!
Comment 3 David Redondo 2024-03-06 08:09:04 UTC
Setting to needs-info
Comment 4 Dashon 2024-03-06 08:30:07 UTC
(In reply to David Redondo from comment #2)
> Hi which nvidia-driver version are you using?
> 
> Can you provide a short excerpt of  nvidia-smi dmon -s pucm
> 
> thanks!

Version: 550.54.14
Comment 5 David Redondo 2024-03-06 08:37:41 UTC
Hi, we still need 

 nvidia-smi dmon -s pucm

output. So I can check if it changed/can be parsed by current code
Comment 6 Dashon 2024-03-06 09:04:32 UTC
(In reply to David Redondo from comment #5)
> Hi, we still need 
> 
>  nvidia-smi dmon -s pucm
> 
> output. So I can check if it changed/can be parsed by current code

Sorry didn't see the second part of your message. Here is some of the output since it keeps going forever:
# gpu    pwr  gtemp  mtemp     sm    mem    enc    dec    jpg    ofa   mclk   pclk     fb   bar1   ccpm
# Idx      W      C      C      %      %      %      %      %      %    MHz    MHz     MB     MB     MB
0     25     39      -      9     19      0      0      0      0    405    210   1800     57      0
0     25     39      -      9     19      0      0      0      0    405    210   1800     57      0
0     25     39      -      9     19      0      0      0      0    405    210   1800     57      0
0     25     39      -      7     19      0      0      0      0    405    210   1800     57      0
0     25     39      -      9     19      0      0      0      0    405    210   1800     57      0
0     24     39      -      9     19      0      0      0      0    405    210   1800     57      0
0     25     39      -      9     19      0      0      0      0    405    210   1800     57      0
0     24     39      -     10     19      0      0      0      0    405    210   1800     57      0
0     25     39      -     10     19      0      0      0      0    405    210   1800     57      0
0     24     39      -      9     19      0      0      0      0    405    210   1800     57      0
0     24     39      -     10     19      0      0      0      0    405    210   1800     57      0
Comment 7 Dashon 2024-03-06 12:22:53 UTC
Upon review I see that the kwin_wayland process is showing a percentage for gpu usage and gpu memory and plasma-systemmonitor is showing a percentage for gpu usage but not gpu memory. Those are the only two processes showing anything for those two columns.
Comment 8 David Redondo 2024-03-06 12:54:08 UTC
> Upon review I see that the kwin_wayland process is showing a percentage for gpu usage and gpu memory and plasma-systemmonitor is showing a percentage for gpu usage but not gpu memory. Those are the only two processes showing anything for those two columns.

Not showing anything means 0.

I told you earlier the wrong command. For processes it should be

nvidia-smi pmon

if that is also 0 everywhere else, it means things are really 0.
Comment 9 Dashon 2024-03-06 12:55:44 UTC
(In reply to David Redondo from comment #8)
> > Upon review I see that the kwin_wayland process is showing a percentage for gpu usage and gpu memory and plasma-systemmonitor is showing a percentage for gpu usage but not gpu memory. Those are the only two processes showing anything for those two columns.
> 
> Not showing anything means 0.
> 
> I told you earlier the wrong command. For processes it should be
> 
> nvidia-smi pmon
> 
> if that is also 0 everywhere else, it means things are really 0.

Here is some of the output of that command 
# gpu         pid   type     sm    mem    enc    dec    jpg    ofa    command
# Idx           #    C/G      %      %      %      %      %      %    name
0       5177     G      -      -      -      -      -      -    Xorg
0       5311     G     56     47      -      -      -      -    kwin_wayland
0       5447     G      -      -      -      -      -      -    Xwayland
0       5473     G      -      -      -      -      -      -    ksmserver
0       5475     G      -      -      -      -      -      -    kded6
0       5515     G      -      -      -      -      -      -    kactivitymanage
0       5551     G      -      -      -      -      -      -    polkit-kde-auth
0       5552     G      -      -      -      -      -      -    org_kde_powerde
0       5553     G      -      -      -      -      -      -    xdg-desktop-por
0       7553     G      -      -      -      -      -      -    kclockd
0       7556   C+G      -      -      -      -      -      -    xwaylandvideobr
0       7557     G      -      -      -      -      -      -    yakuake
0       7566     G      -      -      -      -      -      -    kaccess
0       7568     G      -      -      -      -      -      -    kalendarac
0       7633     G      -      -      -      -      -      -    akonadi_control
0       7719     G      -      -      -      -      -      -    akonadi_akonote
0       7720     G      -      -      -      -      -      -    akonadi_birthda
0       7721     G      -      -      -      -      -      -    akonadi_contact
0       7722     G      -      -      -      -      -      -    akonadi_ical_re
0       7723     G      -      -      -      -      -      -    akonadi_indexin
0       7724     G      -      -      -      -      -      -    akonadi_maildir
0       7725     G      -      -      -      -      -      -    akonadi_maildis
0       7726     G      -      -      -      -      -      -    akonadi_migrati
0       7727     G      -      -      -      -      -      -    akonadi_newmail
0       7862     G      -      -      -      -      -      -    krunner
0       8618     G      -      -      -      -      -      -    firefox
0       9047     G      -      -      -      -      -      -    plasma-browser-
0       9344     G      -      -      -      -      -      -    firefox
0       9742     G      -      -      -      -      -      -    firefox
0      10903     G      -      -      -      -      -      -    kiod6
0      10911     G      -      -      -      -      -      -    kwalletd6
0      25763   C+G      -      -      -      -      -      -    sunshine
0      85122     G      -      -      -      -      -      -    python
0     109291     G      -      -      -      -      -      -    dolphin
0     111116     G      -      -      -      -      -      -    cpu-x
0     166770     G      -      -      -      -      -      -    konsole
0     201950     G      -      -      -      -      -      -    dolphin
0     264433     G      -      -      -      -      -      -    dolphin
0     598280     G      -      -      -      -      -      -    plasmashell
0     598370     G      -      -      -      -      -      -    kdeconnectd
0     674593     C      -      -      -      -      -      -    python3
0     680069     G      -      -      -      -      -      -    baloorunner
0     782651     G      -      -      -      -      -      -    mpv
0       5177     G      -      -      -      -      -      -    Xorg
# gpu         pid   type     sm    mem    enc    dec    jpg    ofa    command
# Idx           #    C/G      %      %      %      %      %      %    name
0       5311     G     56     47      -      -      -      -    kwin_wayland
0       5447     G      -      -      -      -      -      -    Xwayland
0       5473     G      -      -      -      -      -      -    ksmserver
0       5475     G      -      -      -      -      -      -    kded6
0       5515     G      -      -      -      -      -      -    kactivitymanage
0       5551     G      -      -      -      -      -      -    polkit-kde-auth
0       5552     G      -      -      -      -      -      -    org_kde_powerde
0       5553     G      -      -      -      -      -      -    xdg-desktop-por
0       7553     G      -      -      -      -      -      -    kclockd
0       7556   C+G      -      -      -      -      -      -    xwaylandvideobr
0       7557     G      -      -      -      -      -      -    yakuake
0       7566     G      -      -      -      -      -      -    kaccess
0       7568     G      -      -      -      -      -      -    kalendarac
0       7633     G      -      -      -      -      -      -    akonadi_control
0       7719     G      -      -      -      -      -      -    akonadi_akonote
0       7720     G      -      -      -      -      -      -    akonadi_birthda
0       7721     G      -      -      -      -      -      -    akonadi_contact
0       7722     G      -      -      -      -      -      -    akonadi_ical_re
0       7723     G      -      -      -      -      -      -    akonadi_indexin
0       7724     G      -      -      -      -      -      -    akonadi_maildir
0       7725     G      -      -      -      -      -      -    akonadi_maildis
0       7726     G      -      -      -      -      -      -    akonadi_migrati
0       7727     G      -      -      -      -      -      -    akonadi_newmail
0       7862     G      -      -      -      -      -      -    krunner
0       8618     G      -      -      -      -      -      -    firefox
0       9047     G      -      -      -      -      -      -    plasma-browser-
0       9344     G      -      -      -      -      -      -    firefox
0       9742     G      -      -      -      -      -      -    firefox
0      10903     G      -      -      -      -      -      -    kiod6
0      10911     G      -      -      -      -      -      -    kwalletd6
0      25763   C+G      -      -      -      -      -      -    sunshine
0      85122     G      -      -      -      -      -      -    python
0     109291     G      -      -      -      -      -      -    dolphin
0     111116     G      -      -      -      -      -      -    cpu-x
0     166770     G      -      -      -      -      -      -    konsole
0     201950     G      -      -      -      -      -      -    dolphin
0     264433     G      -      -      -      -      -      -    dolphin
0     598280     G      -      -      -      -      -      -    plasmashell
0     598370     G      -      -      -      -      -      -    kdeconnectd
0     674593     C      -      -      -      -      -      -    python3
0     680069     G      -      -      -      -      -      -    baloorunner
0     782651     G      -      -      -      -      -      -    mpv
0       5177     G      -      -      -      -      -      -    Xorg
0       5311     G      -      -      -      -      -      -    kwin_wayland
# gpu         pid   type     sm    mem    enc    dec    jpg    ofa    command
# Idx           #    C/G      %      %      %      %      %      %    name
0       5447     G      -      -      -      -      -      -    Xwayland
0       5473     G      -      -      -      -      -      -    ksmserver
0       5475     G      -      -      -      -      -      -    kded6
0       5515     G      -      -      -      -      -      -    kactivitymanage
0       5551     G      -      -      -      -      -      -    polkit-kde-auth
0       5552     G      -      -      -      -      -      -    org_kde_powerde
0       5553     G      -      -      -      -      -      -    xdg-desktop-por
0       7553     G      -      -      -      -      -      -    kclockd
0       7556   C+G      -      -      -      -      -      -    xwaylandvideobr
0       7557     G      -      -      -      -      -      -    yakuake
0       7566     G      -      -      -      -      -      -    kaccess
0       7568     G      -      -      -      -      -      -    kalendarac
0       7633     G      -      -      -      -      -      -    akonadi_control
0       7719     G      -      -      -      -      -      -    akonadi_akonote
0       7720     G      -      -      -      -      -      -    akonadi_birthda
0       7721     G      -      -      -      -      -      -    akonadi_contact
0       7722     G      -      -      -      -      -      -    akonadi_ical_re
0       7723     G      -      -      -      -      -      -    akonadi_indexin
0       7724     G      -      -      -      -      -      -    akonadi_maildir
0       7725     G      -      -      -      -      -      -    akonadi_maildis
0       7726     G      -      -      -      -      -      -    akonadi_migrati
0       7727     G      -      -      -      -      -      -    akonadi_newmail
0       7862     G      -      -      -      -      -      -    krunner
0       8618     G      -      -      -      -      -      -    firefox
0       9047     G      -      -      -      -      -      -    plasma-browser-
0       9344     G      -      -      -      -      -      -    firefox
0       9742     G      -      -      -      -      -      -    firefox
0      10903     G      -      -      -      -      -      -    kiod6
0      10911     G      -      -      -      -      -      -    kwalletd6
0      25763   C+G      -      -      -      -      -      -    sunshine
0      85122     G      -      -      -      -      -      -    python
0     109291     G      -      -      -      -      -      -    dolphin
0     111116     G      -      -      -      -      -      -    cpu-x
0     166770     G      -      -      -      -      -      -    konsole
0     201950     G      -      -      -      -      -      -    dolphin
0     264433     G      -      -      -      -      -      -    dolphin
0     598280     G      -      -      -      -      -      -    plasmashell
0     598370     G      -      -      -      -      -      -    kdeconnectd
0     674593     C      -      -      -      -      -      -    python3
0     680069     G      -      -      -      -      -      -    baloorunner
0     782651     G      -      -      -      -      -      -    mpv
0       5177     G      -      -      -      -      -      -    Xorg
0       5311     G      -      -      -      -      -      -    kwin_wayland
0       5447     G      -      -      -      -      -      -    Xwayland
# gpu         pid   type     sm    mem    enc    dec    jpg    ofa    command
# Idx           #    C/G      %      %      %      %      %      %    name
0       5473     G      -      -      -      -      -      -    ksmserver
0       5475     G      -      -      -      -      -      -    kded6
0       5515     G      -      -      -      -      -      -    kactivitymanage
0       5551     G      -      -      -      -      -      -    polkit-kde-auth
0       5552     G      -      -      -      -      -      -    org_kde_powerde
0       5553     G      -      -      -      -      -      -    xdg-desktop-por
0       7553     G      -      -      -      -      -      -    kclockd
0       7556   C+G      -      -      -      -      -      -    xwaylandvideobr
0       7557     G      -      -      -      -      -      -    yakuake
0       7566     G      -      -      -      -      -      -    kaccess
0       7568     G      -      -      -      -      -      -    kalendarac
0       7633     G      -      -      -      -      -      -    akonadi_control
0       7719     G      -      -      -      -      -      -    akonadi_akonote
0       7720     G      -      -      -      -      -      -    akonadi_birthda
0       7721     G      -      -      -      -      -      -    akonadi_contact
0       7722     G      -      -      -      -      -      -    akonadi_ical_re
0       7723     G      -      -      -      -      -      -    akonadi_indexin
0       7724     G      -      -      -      -      -      -    akonadi_maildir
0       7725     G      -      -      -      -      -      -    akonadi_maildis
0       7726     G      -      -      -      -      -      -    akonadi_migrati
0       7727     G      -      -      -      -      -      -    akonadi_newmail
0       7862     G      -      -      -      -      -      -    krunner
0       8618     G      -      -      -      -      -      -    firefox
0       9047     G      -      -      -      -      -      -    plasma-browser-
0       9344     G      -      -      -      -      -      -    firefox
0       9742     G      -      -      -      -      -      -    firefox
0      10903     G      -      -      -      -      -      -    kiod6
0      10911     G      -      -      -      -      -      -    kwalletd6
0      25763   C+G      -      -      -      -      -      -    sunshine
0      85122     G      -      -      -      -      -      -    python
0     109291     G      -      -      -      -      -      -    dolphin
0     111116     G      -      -      -      -      -      -    cpu-x
0     166770     G      -      -      -      -      -      -    konsole
0     201950     G      -      -      -      -      -      -    dolphin
0     264433     G      -      -      -      -      -      -    dolphin
0     598280     G      -      -      -      -      -      -    plasmashell
0     598370     G      -      -      -      -      -      -    kdeconnectd
0     674593     C      -      -      -      -      -      -    python3
0     680069     G      -      -      -      -      -      -    baloorunner
0     782651     G      -      -      -      -      -      -    mpv
0       5177     G      -      -      -      -      -      -    Xorg
0       5311     G     20     26      -      -      -      -    kwin_wayland
0       5447     G      -      -      -      -      -      -    Xwayland
0       5473     G      -      -      -      -      -      -    ksmserver
# gpu         pid   type     sm    mem    enc    dec    jpg    ofa    command
# Idx           #    C/G      %      %      %      %      %      %    name
0       5475     G      -      -      -      -      -      -    kded6
0       5515     G      -      -      -      -      -      -    kactivitymanage
0       5551     G      -      -      -      -      -      -    polkit-kde-auth
0       5552     G      -      -      -      -      -      -    org_kde_powerde
0       5553     G      -      -      -      -      -      -    xdg-desktop-por
0       7553     G      -      -      -      -      -      -    kclockd
0       7556   C+G      -      -      -      -      -      -    xwaylandvideobr
0       7557     G      -      -      -      -      -      -    yakuake
0       7566     G      -      -      -      -      -      -    kaccess
0       7568     G      -      -      -      -      -      -    kalendarac
0       7633     G      -      -      -      -      -      -    akonadi_control
0       7719     G      -      -      -      -      -      -    akonadi_akonote
0       7720     G      -      -      -      -      -      -    akonadi_birthda
0       7721     G      -      -      -      -      -      -    akonadi_contact
0       7722     G      -      -      -      -      -      -    akonadi_ical_re
0       7723     G      -      -      -      -      -      -    akonadi_indexin
0       7724     G      -      -      -      -      -      -    akonadi_maildir
0       7725     G      -      -      -      -      -      -    akonadi_maildis
0       7726     G      -      -      -      -      -      -    akonadi_migrati
0       7727     G      -      -      -      -      -      -    akonadi_newmail
0       7862     G      -      -      -      -      -      -    krunner
0       8618     G      -      -      -      -      -      -    firefox
0       9047     G      -      -      -      -      -      -    plasma-browser-
0       9344     G      -      -      -      -      -      -    firefox
0       9742     G      -      -      -      -      -      -    firefox
0      10903     G      -      -      -      -      -      -    kiod6
0      10911     G      -      -      -      -      -      -    kwalletd6
0      25763   C+G      -      -      -      -      -      -    sunshine
0      85122     G      -      -      -      -      -      -    python
0     109291     G      -      -      -      -      -      -    dolphin
0     111116     G      -      -      -      -      -      -    cpu-x
0     166770     G      -      -      -      -      -      -    konsole
0     201950     G      -      -      -      -      -      -    dolphin
0     264433     G      -      -      -      -      -      -    dolphin
0     598280     G      -      -      -      -      -      -    plasmashell
0     598370     G      -      -      -      -      -      -    kdeconnectd
0     674593     C      -      -      -      -      -      -    python3
0     680069     G      -      -      -      -      -      -    baloorunner
0     782651     G      -      -      -      -      -      -    mpv
0       5177     G      -      -      -      -      -      -    Xorg
0       5311     G      -      -      -      -      -      -    kwin_wayland
0       5447     G      -      -      -      -      -      -    Xwayland
0       5473     G      -      -      -      -      -      -    ksmserver
0       5475     G      -      -      -      -      -      -    kded6
# gpu         pid   type     sm    mem    enc    dec    jpg    ofa    command
# Idx           #    C/G      %      %      %      %      %      %    name
0       5515     G      -      -      -      -      -      -    kactivitymanage
0       5551     G      -      -      -      -      -      -    polkit-kde-auth
0       5552     G      -      -      -      -      -      -    org_kde_powerde
0       5553     G      -      -      -      -      -      -    xdg-desktop-por
0       7553     G      -      -      -      -      -      -    kclockd
0       7556   C+G      -      -      -      -      -      -    xwaylandvideobr
0       7557     G      -      -      -      -      -      -    yakuake
0       7566     G      -      -      -      -      -      -    kaccess
0       7568     G      -      -      -      -      -      -    kalendarac
0       7633     G      -      -      -      -      -      -    akonadi_control
0       7719     G      -      -      -      -      -      -    akonadi_akonote
0       7720     G      -      -      -      -      -      -    akonadi_birthda
0       7721     G      -      -      -      -      -      -    akonadi_contact
0       7722     G      -      -      -      -      -      -    akonadi_ical_re
0       7723     G      -      -      -      -      -      -    akonadi_indexin
0       7724     G      -      -      -      -      -      -    akonadi_maildir
0       7725     G      -      -      -      -      -      -    akonadi_maildis
0       7726     G      -      -      -      -      -      -    akonadi_migrati
0       7727     G      -      -      -      -      -      -    akonadi_newmail
0       7862     G      -      -      -      -      -      -    krunner
0       8618     G      -      -      -      -      -      -    firefox
0       9047     G      -      -      -      -      -      -    plasma-browser-
0       9344     G      -      -      -      -      -      -    firefox
0       9742     G      -      -      -      -      -      -    firefox
0      10903     G      -      -      -      -      -      -    kiod6
0      10911     G      -      -      -      -      -      -    kwalletd6
0      25763   C+G      -      -      -      -      -      -    sunshine
0      85122     G      -      -      -      -      -      -    python
0     109291     G      -      -      -      -      -      -    dolphin
0     111116     G      -      -      -      -      -      -    cpu-x
0     166770     G      -      -      -      -      -      -    konsole
0     201950     G      -      -      -      -      -      -    dolphin
0     264433     G      -      -      -      -      -      -    dolphin
0     598280     G      -      -      -      -      -      -    plasmashell
0     598370     G      -      -      -      -      -      -    kdeconnectd
0     674593     C      -      -      -      -      -      -    python3
0     680069     G      -      -      -      -      -      -    baloorunner
0     782651     G      -      -      -      -      -      -    mpv
0       5177     G      -      -      -      -      -      -    Xorg
0       5311     G      -      -      -      -      -      -    kwin_wayland
0       5447     G      -      -      -      -      -      -    Xwayland
0       5473     G      -      -      -      -      -      -    ksmserver
0       5475     G      -      -      -      -      -      -    kded6
0       5515     G      -      -      -      -      -      -    kactivitymanage
# gpu         pid   type     sm    mem    enc    dec    jpg    ofa    command
# Idx           #    C/G      %      %      %      %      %      %    name
0       5551     G      -      -      -      -      -      -    polkit-kde-auth
0       5552     G      -      -      -      -      -      -    org_kde_powerde
0       5553     G      -      -      -      -      -      -    xdg-desktop-por
0       7553     G      -      -      -      -      -      -    kclockd
0       7556   C+G      -      -      -      -      -      -    xwaylandvideobr
0       7557     G      -      -      -      -      -      -    yakuake
0       7566     G      -      -      -      -      -      -    kaccess
0       7568     G      -      -      -      -      -      -    kalendarac
0       7633     G      -      -      -      -      -      -    akonadi_control
0       7719     G      -      -      -      -      -      -    akonadi_akonote
0       7720     G      -      -      -      -      -      -    akonadi_birthda
0       7721     G      -      -      -      -      -      -    akonadi_contact
0       7722     G      -      -      -      -      -      -    akonadi_ical_re
0       7723     G      -      -      -      -      -      -    akonadi_indexin
0       7724     G      -      -      -      -      -      -    akonadi_maildir
0       7725     G      -      -      -      -      -      -    akonadi_maildis
0       7726     G      -      -      -      -      -      -    akonadi_migrati
0       7727     G      -      -      -      -      -      -    akonadi_newmail
0       7862     G      -      -      -      -      -      -    krunner
0       8618     G      -      -      -      -      -      -    firefox
0       9047     G      -      -      -      -      -      -    plasma-browser-
0       9344     G      -      -      -      -      -      -    firefox
0       9742     G      -      -      -      -      -      -    firefox
0      10903     G      -      -      -      -      -      -    kiod6
0      10911     G      -      -      -      -      -      -    kwalletd6
0      25763   C+G      -      -      -      -      -      -    sunshine
0      85122     G      -      -      -      -      -      -    python
0     109291     G      -      -      -      -      -      -    dolphin
0     111116     G      -      -      -      -      -      -    cpu-x
0     166770     G      -      -      -      -      -      -    konsole
0     201950     G      -      -      -      -      -      -    dolphin
0     264433     G      -      -      -      -      -      -    dolphin
0     598280     G      -      -      -      -      -      -    plasmashell
0     598370     G      -      -      -      -      -      -    kdeconnectd
0     674593     C      -      -      -      -      -      -    python3
0     680069     G      -      -      -      -      -      -    baloorunner
0     782651     G      -      -      -      -      -      -    mpv
0       5177     G      -      -      -      -      -      -    Xorg
0       5311     G     11     21      -      -      -      -    kwin_wayland
0       5447     G      -      -      -      -      -      -    Xwayland
0       5473     G      -      -      -      -      -      -    ksmserver
0       5475     G      -      -      -      -      -      -    kded6
0       5515     G      -      -      -      -      -      -    kactivitymanage
0       5551     G      -      -      -      -      -      -    polkit-kde-auth
# gpu         pid   type     sm    mem    enc    dec    jpg    ofa    command
# Idx           #    C/G      %      %      %      %      %      %    name
0       5552     G      -      -      -      -      -      -    org_kde_powerde
0       5553     G      -      -      -      -      -      -    xdg-desktop-por
0       7553     G      -      -      -      -      -      -    kclockd
0       7556   C+G      -      -      -      -      -      -    xwaylandvideobr
0       7557     G      -      -      -      -      -      -    yakuake
0       7566     G      -      -      -      -      -      -    kaccess
0       7568     G      -      -      -      -      -      -    kalendarac
0       7633     G      -      -      -      -      -      -    akonadi_control
0       7719     G      -      -      -      -      -      -    akonadi_akonote
0       7720     G      -      -      -      -      -      -    akonadi_birthda
0       7721     G      -      -      -      -      -      -    akonadi_contact
0       7722     G      -      -      -      -      -      -    akonadi_ical_re
0       7723     G      -      -      -      -      -      -    akonadi_indexin
0       7724     G      -      -      -      -      -      -    akonadi_maildir
0       7725     G      -      -      -      -      -      -    akonadi_maildis
0       7726     G      -      -      -      -      -      -    akonadi_migrati
0       7727     G      -      -      -      -      -      -    akonadi_newmail
0       7862     G      -      -      -      -      -      -    krunner
0       8618     G      -      -      -      -      -      -    firefox
0       9047     G      -      -      -      -      -      -    plasma-browser-
0       9344     G      -      -      -      -      -      -    firefox
0       9742     G      -      -      -      -      -      -    firefox
0      10903     G      -      -      -      -      -      -    kiod6
0      10911     G      -      -      -      -      -      -    kwalletd6
0      25763   C+G      -      -      -      -      -      -    sunshine
0      85122     G      -      -      -      -      -      -    python
0     109291     G      -      -      -      -      -      -    dolphin
0     111116     G      -      -      -      -      -      -    cpu-x
0     166770     G      -      -      -      -      -      -    konsole
0     201950     G      -      -      -      -      -      -    dolphin
0     264433     G      -      -      -      -      -      -    dolphin
0     598280     G      -      -      -      -      -      -    plasmashell
0     598370     G      -      -      -      -      -      -    kdeconnectd
0     674593     C      -      -      -      -      -      -    python3
0     680069     G      -      -      -      -      -      -    baloorunner
0     782651     G      -      -      -      -      -      -    mpv
0       5177     G      -      -      -      -      -      -    Xorg
0       5311     G     19     25      -      -      -      -    kwin_wayland
0       5447     G      -      -      -      -      -      -    Xwayland
0       5473     G      -      -      -      -      -      -    ksmserver
0       5475     G      -      -      -      -      -      -    kded6
0       5515     G      -      -      -      -      -      -    kactivitymanage
0       5551     G      -      -      -      -      -      -    polkit-kde-auth
0       5552     G      -      -      -      -      -      -    org_kde_powerde
# gpu         pid   type     sm    mem    enc    dec    jpg    ofa    command
# Idx           #    C/G      %      %      %      %      %      %    name
0       5553     G      -      -      -      -      -      -    xdg-desktop-por
0       7553     G      -      -      -      -      -      -    kclockd
0       7556   C+G      -      -      -      -      -      -    xwaylandvideobr
0       7557     G      -      -      -      -      -      -    yakuake
0       7566     G      -      -      -      -      -      -    kaccess
0       7568     G      -      -      -      -      -      -    kalendarac
0       7633     G      -      -      -      -      -      -    akonadi_control
0       7719     G      -      -      -      -      -      -    akonadi_akonote
0       7720     G      -      -      -      -      -      -    akonadi_birthda
0       7721     G      -      -      -      -      -      -    akonadi_contact
0       7722     G      -      -      -      -      -      -    akonadi_ical_re
0       7723     G      -      -      -      -      -      -    akonadi_indexin
0       7724     G      -      -      -      -      -      -    akonadi_maildir
0       7725     G      -      -      -      -      -      -    akonadi_maildis
0       7726     G      -      -      -      -      -      -    akonadi_migrati
0       7727     G      -      -      -      -      -      -    akonadi_newmail
0       7862     G      -      -      -      -      -      -    krunner
0       8618     G      -      -      -      -      -      -    firefox
0       9047     G      -      -      -      -      -      -    plasma-browser-
0       9344     G      -      -      -      -      -      -    firefox
0       9742     G      -      -      -      -      -      -    firefox
0      10903     G      -      -      -      -      -      -    kiod6
0      10911     G      -      -      -      -      -      -    kwalletd6
0      25763   C+G      -      -      -      -      -      -    sunshine
0      85122     G      -      -      -      -      -      -    python
0     109291     G      -      -      -      -      -      -    dolphin
0     111116     G      -      -      -      -      -      -    cpu-x
0     166770     G      -      -      -      -      -      -    konsole
0     201950     G      -      -      -      -      -      -    dolphin
0     264433     G      -      -      -      -      -      -    dolphin
0     598280     G      -      -      -      -      -      -    plasmashell
0     598370     G      -      -      -      -      -      -    kdeconnectd
0     674593     C      -      -      -      -      -      -    python3
0     680069     G      -      -      -      -      -      -    baloorunner
0     782651     G      -      -      -      -      -      -    mpv
0       5177     G      -      -      -      -      -      -    Xorg
0       5311     G     33     30      -      -      -      -    kwin_wayland
0       5447     G      -      -      -      -      -      -    Xwayland
0       5473     G      -      -      -      -      -      -    ksmserver
0       5475     G      -      -      -      -      -      -    kded6
0       5515     G      -      -      -      -      -      -    kactivitymanage
0       5551     G      -      -      -      -      -      -    polkit-kde-auth
0       5552     G      -      -      -      -      -      -    org_kde_powerde
0       5553     G      -      -      -      -      -      -    xdg-desktop-por
# gpu         pid   type     sm    mem    enc    dec    jpg    ofa    command
# Idx           #    C/G      %      %      %      %      %      %    name
0       7553     G      -      -      -      -      -      -    kclockd
0       7556   C+G      -      -      -      -      -      -    xwaylandvideobr
0       7557     G      -      -      -      -      -      -    yakuake
0       7566     G      -      -      -      -      -      -    kaccess
0       7568     G      -      -      -      -      -      -    kalendarac
0       7633     G      -      -      -      -      -      -    akonadi_control
0       7719     G      -      -      -      -      -      -    akonadi_akonote
0       7720     G      -      -      -      -      -      -    akonadi_birthda
0       7721     G      -      -      -      -      -      -    akonadi_contact
0       7722     G      -      -      -      -      -      -    akonadi_ical_re
0       7723     G      -      -      -      -      -      -    akonadi_indexin
0       7724     G      -      -      -      -      -      -    akonadi_maildir
0       7725     G      -      -      -      -      -      -    akonadi_maildis
0       7726     G      -      -      -      -      -      -    akonadi_migrati
0       7727     G      -      -      -      -      -      -    akonadi_newmail
0       7862     G      -      -      -      -      -      -    krunner
0       8618     G      -      -      -      -      -      -    firefox
0       9047     G      -      -      -      -      -      -    plasma-browser-
0       9344     G      -      -      -      -      -      -    firefox
0       9742     G      -      -      -      -      -      -    firefox
0      10903     G      -      -      -      -      -      -    kiod6
0      10911     G      -      -      -      -      -      -    kwalletd6
0      25763   C+G      -      -      -      -      -      -    sunshine
0      85122     G      -      -      -      -      -      -    python
0     109291     G      -      -      -      -      -      -    dolphin
0     111116     G      -      -      -      -      -      -    cpu-x
0     166770     G      -      -      -      -      -      -    konsole
0     201950     G      -      -      -      -      -      -    dolphin
0     264433     G      -      -      -      -      -      -    dolphin
0     598280     G      -      -      -      -      -      -    plasmashell
0     598370     G      -      -      -      -      -      -    kdeconnectd
0     674593     C      -      -      -      -      -      -    python3
0     680069     G      -      -      -      -      -      -    baloorunner
0     782651     G      -      -      -      -      -      -    mpv
Comment 10 Dashon 2024-03-06 12:57:46 UTC
(In reply to David Redondo from comment #8)
> > Upon review I see that the kwin_wayland process is showing a percentage for gpu usage and gpu memory and plasma-systemmonitor is showing a percentage for gpu usage but not gpu memory. Those are the only two processes showing anything for those two columns.
> 
> Not showing anything means 0.
> 
> I told you earlier the wrong command. For processes it should be
> 
> nvidia-smi pmon
> 
> if that is also 0 everywhere else, it means things are really 0.

That seems kind of weird. I can see in nvtop that stable diffusion is using about 2 gigs worth of vram, but nothing in system monitor.
Comment 11 David Redondo 2024-03-06 13:06:57 UTC
We rely on what nvidia-smi reports. Not sure where nvtop gets the info.
Comment 12 Dashon 2024-03-06 13:09:26 UTC
Another thing I am noticing is that the process kwin_wayland is reporting 40% gpu usage and 35% gpu memory usage. These numbers aren't changing. While nvtop and cpu-x are reporting different numbers as the amount of graphics usage and memory changes. I was suspicious of this so I restarted system monitor. Now kwin_wayland reports nothing while firefox is reporting an unmoving 20% gpu usage and 15% memory usage. The numbers don't appear to be updating at all. While the vast majority of process that nvtop reports as using some amount of gpu resources report nothing.
Comment 13 Dashon 2024-03-06 13:11:24 UTC
(In reply to David Redondo from comment #11)
> We rely on what nvidia-smi reports. Not sure where nvtop gets the info.

Understandable, I took a look at their github page and I believe they use the nvml library directly. Supposedly the same library that nvidia-smi uses. However, if I run nvidia-smi by itself with no args. The output looks like this
Wed Mar  6 07:08:59 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.14              Driver Version: 550.54.14      CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3080        Off |   00000000:2B:00.0  On |                  N/A |
| 40%   39C    P8             26W /  320W |    1847MiB /  10240MiB |     24%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      5177      G   /usr/lib/Xorg                                  34MiB |
|    0   N/A  N/A      5311      G   /usr/bin/kwin_wayland                         200MiB |
|    0   N/A  N/A      5447      G   /usr/bin/Xwayland                              23MiB |
|    0   N/A  N/A      5473      G   /usr/bin/ksmserver                              3MiB |
|    0   N/A  N/A      5475      G   /usr/bin/kded6                                  3MiB |
|    0   N/A  N/A      5515      G   /usr/lib/kactivitymanagerd                      3MiB |
|    0   N/A  N/A      5551      G   ...b/polkit-kde-authentication-agent-1          3MiB |
|    0   N/A  N/A      5552      G   /usr/lib/org_kde_powerdevil                     3MiB |
|    0   N/A  N/A      5553      G   /usr/lib/xdg-desktop-portal-kde                36MiB |
|    0   N/A  N/A      7553      G   /usr/bin/kclockd                                3MiB |
|    0   N/A  N/A      7556    C+G   /usr/bin/xwaylandvideobridge                   15MiB |
|    0   N/A  N/A      7557      G   /usr/bin/yakuake                                3MiB |
|    0   N/A  N/A      7566      G   /usr/bin/kaccess                                3MiB |
|    0   N/A  N/A      7568      G   /usr/bin/kalendarac                             3MiB |
|    0   N/A  N/A      7633      G   /usr/bin/akonadi_control                        3MiB |
|    0   N/A  N/A      7719      G   /usr/bin/akonadi_akonotes_resource              3MiB |
|    0   N/A  N/A      7720      G   /usr/bin/akonadi_birthdays_resource             3MiB |
|    0   N/A  N/A      7721      G   /usr/bin/akonadi_contacts_resource              3MiB |
|    0   N/A  N/A      7722      G   /usr/bin/akonadi_ical_resource                  3MiB |
|    0   N/A  N/A      7723      G   /usr/bin/akonadi_indexing_agent                 3MiB |
|    0   N/A  N/A      7724      G   /usr/bin/akonadi_maildir_resource               3MiB |
|    0   N/A  N/A      7725      G   /usr/bin/akonadi_maildispatcher_agent           3MiB |
|    0   N/A  N/A      7726      G   /usr/bin/akonadi_migration_agent                3MiB |
|    0   N/A  N/A      7727      G   /usr/bin/akonadi_newmailnotifier_agent          3MiB |
|    0   N/A  N/A      7862      G   /usr/bin/krunner                               36MiB |
|    0   N/A  N/A      8618      G   /usr/lib/firefox/firefox                      364MiB |
|    0   N/A  N/A      9047      G   ...bin/plasma-browser-integration-host          3MiB |
|    0   N/A  N/A      9344      G   /usr/lib/firefox/firefox                      318MiB |
|    0   N/A  N/A      9742      G   /usr/lib/firefox/firefox                        3MiB |
|    0   N/A  N/A     10903      G   /usr/lib/kf6/kiod6                              3MiB |
|    0   N/A  N/A     10911      G   /usr/bin/kwalletd6                              3MiB |
|    0   N/A  N/A     25763    C+G   /usr/bin/sunshine                             219MiB |
|    0   N/A  N/A     85122      G   /usr/bin/python                                 3MiB |
|    0   N/A  N/A    109291      G   /usr/bin/dolphin                                4MiB |
|    0   N/A  N/A    111116      G   /usr/bin/cpu-x                                  3MiB |
|    0   N/A  N/A    166770      G   /usr/bin/konsole                                3MiB |
|    0   N/A  N/A    201950      G   /usr/bin/dolphin                                3MiB |
|    0   N/A  N/A    264433      G   /usr/bin/dolphin                                3MiB |
|    0   N/A  N/A    598280      G   /usr/bin/plasmashell                          151MiB |
|    0   N/A  N/A    598370      G   /usr/lib/kdeconnectd                            3MiB |
|    0   N/A  N/A    680069      G   /usr/lib/baloorunner                            3MiB |
|    0   N/A  N/A    782651      G   /usr/bin/mpv                                   20MiB |
|    0   N/A  N/A    809277      G   /usr/bin/plasma-systemmonitor                  99MiB |
+-----------------------------------------------------------------------------------------+
It clearly list some amount of resource usage next to a number of processes. Perhaps the formatted output command is somehow messed up?
Comment 14 Dashon 2024-03-06 13:13:11 UTC
Or are these values just too small to bother reporting a percentage above zero?
Comment 15 David Redondo 2024-03-06 14:20:22 UTC
If it's stable_diffusion maybe there is a distinction between compute and graphics?
Comment 16 Dashon 2024-03-06 14:21:48 UTC
(In reply to David Redondo from comment #15)
> If it's stable_diffusion maybe there is a distinction between compute and
> graphics?

Your guess is as good as mine here? I just new it used a lot of vram, so it would probably be good to test with.
Comment 17 David Redondo 2024-03-06 14:23:46 UTC
Could it be that nvidia-smi pmon somehow accounts the memory that is used by stable diffusion to kwin_wayland?

|    0   N/A  N/A      5311      G   /usr/bin/kwin_wayland                         200MiB |
That should be only around 2% and not the 40% it shows earlier.
Comment 18 Dashon 2024-03-06 14:25:48 UTC
(In reply to David Redondo from comment #17)
> Could it be that nvidia-smi pmon somehow accounts the memory that is used by
> stable diffusion to kwin_wayland?
> 
> |    0   N/A  N/A      5311      G   /usr/bin/kwin_wayland                  
> 200MiB |
> That should be only around 2% and not the 40% it shows earlier.

I thought about that, but since the gpu usage doesn't seem to be updating either. I couldn't confirm it, by closing stable diffusion while system monitor was open.
Comment 19 Dashon 2024-03-06 14:30:33 UTC
(In reply to David Redondo from comment #17)
> Could it be that nvidia-smi pmon somehow accounts the memory that is used by
> stable diffusion to kwin_wayland?
> 
> |    0   N/A  N/A      5311      G   /usr/bin/kwin_wayland                  
> 200MiB |
> That should be only around 2% and not the 40% it shows earlier.

Another thing I tried was opening and closing system monitor in between running stable diffusion to see if the results would be different, but it did not appear to have any effect on the reported values in system monitor.
Comment 20 Dashon 2024-03-24 17:59:00 UTC
Gonna close this, after reading the man pages and help pages for nvidia-smi. It clearly shows more useful information when running nvidia-smi by it itself rather than when running it in process monitor mode. That isn't a problem for kde to solve.