Re: Page Fault Scalability patch V19 [1/4]: pte_cmpxchg and CONFIG_ATOMIC_TABLE_OPS

From: Andi Kleen <ak_at_muc.de>
Date: 2005-03-10 10:01:22
Christoph Lameter <clameter@sgi.com> writes:
>
> Atomic operations may be enabled in the kernel configuration on
> i386, ia64 and x86_64 if a suitable CPU is configured in SMP mode.
> Generic atomic definitions for ptep_xchg and ptep_cmpxchg
> have been provided based on the existing xchg() and cmpxchg() functions
> that already work atomically on many platforms. It is very

I'm curious - do you have any micro benchmarks on i386 or x86-64 systems
about the difference between spin_lock(ptl) access; spin_unlock(ptl);
and cmpxchg ? 

cmpxchg can be quite slow, with bad luck it could be slower than 
the spinlocks.

A P4 would be good to benchmark this because it seems to be the worst
case.

-Andi
-
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 Mar 10 00:16:52 2005

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