Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id C911C9FBCB6 for ; Wed, 9 May 2007 11:28:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 46565-01 for ; Wed, 9 May 2007 11:28:49 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail.net-domino.com (www.net-domino.com [74.208.11.96]) by postgresql.org (Postfix) with ESMTP id 336539FBE12 for ; Wed, 9 May 2007 11:28:49 -0300 (ADT) Received: from [127.0.0.1] (u15245314.onlinehome-server.com [74.208.11.96]) by mail.net-domino.com (8.13.7/8.13.6) with ESMTP id l49ESaJg016933; Wed, 9 May 2007 10:28:43 -0400 Message-ID: <4641DAE4.4020805@mochima.com> Date: Wed, 09 May 2007 10:29:56 -0400 From: Carlos Moreno User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Daniel Griscom CC: pgsql-performance@postgresql.org Subject: Re: Throttling PostgreSQL's CPU usage References: <20070509055655.D4C24DCC04A@svr2.hagander.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Added-Header: Sample_milter accepted message X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/191 X-Sequence-Number: 24581 Daniel Griscom wrote: > Thanks again for all the feedback. Running on a dual processor/core > machine is clearly a first step, and I'll look into the other > suggestions as well. As per one of the last suggestions, do consider as well putting a dual hard disk (as in, independent hard disks, to allow for simultaneous access to both). That way, you can send the WAL (px_log directory) to a separate physical drive and improve performance (reduce the potential for bottlenecks) if there is a considerable amount of writes. With Windows, you can mount specific directories to given HD partitions --- that would do the trick. Also, of course, do make sure that you give it a generous amount of RAM, so that an as-large-as-possible fraction of the read operations are done directly off the machine's memory. BTW, have you considered using a *separate* machine for PostgreSQL? (that way this machine could be running on Linux or some Unix flavor, and the Windows machine is dedicated to the ActiveX rendering stuff). I mean, if you are going to get a new machine because you need to replace it, you might as well get a new machine not as powerful, since now you will have the dual-CPU given by the fact that there are two machines. Good luck! Carlos --