[igt-dev] [PATCH i-g-t v14 06/33] lib/intel_allocator_random: Add random allocator

Chris Wilson chris at chris-wilson.co.uk
Thu Jan 14 16:09:40 UTC 2021


Quoting Zbigniew Kempczyński (2021-01-14 12:22:06)
> Sometimes we want to experiment with addresses so randomizing can help
> us a little.

We had some discussion on the utility of a random allocator without any
overlap detection. Useful for some debugging, but brings its own booby
traps.

We do need to add comments that discuss the pro/cons of each allocator,
in particular mentioning that without overlap detection this allocator
will eventually return conflicting addresses. There's also another
subtle problem in that an even spread of objects over the address range
increases mempressure from the page tables, leading to mystery ENOMEM
from execbuf.
-Chris


More information about the igt-dev mailing list