<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED 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>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [CI][SHARDS] igt@gem_userptr_blits@readonly-unsync - timeout"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=108887#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED 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:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>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_RESOLVED  bz_closed"
   title="RESOLVED 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>></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>