Re: Adjustment of spinlock sleep delays - Mailing list pgsql-hackers

From Rod Taylor
Subject Re: Adjustment of spinlock sleep delays
Date
Msg-id 1060118022.19065.1.camel@jester
Whole thread Raw
In response to Adjustment of spinlock sleep delays  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Adjustment of spinlock sleep delays
List pgsql-hackers
> To forestall this scenario, I'm thinking of introducing backoff into the
> sleep intervals --- that is, after first failure to get the spinlock,
> sleep 10 msec; after the second, sleep 20 msec, then 40, etc, with a
> maximum sleep time of maybe a second.  The number of iterations would be
> reduced so that we still time out after a minute's total delay.

After the first few sleeps should it add a random() element to the delay
time?


pgsql-hackers by date:

Previous
From: Mike Mascari
Date:
Subject: Re: Adjustment of spinlock sleep delays
Next
From: Bruce Momjian
Date:
Subject: Re: logging stuff