Re: Adjustment of spinlock sleep delays

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mendola Gaetano" <mendola(at)bigfoot(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Adjustment of spinlock sleep delays
Date: 2003-08-06 14:11:36
Message-ID: 18059.1060179096@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Mendola Gaetano" <mendola(at)bigfoot(dot)com> writes:
> What about use the same algorithm used in ethernet when a collision is
> detected?

Random backoff is what Rod suggested, but I don't care for the ethernet
method in detail, because it allows for only a fairly small number of
retries before giving up. It's okay for an ethernet to drop packets
under load ... it's not okay for us to fail to acquire a spinlock.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-08-06 14:29:26 Re: test beta build
Previous Message Dave Tenny 2003-08-06 14:06:43 Re: [HACKERS] PostgreSQL JDBC driver Connection.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE)