Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id EE9BD6323C5 for ; Fri, 16 Jan 2009 11:25:52 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 57192-06 for ; Fri, 16 Jan 2009 11:25:48 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from is.rice.edu (is.rice.edu [128.42.42.24]) by mail.postgresql.org (Postfix) with ESMTP id F3E3363238E for ; Fri, 16 Jan 2009 11:25:46 -0400 (AST) Received: from scan1.mail.rice.edu (scan1.mail.rice.edu [128.42.58.160]) by is.rice.edu (Postfix) with ESMTP id 3BEB84181D; Fri, 16 Jan 2009 09:25:44 -0600 (CST) Received: from is.rice.edu ([128.42.42.24]) by scan1.mail.rice.edu (scan1.mail.rice.edu [128.42.58.160]) (amavisd-new, port 10024) with ESMTP id 26858-05; Fri, 16 Jan 2009 09:25:43 -0600 (CST) Received: by is.rice.edu (Postfix, from userid 18612) id 81AF441819; Fri, 16 Jan 2009 09:25:43 -0600 (CST) Date: Fri, 16 Jan 2009 09:25:43 -0600 From: Kenneth Marshall To: Francesco Andreozzi Cc: pgsql-admin@postgresql.org Subject: Re: tuning tips, speed problem Message-ID: <20090116152543.GU14570@it.is.rice.edu> References: <20090116161802.v6tj5jmhw0c80sow@webmail.gamestorm.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090116161802.v6tj5jmhw0c80sow@webmail.gamestorm.it> User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: by amavis-2.2.1 at scan1.mail.rice.edu X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200901/51 X-Sequence-Number: 31098 On Fri, Jan 16, 2009 at 04:18:02PM +0100, Francesco Andreozzi wrote: > Hi all, i send this mesage because i just made a migration from my old > mysql db on a more robust postgres server. > I'm using version 8.1 on a linux debian 4.0 > i have a dual core XEON 2.33GHz and 2Gb of ram ... 2 disk 15k mirrored > database works good but the performance are horrible! i hope is my fault of > settings.... and this message is just a help request to see whats i missing > to set! > i did only few changes on a default postgresql.conf > i simply playd with shared buffer... but on a mysql to execute a simple > select with an order by the time was jus 1 or 2 seconds ... on this > installation the time it's about 10 seconds or more .... and if more than > one query is executed at the same time the time increase! > > i just add here a show all output to see if somethiong uis wrong ... i hope > someone can help me ! i really would like to use postgres on this > database!! > > Thankyou > Francesco > Francesco, Try increasing your work_memory value and shared_buffers. 8MB is not very large on a 2GB system. Also, 8.3.5 is much improved over 8.1. Cheers, Ken > shared_buffers 1000 ... > work_mem 1024