https://bugs.kde.org/show_bug.cgi?id=528892
Bug ID: 528892
Summary: Extremely high GPUActive usage on wayland with intel
xe drivers. Restarting causes high GPUReclaim usage.
Classification: Plasma
Product: kwin
Version First 6.7.5
Reported In:
Platform: Ubuntu
OS: Linux
Status: REPORTED
Severity: crash
Priority: NOR
Component: platform-drm
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
DESCRIPTION
I'm noticing high RAM usage in KDE desktop (I have 32GB RAM and when i first
checked, my desktop was consuming about 17GB RAM). At first, i thought it was
one of my apps who was causing this, because Brave's been memory hungry lately
(I'm talking about 5-7GB for 11 tabs). Then I closed all my apps. Memory
comsumption went from 24GB RAM to 17GB).
Not knowing what else to do, I asked Codex to find what's causing my ram issues
(Yes I know you said to not paste LLM output, but there's nothing against
LLM-based investigation. This text is indeed writen by my hand). It found out
that ~8GB of my RAM was being used by iGPU (command below shows memory related
info):
$ awk '/^(MemTotal|MemAvailable|GPUActive|GPUReclaim):/{printf "%-14s %.2f
GiB\n",$1,$2/1048576}' /proc/meminfo
MemTotal: 30.35 GiB
MemAvailable: 14.14 GiB
GPUActive: 8.01 GiB
GPUReclaim: 0.70 GiB
This command shows that kwin_wayland might be causing the usage (sows
kwin_wayland proccess holding 7.49GB of graphic buffers):
# sudo sh -c 'grep -H -E
"^drm-(client-id|pdev|total-gtt|resident-gtt|shared-gtt):" /proc/$(pgrep -n -x
kwin_wayland)/fdinfo/*'
...
drm-client-id: 299
drm-pdev: 0000:00:02.0
drm-total-gtt: 7852400 KiB
drm-shared-gtt: 6425904 KiB
drm-resident-gtt: 7852400 KiB
...
That info led me to restart wayland session and check if RAM went back to
nomal. It crashed after logging in. (This is a recurring issue with my pc even
at i915 drivers, but I don't think it's related to our problem here. It might
be related to window effects, but i'll post the logs i found anyway):
# sudo journalctl -k -b --no-pager -o short-monotonic -g 'Timedout job|Engine
reset|Xe device coredump|devcoredump/data'
...
[569287.112008] xe 0000:00:02.0: [drm] Tile0: GT0: Engine reset:
engine_class=rcs, logical_mask: 0x1, guc_id=10, state=0x3
[569287.112515] xe 0000:00:02.0: [drm] Tile0: GT0: Timedout job:
seqno=4294967169, lrc_seqno=4294967169, guc_id=10, flags=0x0 in kwin_wayland
[3716049]
[569287.113175] xe 0000:00:02.0: [drm] Xe device coredump has been created
[569287.113334] xe 0000:00:02.0: [drm] Check your
/sys/class/drm/card0/device/devcoredump/data
When that issue happens, I just do Alt SysRq R and Ctrl Alt F4 to access a TTY
and kill the kwin proccess using 100% CPU, then kill the kwayland_wrapper
proccess. Again, this might not be related to the high RAM usage.
Anyway, I restarted KDE once again and for my surprise, there was still high
RAM usage (about 14GB). Rerunning the first command showed GPUActive has
cleared, but all those GBs went to GPUReclaim:
$ awk '/^(MemTotal|MemAvailable|GPUActive|GPUReclaim):/{printf "%-14s %.2f
GiB\n",$1,$2/1048576}' /proc/meminfo
MemTotal: 30,35 GiB
MemAvailable: 14,49 GiB
GPUActive: 1,17 GiB
GPUReclaim: 5,78 GiB
STEPS TO REPRODUCE
1. [Still investigating. I'm rebooting my computer right now and trying to
open/close Brave several times to check what happens]
OBSERVED RESULT
High RAM usage (GPUActive and GPUReclaim) that doesn't go away even when kde
session is closed.
EXPECTED RESULT
KDE should correctly manage and clean GPUActive and GPUReclaim, not requiring a
full reboot.
SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.29.0
Qt Version: 6.11.2
ADDITIONAL INFORMATION
Using xe drivers. Ubuntu 26.10 (stonks). I had to update because 26.04's latest
kde version was unusable. Both were an attempt to fix the possibly unrelated
"GT0: Engine reset" problem told before.
--
You are receiving this mail because:
You are watching all bug changes.