On Tue, 28 May 2019 at 20:50, Chris Wilson <[email protected]> wrote: > > Currently the purgeable objects, I915_MADV_DONTNEED, as mixed in the > normal bound/unbound lists. Every shrinker pass starts with an attempt > to purge from this set of unneeded objects, which entails us doing a > walk over both lists looking for any candidates. If there are none, and > since we are shrinking we can reasonably assume that the lists are > full!, this becomes a very slow futile walk. > > If we separate out the purgeable objects into own list, this search then > becomes its own phase that is preferentially handled during shrinking. > Instead the cost becomes that we then need to filter the purgeable list > if we want to distinguish between bound and unbound objects. > > Signed-off-by: Chris Wilson <[email protected]> > Cc: Joonas Lahtinen <[email protected]> > Cc: Matthew Auld <[email protected]>
Makes sense, Reviewed-by: Matthew Auld <[email protected]> _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
