Re: Btree runtime recovery. Stuck spins. - Mailing list pgsql-hackers

From ncm@zembu.com (Nathan Myers)
Subject Re: Btree runtime recovery. Stuck spins.
Date
Msg-id 20010209114405.D624@store.zembu.com
Whole thread Raw
In response to Re: Btree runtime recovery. Stuck spins.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, Feb 09, 2001 at 01:23:35PM -0500, Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Our spinlocks don't go into an infinite test loop, right?  They back off
> > and retest at random intervals.
> 
> Not very random --- either 0 or 10 milliseconds.  (I think there was
> some discussion of changing that, but it died off without agreeing on
> anything.) ...

I think we agreed that 0 was just wrong, but nobody changed it.
Changing it to 1 microsecond would be the smallest reasonable 
change.  As it is, it just does a bunch of no-op syscalls each time it
wakes up after a 10ms sleep, without yielding the CPU.

Nathan Myers
ncm@zembu.com


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Btree runtime recovery. Stuck spins.
Next
From: "Vadim Mikheev"
Date:
Subject: Re: Btree runtime recovery. Stuck spins.