X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id F1DACD1B519 for ; Sun, 11 Jan 2004 16:08:07 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 64273-07 for ; Sun, 11 Jan 2004 12:07:36 -0400 (AST) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by svr1.postgresql.org (Postfix) with ESMTP id 98E20D1D552 for ; Sun, 11 Jan 2004 12:07:35 -0400 (AST) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Afi7b-0000XA-00 for ; Sun, 11 Jan 2004 17:07:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-performance@postgresql.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Afi7a-0000X2-00 for ; Sun, 11 Jan 2004 17:07:26 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Afi7a-0005cd-00 for ; Sun, 11 Jan 2004 17:07:26 +0100 From: Doug McNaught Subject: Re: Postgresql on Quad CPU machine Date: Sun, 11 Jan 2004 11:07:25 -0500 Lines: 15 Message-ID: <87wu7y5v0i.fsf@asmodeus.mcnaught.org> References: <40017182.1090801@lorenso.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (gnu/linux) Cancel-Lock: sha1:9ZwWNdwZdg0oHwf0jkdAnM3l0gY= X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/105 X-Sequence-Number: 5280 "D. Dante Lorenso" writes: > I'm running PostgreSQL 7.4 on a quad Xeon attached to a > beefy disk array. However, I am begining to wonder if this is > a waste of CPU power. > > I think I read somewhere that PostgreSQL is NOT multi-threaded. > But, will it be able to take advantage of multiple CPUs? Will > I have to run separate postmaster instances to get the advantage? PG uses a separate backend process for each connection, so if you have multiple simultaneous connections they will use different CPUs. Single queries will not be split across CPUs. -Doug