Re: [PATCH 0/3 v2] mutex: Improve mutex performance by doing lessatomic-ops & better spinning

From: Ingo Molnar
Date: Tue Apr 16 2013 - 05:13:10 EST



* Waiman Long <Waiman.Long@xxxxxx> wrote:

> [...]
>
> Patches 2 improves the mutex spinning process by reducing contention among the
> spinners when competing for the mutex. This is done by using a MCS lock to put
> the spinners in a queue so that only the first spinner will try to acquire the
> mutex when it is available. This patch showed significant performance
> improvement of +30% on the AIM7 fserver and new_fserver workload.

Ok, that's really nice - and this approach has no arbitrary limits/tunings in it.

Do you have a performance comparison to your first series (patches 1+2+3 IIRC) -
how does this new series with MCS locking compare to the best previous result from
that old series? Do we now achieve that level of performance?

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/