From: bugzilla-daemon@bugzilla.kernel.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 214425] New: [drm][amdgpu][TTM] Page pool memory never gets freed
Date: Wed, 15 Sep 2021 21:09:55 +0000 [thread overview]
Message-ID: <bug-214425-2300@https.bugzilla.kernel.org/> (raw)
https://bugzilla.kernel.org/show_bug.cgi?id=214425
Bug ID: 214425
Summary: [drm][amdgpu][TTM] Page pool memory never gets freed
Product: Drivers
Version: 2.5
Kernel Version: 5.14.3
Hardware: x86-64
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Video(DRI - non Intel)
Assignee: drivers_video-dri@kernel-bugs.osdl.org
Reporter: doucha@swarmtech.cz
Regression: No
Hello,
while playing certain webGL games, I've noticed what appears to be a memory
leak in the kernel. Further investigation revealed that after about an hour of
gameplay, over 3GB of memory (half of all available RAM on my machine) will be
taken by the TTM page pool.
While the excessive allocation may be caused by a resource leak in the game
itself (I need to investigate that further), the larger problem is that TTM
never releases the memory even after I quit the game. Closing the game only
moves the allocated memory from active buffer objects to idle memory pool where
it'll get stuck until I reboot the system. Shutting down X server doesn't
release the memory either.
System specs:
HP Probook 455 G7
AMD Ryzen 5 4500U CPU
AMD Renoir GPU (Mesa 21.2.1, LLVM 12.0)
Gentoo Linux
TTM statistics before quitting the game:
/sys/kernel/debug/ttm/buffer_objects:
3116
/sys/kernel/debug/ttm/page_pool:
--- 0--- --- 1--- --- 2--- --- 3--- --- 4--- --- 5--- --- 6--- ---
7--- --- 8--- --- 9--- ---10---
wc : 2 2 1 1 8 2 0
1 2 1 2
uc : 0 0 0 0 0 0 0
0 0 0 0
wc 32 : 0 0 0 0 0 0 0
0 0 0 0
uc 32 : 0 0 0 0 0 0 0
0 0 0 0
total : 3410 of 939433
/sys/kernel/debug/ttm/page_pool_shrink:
2898/512
=======================================
TTM statistics after quitting the game (until reboot):
/sys/kernel/debug/ttm/buffer_objects:
403
/sys/kernel/debug/ttm/page_pool:
--- 0--- --- 1--- --- 2--- --- 3--- --- 4--- --- 5--- --- 6--- ---
7--- --- 8--- --- 9--- ---10---
wc : 151 134 20 5 255 241 790
193 416 1121 83
uc : 0 0 0 0 0 0 0
0 0 0 0
wc 32 : 0 0 0 0 0 0 0
0 0 0 0
uc 32 : 0 0 0 0 0 0 0
0 0 0 0
total : 853035 of 939433
/sys/kernel/debug/ttm/page_pool_shrink:
853034/1
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
next reply other threads:[~2021-09-15 21:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-15 21:09 bugzilla-daemon [this message]
2022-10-15 14:34 ` [Bug 214425] [drm][amdgpu][TTM] Page pool memory never gets freed bugzilla-daemon
2022-10-15 14:47 ` bugzilla-daemon
2022-10-15 15:05 ` bugzilla-daemon
2022-10-15 16:14 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-214425-2300@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@bugzilla.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.