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

From Christopher Kings-Lynne
Subject Re: Adjustment of spinlock sleep delays
Date
Msg-id 08ed01c35bbb$59ae6840$2800a8c0@mars
Whole thread Raw
In response to Adjustment of spinlock sleep delays  (Tom Lane <tgl@sss.pgh.pa.us>)
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.

Sounds good.

Chris



pgsql-hackers by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: Re: DROP TYPE/DROP DOMAIN
Next
From: "Christopher Kings-Lynne"
Date:
Subject: test beta build