Re: Why Semaphore Hardware-Dependent?

From: Christoph Lameter
Date: Sun Aug 27 2006 - 17:03:31 EST


On Sun, 27 Aug 2006, Andi Kleen wrote:

> rwsems don't -- there are two flavours: a generic spinlock'ed one and a
> complicated atomic based one that only works on some architectures.
> As far as I know nobody has demonstrated a clear performance increase
> from the first so it might be possible to switch all to the generic
> implementation.

Yup that would be the major issue.I'd be interested to see some tests in
that area.
-
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/