Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 380D79FB204 for ; Wed, 11 Jul 2007 17:49:05 -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 81317-04 for ; Wed, 11 Jul 2007 17:48:55 -0300 (ADT) X-Greylist: delayed 05:13:14.895394 by SQLgrey-1.7.5 Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.de [194.25.134.81]) by postgresql.org (Postfix) with ESMTP id CC3189FA34F for ; Wed, 11 Jul 2007 17:49:01 -0300 (ADT) Received: from fwd26.aul.t-online.de by mailout03.sul.t-online.com with smtp id 1I8j7K-0000Yq-06; Wed, 11 Jul 2007 22:48:58 +0200 Received: from [192.168.1.2] (TtN4zGZLYeCA0zcTvRfu+OGEQOFY32BovS3gTpytnjX3RyleGAiQUe@[87.177.81.55]) by fwd26.aul.t-online.de with esmtp id 1I8j7G-1jiDlQ0; Wed, 11 Jul 2007 22:48:54 +0200 Message-ID: <46954233.4050807@p-dw.com> Date: Wed, 11 Jul 2007 22:48:51 +0200 From: Patric de Waha User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 CC: pgsql-performance@postgresql.org Subject: Re: Two questions.. shared_buffers and long reader issue References: <4694F8C5.2040005@p-dw.com> <27288.1184173062@sss.pgh.pa.us> In-Reply-To: <27288.1184173062@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ID: TtN4zGZLYeCA0zcTvRfu+OGEQOFY32BovS3gTpytnjX3RyleGAiQUe@t-dialin.net X-TOI-MSGID: 860c9e24-54b0-4e0c-abfc-af9d1138c373 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.575 tagged_above=0 required=5 tests=AWL=0.624, BAYES_40=-0.185, FORGED_RCVD_HELO=0.135, UNPARSEABLE_RELAY=0.001 X-Spam-Level: X-Archive-Number: 200707/124 X-Sequence-Number: 25808 Ok thanks. iostat confirmed it's an IO bottleneck. Will add some discs to the RAID unit. Used 4 Raptor discs in Raid 10 until now. best regards, patric Tom Lane wrote: > Patric de Waha writes: > >> Postgres is running on a dedicated server P4 DualCore, 4 Gig Ram. >> > > When you don't even mention your disk hardware, that's a bad sign. > In a database server the disk is usually more important than the CPU. > > >> Why do long readers influence the rest of the transactions in such a >> heavy way? >> Any configuration changes which can help here? >> Is it a disc-IO bottleneck thing? >> > > Very possibly. Have you spent any time watching "vmstat 1" output > to get a sense of whether your I/O is saturated? > > >> WAL files are located on another disc than the dbase itself. >> > > That's good, but it only relates to update performance not SELECT > performance. > > >> effective_cache_size = 5000 >> > > That's way too small for a 4G machine. You could probably stand to > boost maintenance_work_mem too. However, neither of these have any > immediate relationship to your problem. > > regards, tom lane >