Bug 101930 - High memory usage in KDE
Summary: High memory usage in KDE
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-26 15:44 UTC by network723
Modified: 2017-07-27 05:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description network723 2017-07-26 15:44:19 UTC
I've tried building Mesa-git 31f1863ace73d31a579e5c36252a957818ad09cf, and when I run KDE Plasma 5.8 session, it shows that about 4 Gigabytes of RAM is used. Memory isn't freed if I shut down KDE session and kill display manager, the only way to get it back is rebooting. IceWM session works fine.
With Mesa-git of July 22nd memory footprint in KDE was about 600 megabytes.

Distro: openSUSE 42.2
Hardware: AMD RX480
Comment 1 Emil Velikov 2017-07-26 15:49:52 UTC
There was a leak introduced with bbc29393d3beaf6344c7188547b4ff61b63946ae which was be resolved by 914f11e75b8ebe8a0faab76ce25fe185ab580eee.

Can you give that a try?
Comment 2 network723 2017-07-26 17:01:32 UTC
(In reply to Emil Velikov from comment #1)
> There was a leak introduced with bbc29393d3beaf6344c7188547b4ff61b63946ae
> which was be resolved by 914f11e75b8ebe8a0faab76ce25fe185ab580eee.
> 
> Can you give that a try?

Tried building the 914f11e75b8ebe8a0faab76ce25fe185ab580eee, looks like it's not the case, memory usage is still ridiculously high. Btw, i noticed that KDE starts really slow, and there is unusually much disk activity. Maybe it's somehow related to on-disk shader cache?
Comment 3 Nick Sarnie 2017-07-27 01:26:41 UTC
Hi all,

I also have this issue, and I have bisected it to the commit Emil mentions, but I can confirm that the suggested fix doesn't work.

Thanks,
Sarnex
Comment 4 Michel Dänzer 2017-07-27 02:16:13 UTC
https://patchwork.freedesktop.org/patch/169225/ fixes it for Nick.
Comment 5 Michel Dänzer 2017-07-27 05:49:46 UTC
Thanks for the report, should be fixed in Git:

Module: Mesa
Branch: master
Commit: 57132d126f2e129fc2959dcc2c0a8126389d07ba
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=57132d126f2e129fc2959dcc2c0a8126389d07ba

Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Jul 27 11:12:24 2017 +0900

st/mesa: Fix inversed test in st_api_destroy_drawable


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.