From: bugzilla-daemon@freedesktop.org
Subject: [Bug 111527] obs-studio + latest mesa on amdgpu/vega64 leaks kernel
memory rapidly
Date: Sat, 07 Sep 2019 13:20:20 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1081580969=="
Return-path:
Received: from culpepper.freedesktop.org (culpepper.freedesktop.org
[IPv6:2610:10:20:722:a800:ff:fe98:4b55])
by gabe.freedesktop.org (Postfix) with ESMTP id 3815E89CE1
for ; Sat, 7 Sep 2019 13:20:20 +0000 (UTC)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dri-devel-bounces@lists.freedesktop.org
Sender: "dri-devel"
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============1081580969==
Content-Type: multipart/alternative; boundary="15678624201.148dc.2358"
Content-Transfer-Encoding: 7bit
--15678624201.148dc.2358
Date: Sat, 7 Sep 2019 13:20:20 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.freedesktop.org/
Auto-Submitted: auto-generated
https://bugs.freedesktop.org/show_bug.cgi?id=3D111527
tele42k3@hotmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tele42k3@hotmail.com
--- Comment #2 from tele42k3@hotmail.com ---
Thanks for the clear steps to reproduce this issue. I managed to reproduce =
this
on my RX 480 and it bisected to:
commit 11a3679e3aba3524cf987f1f808d92c25f16e080
Author: Michel D=C3=A4nzer
Date: Fri Jun 28 18:35:56 2019 +0200
winsys/amdgpu: Make KMS handles valid for original DRM file descriptor
Getting a DMA-buf fd and converting that to a handle using our duplicate
of that file descriptor (getting at which requires passing a
radeon_winsys pointer to the buffer_get_handle hook) makes sure of this,
since duplicated file descriptors reference the same file description
and therefore the same GEM handle namespace.
This is necessary because libdrm_amdgpu may use a different DRM file
descriptor with a separate handle namespace internally, e.g. because it
always reuses any existing amdgpu_device_handle for the same device.
amdgpu_bo_export returns a handle which is valid for that internal
file descriptor.
Bugzilla: https://bugs.freedesktop.org/110903
Reviewed-by: Marek Ol=C5=A1=C3=A1k
Tested-by: Pierre-Eric Pelloux-Prayer
While testing I saw a .8 to 1 MB/s slow leak which appeared immediately on
opening OBS with the test scene. It felt like it consistently hit some obsc=
ured
value like 64MB before the major memory leak started, which helped bisect t=
he
issue.
I reverted the commit on top of f8887909c6683986990474b61afd6d4335a69e41 wi=
th
good results.
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--15678624201.148dc.2358
Date: Sat, 7 Sep 2019 13:20:20 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.freedesktop.org/
Auto-Submitted: auto-generated
tele42k3@hotmail.co=
m
changed
bug 11152=
7
| What |
Removed |
Added |
| CC |
|
tele42k3@hotmail.com
|
Commen=
t # 2
on bug 11152=
7
from tele42k3@h=
otmail.com
Thanks for the clear steps to reproduce this issue. I managed =
to reproduce this
on my RX 480 and it bisected to:
commit 11a3679e3aba3524cf987f1f808d92c25f16e080
Author: Michel D=C3=A4nzer <michel.daenzer@amd.com>
Date: Fri Jun 28 18:35:56 2019 +0200
winsys/amdgpu: Make KMS handles valid for original DRM file descriptor
Getting a DMA-buf fd and converting that to a handle using our duplicate
of that file descriptor (getting at which requires passing a
radeon_winsys pointer to the buffer_get_handle hook) makes sure of this,
since duplicated file descriptors reference the same file description
and therefore the same GEM handle namespace.
This is necessary because libdrm_amdgpu may use a different DRM file
descriptor with a separate handle namespace internally, e.g. because it
always reuses any existing amdgpu_device_handle for the same device.
amdgpu_bo_export returns a handle which is valid for that internal
file descriptor.
Bugzilla: https://bugs.=
freedesktop.org/110903
Reviewed-by: Marek Ol=C5=A1=C3=A1k <marek.olsak@amd.com>
Tested-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
While testing I saw a .8 to 1 MB/s slow leak which appeared immediately on
opening OBS with the test scene. It felt like it consistently hit some obsc=
ured
value like 64MB before the major memory leak started, which helped bisect t=
he
issue.
I reverted the commit on top of f8887909c6683986990474b61afd6d4335a69e41 wi=
th
good results.
You are receiving this mail because:
- You are the assignee for the bug.
=
--15678624201.148dc.2358--
--===============1081580969==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs
--===============1081580969==--