Re: [PATCH 00/11] locking/ww_mutex: Keep sorted wait list to avoid stampedes

From: Chris Wilson
Date: Wed Nov 30 2016 - 04:42:29 EST


On Mon, Nov 28, 2016 at 01:20:01PM +0100, Nicolai Hähnle wrote:
> I've included timings taken from a contention-heavy stress test to some of
> the patches. The stress test performs actual GPU operations which take a
> good chunk of the wall time, but even so, the series still manages to
> improve the wall time quite a bit.

In looking at your contention scenarios, what was the average/max list
size? Just wondering if it makes sense to use an rbtree + first_waiter
instead of a sorted list from the start.
-Chris

--
Chris Wilson, Intel Open Source Technology Centre