From: bugzilla-daemon@freedesktop.org Subject: [Bug 111077] link_shader and deserialize_glsl_program suddenly consume huge amount of RAM Date: Sat, 06 Jul 2019 18:01:14 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0024522417==" 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 57F7A88E4B for ; Sat, 6 Jul 2019 18:01:14 +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 --===============0024522417== Content-Type: multipart/alternative; boundary="15624360740.fF070.26441" Content-Transfer-Encoding: 7bit --15624360740.fF070.26441 Date: Sat, 6 Jul 2019 18:01:14 +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=3D111077 --- Comment #1 from roland@rptd.ch --- I've started the application now also in a debugger and went to loading a simple model which causes tons of RAM to be consumes by the shader compiler= . I interrupted with GDB and made a trace: #0 0x00007f650ee794e7 in __memcpy_ssse3 () from /lib64/libc.so.6 #1 0x00007f650776a390 in blob_write_bytes () from /usr/lib64/dri/radeonsi_dri.so #2 0x00007f650776a4e8 in blob_write_uint32 () from /usr/lib64/dri/radeonsi_dri.so #3 0x00007f6507636421 in serialize_glsl_program () from /usr/lib64/dri/radeonsi_dri.so #4 0x00007f6507638132 in shader_cache_write_program_metadata(gl_context*, gl_shader_program*) () from /usr/lib64/dri/radeonsi_dri.so #5 0x00007f65074a9a38 in link_program_error () from /usr/lib64/dri/radeonsi_dri.so #6 0x00007f6509d85a3d in deoglShaderLanguage::pLinkShader (this=3D0x7f65004= 360c0, handle=3D298) at src/modules/graphic/opengl/src/shaders/deoglShaderLanguage.cpp:1272 #7 0x00007f6509d86537 in deoglShaderLanguage::CompileShader (this=3D0x7f65004360c0, program=3D...) at src/modules/graphic/opengl/src/shaders/deoglShaderLanguage.cpp:530 Mesa gets stuck inside "link_program_error" =3D> "shader_cache_write_program_metadata" =3D> "serialize_glsl_program" . Most probably serialize_glsl_program goes rampage there but I have no idea if th= is is the real reason. According to the massif logs though ralloc_size is call= ed with GB of data multiple time in there somewhere. --=20 You are receiving this mail because: You are the assignee for the bug.= --15624360740.fF070.26441 Date: Sat, 6 Jul 2019 18:01:14 +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

Commen= t # 1 on bug 11107= 7 from roland@rptd.ch
I've started the application now also in a debugger and went t=
o loading a
simple model which causes tons of RAM to be consumes by the shader compiler=
. I
interrupted with GDB and made a trace:

#0 0x00007f650ee794e7 in __memcpy_ssse3 () from /lib64/libc.so.6
#1 0x00007f650776a390 in blob_write_bytes () from
/usr/lib64/dri/radeonsi_dri.so
#2 0x00007f650776a4e8 in blob_write_uint32 () from
/usr/lib64/dri/radeonsi_dri.so
#3 0x00007f6507636421 in serialize_glsl_program () from
/usr/lib64/dri/radeonsi_dri.so
#4 0x00007f6507638132 in shader_cache_write_program_metadata(gl_context*,
gl_shader_program*) () from /usr/lib64/dri/radeonsi_dri.so
#5 0x00007f65074a9a38 in link_program_error () from
/usr/lib64/dri/radeonsi_dri.so
#6 0x00007f6509d85a3d in deoglShaderLanguage::pLinkShader (this=3D0x7f65004=
360c0,
handle=3D298) at
src/modules/graphic/opengl/src/shaders/deoglShaderLanguage.cpp:1272
#7 0x00007f6509d86537 in deoglShaderLanguage::CompileShader
(this=3D0x7f65004360c0, program=3D...) at
src/modules/graphic/opengl/src/shaders/deoglShaderLanguage.cpp:530

Mesa gets stuck inside "link_program_error" =3D>
"shader_cache_write_program_metadata" =3D> "serialize_gls=
l_program" . Most
probably serialize_glsl_program goes rampage there but I have no idea if th=
is
is the real reason. According to the massif logs though ralloc_size is call=
ed
with GB of data multiple time in there somewhere.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15624360740.fF070.26441-- --===============0024522417== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0024522417==--