Re: [PATCH] SLUB use cmpxchg_local

Andi Kleen
2007-08-22T00:34:25Z

Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> writes:
>
> The measurements I get (in cycles):
> enable interrupts (STI) disable interrupts (CLI) local CMPXCHG
> IA32 (P4) 112 82 26
> x86_64 AMD64 125 102 19

What exactly did you benchmark here? On K8 CLI/STI are only supposed
to be a few cycles. pushf/popf might me more expensive, but not that much.

-Andi