Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 6DC382E0064 for ; Sat, 26 Apr 2008 11:12:50 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 66798-01 for ; Sat, 26 Apr 2008 11:12:38 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from secure.socket.ch (secure.socket.ch [212.103.70.36]) by developer.postgresql.org (Postfix) with ESMTP id E251E2E0031 for ; Sat, 26 Apr 2008 11:12:46 -0300 (ADT) Received: from 84-75-214-202.dclient.hispeed.ch ([84.75.214.202] helo=macbook.internal.loc) by secure.socket.ch with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Jpl8q-00042Z-7L; Sat, 26 Apr 2008 16:12:42 +0200 Cc: pgsql-performance@postgresql.org Message-Id: <89819E8B-83D8-43B9-80A3-1DDC3320BEE1@socket.ch> From: Thomas Spreng To: Scott Marlowe In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: Oddly slow queries Date: Sat, 26 Apr 2008 16:12:39 +0200 References: <3D7728ED-3D36-47E6-9266-351073ED4E11@socket.ch> <60y77du7qs.fsf@dba2.int.libertyrms.com> <20B852C4-2ACA-445F-9289-558B6C86BAB4@socket.ch> <87mynp3h3q.fsf@wolfe.cbbrowne.com> <7A2BA520-ED19-418F-9339-95C7F7158664@socket.ch> X-Mailer: Apple Mail (2.919.2) X-SA-Exim-Connect-IP: 84.75.214.202 X-SA-Exim-Mail-From: spreng@socket.ch X-SA-Exim-Scanned: No (on secure.socket.ch); SAEximRunCond expanded to false 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: 200804/371 X-Sequence-Number: 29864 On 22.04.2008, at 17:25, Scott Marlowe wrote: > On Tue, Apr 22, 2008 at 7:42 AM, Thomas Spreng > wrote: >> >> I think I'll upgrade PostgreSQL to the latest 8.3 version in the next >> few days anyway, along with a memory upgrade (from 1.5GB to 4GB) >> and a >> new 2x RAID-1 (instead of RAID-5) disk configuration. I hope that >> this >> has already a noticeable impact on the performance. > > Note that if you have a good RAID controller with battery backed cache > and write back enabled, then you're probably better or / at least as > well off using four disks in a RAID-10 than two separate RAID-1 sets > (one for xlog and one for data). I just wanted to let you know that upgrading Postgres from 8.1 to 8.3, RAM from 1.5GB to 4GB and changing from a 3 disk RAID5 to 2x RAID1 (OS & WAL, Tablespace) led to a significant speed increase. What's especially important is that those randomly slow queries seem to be gone (for now). Thanks for all the help. Cheers, Tom