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

From Greg Stark
Subject Re: Spinlocks, yet again: analysis and proposed patches
Date
Msg-id 87hdcp13lp.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Spinlocks, yet again: analysis and proposed patches  (Marko Kreen <marko@l-t.ee>)
Responses Re: Spinlocks, yet again: analysis and proposed patches
List pgsql-hackers
Marko Kreen <marko@l-t.ee> writes:

> > (I speculate that it's set up to only yield the processor to other
> > processes already affiliated to that processor.  In any case, it
> > is definitely capable of getting through 10000 yields without
> > running the guy who's holding the spinlock.)

Maybe it should try sched_yield once and then use select after that?

-- 
greg



pgsql-hackers by date:

Previous
From: "Brusser, Michael"
Date:
Subject: Re: Hard drive failure leads to corrupt db
Next
From: Peter Eisentraut
Date:
Subject: Re: Hard drive failure leads to corrupt db