Subject: Re: Atomic ops API
To: NetBSD Kernel Technical Discussion List <tech-kern@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-kern
Date: 03/13/2007 17:31:29
On Tue, Mar 13, 2007 at 03:49:33PM -0000, Andrew Doran wrote:
> Any MP atomic instruction on x86 can cost around 150 cycles on newer
> CPUs. They're not cheap there either!

...and at least 60 cycles or so for the uncontested already-in-local-L1
case. That's a lot of overhead.

Joerg