Re: spin_unlock optimization(i386)

Manfred Spraul (manfreds@colorfullife.com)
Fri, 26 Nov 1999 14:14:43 +0100


Andrea Arcangeli wrote:
>
> On Fri, 26 Nov 1999, Manfred Spraul wrote:
>
> >It's invisible on single CPU system, but clearly visible on SMP:
>
> Your proggy hangs immediatly on UP no matter if using the locked bit set
> or the movl. I am not sure if this is expected yet (but after a fast read
> I can't see anything that depends on the hardware to be SMP in your
> proggy). Hmm...
>
I tried it on an AMD K6/200:
It doesn't hang, it's only slower:
it should print a new line every half hour ;)

Could you reduce the retry counter from 5000 to 5 ( ~ line 75)?

--
	Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/