bugzilla-daemon at freedesktop.org
2017-Dec-19 18:53 UTC
[Nouveau] [Bug 104340] New: Memory leak with GEM objects
https://bugs.freedesktop.org/show_bug.cgi?id=104340
Bug ID: 104340
Summary: Memory leak with GEM objects
Product: xorg
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: nouveau at lists.freedesktop.org
Reporter: sgilles at math.umd.edu
QA Contact: xorg-team at lists.x.org
Created attachment 136291
--> https://bugs.freedesktop.org/attachment.cgi?id=136291&action=edit
dmesg (up to last nouveau messages)
I have a gk106, current versions of libdrm, mesa, kernel (observed both with
-mainline and https://github.com/skeggsb/linux branch linux-4.15 as of a few
minutes ago), and there appears to be a memory leak with nouveau that eats up
about .5 GB every day. Killing X does nothing.
Attached is output of dmesg from the most recent boot of this machine. I've
also attached (in case it matters) dumps of /proc/meminfo and output of slabtop
after I ran X for about two weeks, then exited and killed all major daemons.
More importantly, I've attached a few hundred lines of
/sys/kernel/debug/kmemleak (from the most recent boot). After the first few
entries, they all start looking the same (except for the address and age).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://lists.freedesktop.org/archives/nouveau/attachments/20171219/358b3778/attachment.html>
bugzilla-daemon at freedesktop.org
2017-Dec-19 18:54 UTC
[Nouveau] [Bug 104340] Memory leak with GEM objects
https://bugs.freedesktop.org/show_bug.cgi?id=104340 --- Comment #1 from S. Gilles <sgilles at math.umd.edu> --- Created attachment 136292 --> https://bugs.freedesktop.org/attachment.cgi?id=136292&action=edit first few lines of /sys/kernel/debug/kmemleak -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20171219/b7eac74c/attachment.html>
bugzilla-daemon at freedesktop.org
2017-Dec-19 18:55 UTC
[Nouveau] [Bug 104340] Memory leak with GEM objects
https://bugs.freedesktop.org/show_bug.cgi?id=104340 --- Comment #2 from S. Gilles <sgilles at math.umd.edu> --- Created attachment 136294 --> https://bugs.freedesktop.org/attachment.cgi?id=136294&action=edit contents of /proc/meminfo after running X for a few weeks, then killing it -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20171219/a24365cd/attachment.html>
bugzilla-daemon at freedesktop.org
2017-Dec-19 18:55 UTC
[Nouveau] [Bug 104340] Memory leak with GEM objects
https://bugs.freedesktop.org/show_bug.cgi?id=104340 --- Comment #3 from S. Gilles <sgilles at math.umd.edu> --- Created attachment 136295 --> https://bugs.freedesktop.org/attachment.cgi?id=136295&action=edit output of slabtop after running X for a few weeks -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20171219/2bf40cfe/attachment-0001.html>
bugzilla-daemon at freedesktop.org
2017-Dec-19 22:47 UTC
[Nouveau] [Bug 104340] Memory leak with GEM objects
https://bugs.freedesktop.org/show_bug.cgi?id=104340 --- Comment #4 from Ben Skeggs <skeggsb at gmail.com> --- I've pushed a fix for a rather stupid memory leak bug that's likely the cause of what you're seeing. -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20171219/654a5c08/attachment.html>
bugzilla-daemon at freedesktop.org
2017-Dec-19 23:29 UTC
[Nouveau] [Bug 104340] Memory leak with GEM objects
https://bugs.freedesktop.org/show_bug.cgi?id=104340
S. Gilles <sgilles at math.umd.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from S. Gilles <sgilles at math.umd.edu> ---
This appears to fix it. I've been testing the fix for about 30 minutes, and
kmemleak is no longer complaining about X. Thanks for looking into this!
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://lists.freedesktop.org/archives/nouveau/attachments/20171219/68597aed/attachment.html>