Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBAKSWZ50936 for ; Sun, 10 Dec 2000 15:28:32 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id PAA01765; Sun, 10 Dec 2000 15:28:19 -0500 (EST) From: Bruce Momjian Message-Id: <200012102028.PAA01765@candle.pha.pa.us> Subject: Re: PostgreSQL + SMP In-Reply-To: <20001210122630.J16205@fw.wintelcom.net> "from Alfred Perlstein at Dec 10, 2000 12:26:30 pm" To: Alfred Perlstein Date: Sun, 10 Dec 2000 15:28:19 -0500 (EST) CC: Matthew , "'paitoon butri'" , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200012/52 X-Sequence-Number: 244 > * 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. -- 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