Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 78C979FB201 for ; Tue, 13 Feb 2007 14:49:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 59013-02-2 for ; Tue, 13 Feb 2007 14:49:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from skynet.simkin.ca (skynet.simkin.ca [72.51.27.117]) by postgresql.org (Postfix) with ESMTP id 297CB9FBA34 for ; Tue, 13 Feb 2007 14:49:14 -0400 (AST) Received: from hal.simkin.ca (S0106000c6eb33e73.vc.shawcable.net [24.80.109.220]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by skynet.simkin.ca (Postfix) with ESMTP id EA9374A34 for ; Tue, 13 Feb 2007 10:49:12 -0800 (PST) From: Alan Hodgson Organization: Simkin Network Consulting To: pgsql-performance@postgresql.org Subject: Re: CPU Usage Date: Tue, 13 Feb 2007 10:48:25 -0800 User-Agent: KMail/1.9.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702131048.25646@hal.simkin.ca> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.134 tagged_above=0 required=5 tests=BAYES_50, FORGED_RCVD_HELO, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200702/132 X-Sequence-Number: 23186 On Tuesday 13 February 2007 10:36, "Campbell, Lance" wrote: > We have 12+ schemas in 1 database. When I do a unix "top" command I > notice one postmaster process has 100% CPU usage. This process just > stays at 100% to 99% CPU usage. There are other postmaster processes > that pop up. They use hardly no CPU or memory. They also disappear > very fast. I am wondering, is postgres only using one processor for > database queries? Is there something I need to do to tell postgres > to use more than one processor? Or does postgres only use up to one > processor for any particular database? Each connection to the cluster gets a dedicated backend process, which can only be scheduled on one processor at a time. So, in effect, a single query can only use one processor at a time, but any number of other backends can be simultaneously using the other CPUs. It does not matter which database they are operating on. -- "It is a besetting vice of democracies to substitute public opinion for law." - James Fenimore Cooper