Re: [HACKERS] Re: sched_yield() - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Re: sched_yield()
Date
Msg-id 199803220403.XAA02710@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] Re: sched_yield()  (dg@illustra.com (David Gould))
Responses Re: [HACKERS] Re: sched_yield()  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
> Secondly, the select() backoff patch I am working on starts out with a zero
> timeout and backs off incrementally by increasing the timeout value on
> subsequent iterations. The idea is to break up convoys and avoid big piles of
> processes pounding on a spinlock. This cannot be done with sched_yield().

Hard to beat the backoff argument.  I vote we only use select().

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: sched_yield()
Next
From: Coronach
Date:
Subject: Re: [HACKERS] psql nested queries with 2000+ records