aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-01-15 21:24:46 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2018-01-18 09:19:05 +0000
commit29d384e34c55d696cf37bd4159e05f4b14d45da0 (patch)
tree4b8d477bc8038a9e21b0daf9e20355b73adf3b3f /tools/perf/scripts/python
parentdrm: i915: remove timeval users (diff)
downloadlinux-29d384e34c55d696cf37bd4159e05f4b14d45da0.tar.gz
linux-29d384e34c55d696cf37bd4159e05f4b14d45da0.zip
drm/i915: Only attempt to scan the requested number of shrinker slabs
Since commit 4e773c3a8a69 ("drm/i915: Wire up shrinkctl->nr_scanned"), we track the number of objects we scan and do not wish to exceed that as it will overly penalise our own slabs under mempressure. Given that we now know the target number of objects to scan, use that as our guide for deciding to shrink as opposed to the number of objects we manage to shrink (which doesn't correspond to the numbers we report to shrinkctl). Fixes: 4e773c3a8a69 ("drm/i915: Wire up shrinkctl->nr_scanned") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180115212455.24046-2-chris@chris-wilson.co.uk Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions