Re: Spinlocks, yet again: analysis and proposed patches

Michael Paesold <mpaesold@gmx.at>

From: "Michael Paesold" <mpaesold@gmx.at>
To: "Tom Lane" <tgl@sss.pgh.pa.us>
Cc: <pgsql-hackers@postgresql.org>, "Stephen Frost" <sfrost@snowman.net>
Date: 2005-09-12T19:12:50Z
Lists: pgsql-hackers
Tom Lane wrote:

> I probably should have broken down the spindelay patch into multiple
> components.  But it's only a small change --- could you try simplifying
> the patched line
> 
> if ((--spins % MAX_SPINS_PER_DELAY) == 0)
> 
> to
> 
> if (--spins == 0)
> 
> and see how the patch does that way?

I'll do tomorrow morning (CEST, i.e. in about 11 hours).
Best Regards,
Michael Paesold