From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101769] 2X performance regression on Mesa 17.1 vs 17.0 Date: Wed, 12 Jul 2017 20:35:59 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0317849519==" 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 8CCAF6E508 for ; Wed, 12 Jul 2017 20:35:59 +0000 (UTC) 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 --===============0317849519== Content-Type: multipart/alternative; boundary="14998917590.5ff2.10218"; charset="UTF-8" --14998917590.5ff2.10218 Date: Wed, 12 Jul 2017 20:35:59 +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=3D101769 Bug ID: 101769 Summary: 2X performance regression on Mesa 17.1 vs 17.0 Product: Mesa Version: 17.1 Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: major Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: david@lunarg.com QA Contact: dri-devel@lists.freedesktop.org Created attachment 132646 --> https://bugs.freedesktop.org/attachment.cgi?id=3D132646&action=3Dedit hack to apitrace for duplicating problem We have an internal OpenGL benchmarking tool that measures the performance = of certain frames in apitrace files. We have been using this tool to measure the performance of various releases of Mesa. We recently found a large regression in Mesa performance of Half Life Episo= de 2, as measured by our benchmarking tool. We measured the following frame ra= tes when running the benchmark with Mesa built from the listed source tags: tag mesa-17.0.0 358.6 fps tag mesa-17.1.3 151.1 fps This is a reduction in performance of more than 2X. Since the tool we use to measure performance is an internal tool and we can= not distribute it, I hacked apitrace to behave similar to our tool so that apit= race can be used to measure the performance of the problem frame. The frame rat= es I measured with this hacked apitrace benchmark are: tag mesa-17.0.0 417.7 fps commit 071d80b 393.9 fps commit f81ede4 324.6 fps tag mesa-17.1.3 196.0 fps The hacked apitrace shows about the same performance drop between mesa-17.0= .0 and mesa-17.1.3 as our original benchmark. I also include the results for commits 071d80b and f81ede4 because commit f81ede4 seemed to show the single largest performance drop of all commits between mesa-17.0.0 and mesa-17.1.3. The configuration of the system I have been using to measure Mesa performan= ce is: CPU: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz RAM: 16Gb GPU: AMD RX480 Attached is the patch I applied to apitrace to create my hacked apitrace th= at attempts to duplicate the original benchmark. After building apitrace with the above patch, I used the following command = to measure performance: vblank_mode=3D0 glretrace -b hl2_linux.trace I can make the hl2_linux.trace trace file available on request. We cannot widely distribute it because it contains Valve IP (i.e. game images). Please send a request directly to david@lunarg.com. Note that we have observed similar performance drops for other games, but I have concentrated on isolating and reporting on one frame in one game for n= ow. --=20 You are receiving this mail because: You are the assignee for the bug.= --14998917590.5ff2.10218 Date: Wed, 12 Jul 2017 20:35:59 +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
Bug ID 101769
Summary 2X performance regression on Mesa 17.1 vs 17.0
Product Mesa
Version 17.1
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity major
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter david@lunarg.com
QA Contact dri-devel@lists.freedesktop.org

Created attachment 132646 [details] [review]
hack to apitrace for duplicating problem

We have an internal OpenGL benchmarking tool that measures the performance =
of
certain frames in apitrace files. We have been using this tool to measure
the performance of various releases of Mesa.

We recently found a large regression in Mesa performance of Half Life Episo=
de
2, as measured by our benchmarking tool. We measured the following frame ra=
tes
when running the benchmark with Mesa built from the listed source tags:

    tag mesa-17.0.0   358.6 fps
    tag mesa-17.1.3   151.1 fps

This is a reduction in performance of more than 2X.

Since the tool we use to measure performance is an internal tool and we can=
not
distribute it, I hacked apitrace to behave similar to our tool so that apit=
race
can be used to measure the performance of the problem frame.  The frame rat=
es I
measured with this hacked apitrace benchmark are:

    tag mesa-17.0.0   417.7 fps
    commit 071d80b    393.9 fps
    commit f81ede4    324.6 fps
    tag mesa-17.1.3   196.0 fps

The hacked apitrace shows about the same performance drop between mesa-17.0=
.0
and mesa-17.1.3 as our original benchmark. I also include the results for
commits 071d80b and f81ede4 because commit f81ede4 seemed to show the single
largest performance drop of all commits between mesa-17.0.0 and mesa-17.1.3.

The configuration of the system I have been using to measure Mesa performan=
ce
is:

   CPU: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
   RAM: 16Gb
   GPU: AMD RX480

Attached is the patch I applied to apitrace to create my hacked apitrace th=
at
attempts to duplicate the original benchmark.

After building apitrace with the above patch, I used the following command =
to
measure performance:

    vblank_mode=3D0 glretrace -b hl2_linux.trace

I can make the hl2_linux.trace trace file available on request. We cannot
widely distribute it because it contains Valve IP (i.e. game images). Please
send a request directly to david=
4;lunarg.com.

Note that we have observed similar performance drops for other games, but I
have concentrated on isolating and reporting on one frame in one game for n=
ow.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14998917590.5ff2.10218-- --===============0317849519== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0317849519==--