Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBAKTWZ50989 for ; Sun, 10 Dec 2000 15:29:32 -0500 (EST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eBAKTN104188; Sun, 10 Dec 2000 12:29:23 -0800 (PST) Date: Sun, 10 Dec 2000 12:29:23 -0800 From: Alfred Perlstein To: Bruce Momjian Cc: Matthew , "'paitoon butri'" , pgsql-admin@postgresql.org Subject: Re: PostgreSQL + SMP Message-ID: <20001210122923.L16205@fw.wintelcom.net> References: <20001210122630.J16205@fw.wintelcom.net> <200012102028.PAA01765@candle.pha.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200012102028.PAA01765@candle.pha.pa.us>; from pgman@candle.pha.pa.us on Sun, Dec 10, 2000 at 03:28:19PM -0500 X-Archive-Number: 200012/53 X-Sequence-Number: 245 * Bruce Momjian [001210 12:28] wrote: > > * Bruce Momjian [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. That's true, as long as there's no contention for the locks then it's pretty cheap. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk."