<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:martin.peres@free.fr" title="Martin Peres <martin.peres@free.fr>"> <span class="fn">Martin Peres</span></a>
</span> changed
<a class="bz_bug_link
bz_status_CLOSED bz_closed"
title="CLOSED FIXED - [CI][SHARDS] igt@gem_userptr_blits@readonly-unsync - timeout"
href="https://bugs.freedesktop.org/show_bug.cgi?id=108887">bug 108887</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>CLOSED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_CLOSED bz_closed"
title="CLOSED FIXED - [CI][SHARDS] igt@gem_userptr_blits@readonly-unsync - timeout"
href="https://bugs.freedesktop.org/show_bug.cgi?id=108887#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_CLOSED bz_closed"
title="CLOSED FIXED - [CI][SHARDS] igt@gem_userptr_blits@readonly-unsync - timeout"
href="https://bugs.freedesktop.org/show_bug.cgi?id=108887">bug 108887</a>
from <span class="vcard"><a class="email" href="mailto:martin.peres@free.fr" title="Martin Peres <martin.peres@free.fr>"> <span class="fn">Martin Peres</span></a>
</span></b>
<pre>(In reply to Chris Wilson from <a href="show_bug.cgi?id=108887#c7">comment #7</a>)
<span class="quote">> commit 8477ed9aeeaa8afb491d73a4c53d1b7dc64413c6 (upstream/master,
> origin/master, origin/HEAD)
> Author: Chris Wilson <<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>>
> Date: Tue Jan 15 20:50:24 2019 +0000
>
> i915/gem_userptr_blits: Only mlock the memfd once, not the arena
>
> We multiply the memfd 64k to create a 2G arena which we then attempt to
> write into after marking read-only. However, when it comes to unlock the
> arena after the test, performance tanks as the kernel tries to resolve
> the 64k repeated mappings onto the same set of pages. (Must not be a
> very common operation!) We can get away with just mlocking the backing
> store to prevent its eviction, which should prevent the arena mapping
> from being freed as well.
>
> References: <a class="bz_bug_link
bz_status_CLOSED bz_closed"
title="CLOSED FIXED - [CI][SHARDS] igt@gem_userptr_blits@readonly-unsync - timeout"
href="show_bug.cgi?id=108887">https://bugs.freedesktop.org/show_bug.cgi?id=108887</a>
> Signed-off-by: Chris Wilson <<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>>
> Reviewed-by: Mika Kuoppala <<a href="mailto:mika.kuoppala@linux.intel.com">mika.kuoppala@linux.intel.com</a>></span >
It did the trick, thanks! Closing!</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>