Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 09C919F9DDD for ; Fri, 7 Sep 2007 07:20:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 81149-02 for ; Fri, 7 Sep 2007 07:20:38 -0300 (ADT) X-Greylist: delayed 00:30:19.500319 by SQLgrey-1.7.5 Received: from mail.aeccom.com (port-83-236-156-30.static.qsc.de [83.236.156.30]) by postgresql.org (Postfix) with ESMTP id CCAEC9F9DED for ; Fri, 7 Sep 2007 07:20:43 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.aeccom.com (Postfix) with ESMTP id F04CA1CE0A; Fri, 7 Sep 2007 11:50:20 +0200 (CEST) Received: from mail.aeccom.com ([127.0.0.1]) by localhost (gate6.aeccom.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26470-01-10; Fri, 7 Sep 2007 11:50:17 +0200 (CEST) Received: from [192.168.2.140] (andes.core.aeccom.com [192.168.2.140]) by mail.aeccom.com (Postfix) with ESMTP id D3E601CD32; Fri, 7 Sep 2007 11:50:17 +0200 (CEST) Message-ID: <46E11ED7.3020708@aeccom.com> Date: Fri, 07 Sep 2007 11:50:15 +0200 From: Sven Geisler Organization: AEC/communications GmbH User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Thomas Finneid CC: pgsql-performance@postgresql.org Subject: Re: utilising multi-cpu/core machines? References: <46DF3082.7040301@ifi.uio.no> In-Reply-To: <46DF3082.7040301@ifi.uio.no> X-Enigmail-Version: 0.95.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at aeccom.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/123 X-Sequence-Number: 26668 Hi Thomas, PostgreSQL does scale up very well. But you have to keep in mind that this also depends on profile of the application you're on PostgreSQL. Insufficient memory and slow disk systems can interfere PostgreSQL. Another issue is contention if the server has more than 4 cpus. (Please check out discussions about "context strom" in this group.) Anyhow, I had create a benchmark for my company which shows the scale up of PostgreSQL 8.1.4. This benchmark does try to enforce contention because of the profile of our application. Clients/scale-up factor 1 1 2 1,78 3 2,47 4 3,12 5 3,62 6 4,23 7 4,35 8 4,79 9 5,05 10 5,17 Scale-up factor is relative to one client the number of completed queries in a time frame. (throughput) This test was done on a 16 core Intel-box (4-way Xeon E7340). The results of TPC-B benchmark are looking similar. Sven. Thomas Finneid schrieb: > Hi > > I couldnt find any specifics on this subject in the documentation, so I > thought I'd ask the group. > > how does pg utilise multi cpus/cores, i.e. does it use more than one > core? and possibly, how, are there any documentation about this. > > thomas > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend -- Sven Geisler Tel +49.30.921017.81 Fax .50 Senior Developer, AEC/communications GmbH & Co. KG Berlin, Germany