diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-01-15 20:50:24 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-01-16 11:08:19 +0000 |
commit | 8477ed9aeeaa8afb491d73a4c53d1b7dc64413c6 (patch) | |
tree | 1f1e252fa6b2c9229a498681ec9d431c1d91b9cf /lib/ioctl_wrappers.c | |
parent | 951e2b1a016b750544d0f42459b13b9c70631c68 (diff) |
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: https://bugs.freedesktop.org/show_bug.cgi?id=108887
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'lib/ioctl_wrappers.c')
0 files changed, 0 insertions, 0 deletions