[Intel-gfx] [PATCH 5/6] drm/i915: Move the recently scanned objects to the tail after shrinking
Joonas Lahtinen
joonas.lahtinen at linux.intel.com
Mon Oct 31 15:26:29 UTC 2016
On ma, 2016-10-31 at 10:26 +0000, Chris Wilson wrote:
> During shrinking, we walk over the list of objects searching for
> victims. Any that are not removed are put back into the global list.
> Currently, they are put back in order (at the front) which means they
> will be first to be scanned again. If we instead move them to the rear
> of the list, we will scan new potential victims on the next pass and
> waste less time rescanning unshrinkable objects. Normally the lists are
> kept in rough order to shrinking (with object least frequently used at
> the start), by moving just scanned objects to the rear we are
> acknowledging that they are still in use.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Regards, Joonas
--
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
More information about the Intel-gfx
mailing list