Re: [HACKERS] Re: [PATCHES] S_LOCK reduced contention through backoff patch

ocie@paracel.com

From: ocie@paracel.com
To: dg@illustra.com (David Gould)
Cc: scrappy@hub.org, pgsql-hackers@postgreSQL.org
Date: 1998-04-30T03:51:58Z
Lists: pgsql-hackers
David Gould wrote:

[snip]
> Here is the Spinlock back off patch I promised. This does semi-random
> backoff using select() to lessen throughput degradation due to spinlock
> contention with large numbers of runnable backends.

Does this actually use some sort of random number generator?  I'm
thinking that this may not be entirely necessary.  With Ethernet, this
is needed to avoid another colission, but with locks, one process is
guaranteed to get a lock.

Ocie