Re: Spinlocks, yet again: analysis and proposed patches - Mailing list pgsql-hackers

From Michael Paesold
Subject Re: Spinlocks, yet again: analysis and proposed patches
Date
Msg-id 023701c5b7cd$f8be31c0$0f01a8c0@zaphod
Whole thread Raw
In response to Spinlocks, yet again: analysis and proposed patches  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Spinlocks, yet again: analysis and proposed patches
Next
From: "Qingqing Zhou"
Date:
Subject: Re: counting disk access from index seek operation -- how to?