Skip to contentSkip to conversation

New: Memory leak with GEM objects

Bug 104340 [email protected] 1 participant 6 messages Dec 19, 2017 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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: [email protected]
Reporter: sgilles-8yXg+M/94Z32fBVCVOL8/[email protected]
QA Contact: [email protected]

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).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#2 lore raw

[Bug 104340] Memory leak with GEM objects

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104340

--- Comment #1 from S. Gilles <sgilles-8yXg+M/94Z32fBVCVOL8/[email protected]> --- Created attachment 136292
--> https://bugs.freedesktop.org/attachment.cgi?id=136292&action=edit
first few lines of /sys/kernel/debug/kmemleak

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 104340] Memory leak with GEM objects

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104340

--- Comment #2 from S. Gilles <sgilles-8yXg+M/94Z32fBVCVOL8/[email protected]> --- 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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 104340] Memory leak with GEM objects

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104340

--- Comment #3 from S. Gilles <sgilles-8yXg+M/94Z32fBVCVOL8/[email protected]> --- Created attachment 136295
--> https://bugs.freedesktop.org/attachment.cgi?id=136295&action=edit
output of slabtop after running X for a few weeks

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 104340] Memory leak with GEM objects

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104340

--- Comment #4 from Ben Skeggs <[email protected]> --- I've pushed a fix for a rather stupid memory leak bug that's likely the cause of what you're seeing.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 104340] Memory leak with GEM objects

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=104340

S. Gilles <sgilles-8yXg+M/94Z32fBVCVOL8/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from S. Gilles <sgilles-8yXg+M/94Z32fBVCVOL8/[email protected]> --- 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!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau