https://bugs.kde.org/show_bug.cgi?id=368838
--- Comment #36 from Matt Whitlock <k...@mattwhitlock.name> ---
Created attachment 110735
  --> https://bugs.kde.org/attachment.cgi?id=110735&action=edit
time-series chart demonstrating plasmashell memory leak

Do we need to open a new bug report for the slideshow wallpaper issue? I am
running Qt 5.9.4 and Plasma 5.12.1 now, and it most definitely is still an
issue.

Please see the attached chart, which visualizes the output of...

 • free | grep '^Mem:'
 • grep '^VmRSS:' /proc/"$(pgrep plasmashell)"/status

...with samples taken at 1-second intervals while manipulating plasmashell.

Particularly noteworthy is that the actual plasmashell process's VmRSS hardly
changed the whole time. The system is evidently not accounting the memory usage
to the plasmashell process. Nevertheless, given enough time, plasmashell brings
the system to its knees. (I actually had to use AltGr+SysRq+F to manually
invoke the OOM killer just so I could terminate plasmashell, as my session had
become unresponsive.)

I would reasonably expect to see the gradually increasing "Buff/Cache" line and
the gradually decreasing "Free" line, as the block cache should be caching the
JPEG files as they are loaded from disk. (This is no problem, although frankly
plasmashell ought to be calling posix_fadvise(2) with POSIX_FADV_DONTNEED on
these files.)

What I would NOT expect to see is the "Used" line increasing and the
"Available" line decreasing. This suggests that memory is being consumed by
something other than the block cache.

My best guess is that plasmashell is not properly disposing of its textures. It
takes a while for them to fill up VRAM, but then they start spilling into
system RAM. I could test this hypothesis if I knew how to view how much VRAM is
used/free.

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

Reply via email to