X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CCD4BD1B267 for ; Fri, 25 Jun 2004 06:10:00 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79973-05 for ; Fri, 25 Jun 2004 09:09:55 +0000 (GMT) Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by svr1.postgresql.org (Postfix) with ESMTP id 0EB71D1BB13 for ; Fri, 25 Jun 2004 06:09:52 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-31.mail.demon.net with esmtp (Exim 3.35 #1) id 1BdmiX-0008l4-0V; Fri, 25 Jun 2004 10:09:53 +0100 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 11AF616364; Fri, 25 Jun 2004 10:09:52 +0100 (BST) Message-ID: <40DBEBDF.3090605@archonet.com> Date: Fri, 25 Jun 2004 10:09:51 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 0.7 (X11/20040615) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Cheston Cc: pgsql-performance@postgresql.org Subject: Re: postgres 7.4 at 100% References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/255 X-Sequence-Number: 7313 Chris Cheston wrote: > Hi all, > > I was running Postgres 7.3 and it was running at about 15% with my > application. On Postgres 7.4 on another box, it was running at 100%... People are going to need more information. Are you talking about CPU/disk IO/memory? > My settings are default on both boxes I think. Doubtful - PG crawls with the default settings. Check your old postgresql.conf file and compare. Also, read the tuning article at: http://www.varlena.com/varlena/GeneralBits/Tidbits/index.php > There are only about 20 inserts per second, which is really low. > Anyone have any ideas as to something I have to do to Postgres 7.4 to > change it from the default so that it's not eating up all my CPU? I > have no clue how to debug this... What does top/vmstat/iostat show during heavy usage? > Help please!!!! Should I downgrade to 7.3 to see what happens? BTW > I'm running Postgres 7.3.2 on: > > Linux box 2.4.25-040218 #1 SMP Wed Feb 18 17:59:29 CET 2004 i686 i686 > i386 GNU/Linux > > on a single processor P4 1.4GHz, 512 MB RAM. Does the SMP kernel do > something with the single processor CPU? or should this not affect > psql? Don't know about the SMP thing. Unlikely that one of the big distributions would mess that up much though. -- Richard Huxton Archonet Ltd