Bug 100632 - Latest intel drivers from git cause massive use of shared memory on haswell system
Summary: Latest intel drivers from git cause massive use of shared memory on haswell s...
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-09 19:27 UTC by sergio.callegari
Modified: 2017-07-24 23:15 UTC (History)
1 user (show)

See Also:
i915 platform: HSW
i915 features: GEM/Other


Attachments

Description sergio.callegari 2017-04-09 19:27:22 UTC
Seen on KUbuntu 16.10 (yakkety) with an haswell laptop.

Using the stock intel drivers shipped with the distro, everything is fine.

Using the "oibaf ppa", which is a way of getting the latest video drivers including latest git tip for mesa, libdrm, libva, xorg-video-intel you get opengl 4 and a much more modern stack.

However, since a few days ago (hard to say exactly when, would guess about the first days of april), a nasty phenomenon started to show up, consisting in more and more memory being used by the system, until the system starts swapping and freezes.

Using the free command, the item that starts growing uncontrollably is the "shared" entry. I have seen it going above 7GB.
Comment 1 Chris Wilson 2017-04-09 19:34:35 UTC
Can you attach Xorg.0.log so that I have a good idea of just what is installed? And paste the output of cat /sys/kernel/debug/dri/0/i915_gem_objects
Comment 2 sergio.callegari 2017-04-09 20:38:12 UTC
As soon as I am over a deadline, I'll re-install the drivers from the oibaf ppa. Right now, I have downgraded to the driver version shipped with ubuntu to be able to work. I will not be the exact version on which I experienced the issue, because they are rolling every day, but it should not matter (either I'll see the issue again or it means that it is solved). With that I'll wait until I have the huge memory use and post all the logs and the /sys/kernel/debug/dri/0/i915_gem_objects... Should be a matter of 2-3 days.
Comment 3 sergio.callegari 2017-04-15 09:12:25 UTC
Cannot seem to be able to reproduce now. My shared memory use is now constantly between 200 and 300 MB that seems fair and is certainly much lower than the many GB that I was experiencing.

While I am sure that reverting to the distribution drivers stopped the issue a few days ago, moving again to the git tip now is not creating the problem.

Either, the problem was solved by some commit that was made while I was on the distribution drivers or the problem was caused by some other issue with my system  (e.g. some mismatch between libdrm and mesa or whatever).

Please close for now and sorry for the noise. In any case, if I see the problem again, now I know what to do to let you have the right data to look into it.
Comment 4 Chris Wilson 2017-04-15 09:35:02 UTC
Thank you for the report -- please do reopen if it starts occurring again.


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.