Re: PostgreSQL + SMP - Mailing list pgsql-admin

From Bruce Momjian
Subject Re: PostgreSQL + SMP
Date
Msg-id 200012102028.PAA01765@candle.pha.pa.us
Whole thread Raw
In response to Re: PostgreSQL + SMP  (Alfred Perlstein <bright@wintelcom.net>)
Responses Re: PostgreSQL + SMP  (Alfred Perlstein <bright@wintelcom.net>)
List pgsql-admin
> * Bruce Momjian <pgman@candle.pha.pa.us> [001210 12:19] wrote:
> > > Postgre is not threaded, but every connection gets it's own process.  The OS
> > > will distribute the processes across the processors.  Not sure I said that
> > > very will.
> > >
> > > Basically a single connection will not be any faster with SMP, but multiple
> > > connections will be.
> >
> > Actually, even a single process will be faster because all other system
> > process will run on other cpu's.
>
> Depending on how idle you are, the large overhead of bus locking
> can cause a lot of perf degredation(sp?) for the idle SMP case.

True.  I was thinking more of the backend having to give up the cpu to
allow other processes to run.  With two cpu's, I believe one backend can
camp out on a cpu forever as long as the other cpu doesn't get busy.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-admin by date:

Previous
From: Alfred Perlstein
Date:
Subject: Re: PostgreSQL + SMP
Next
From: Alfred Perlstein
Date:
Subject: Re: PostgreSQL + SMP