Re: page table lock patch V15 [0/7]: overview

From: Roman Zippel <zippel_at_linux-m68k.org>
Date: 2005-01-14 14:39:16
Hi,

Christoph Lameter wrote:

> Introduction of the cmpxchg is one atomic operations that replaces the two
> spinlock ops typically necessary in an unpatched kernel. Obtaining the
> spinlock requires an spinlock (which is an atomic operation) and then the
> release involves a barrier. So there is a net win for all SMP cases as far
> as I can see.

But there might be a loss in the UP case. Spinlocks are optimized away, 
but your cmpxchg emulation enables/disables interrupts with every access.

bye, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Jan 13 22:44:12 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:34 EST