Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 1966E9FBF94 for ; Wed, 11 Jul 2007 13:58:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 96230-10 for ; Wed, 11 Jul 2007 13:57:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 3C9909FBF6E for ; Wed, 11 Jul 2007 13:57:54 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l6BGvgEx027289; Wed, 11 Jul 2007 12:57:42 -0400 (EDT) To: Patric de Waha cc: pgsql-performance@postgresql.org Subject: Re: Two questions.. shared_buffers and long reader issue In-reply-to: <4694F8C5.2040005@p-dw.com> References: <4694F8C5.2040005@p-dw.com> Comments: In-reply-to Patric de Waha message dated "Wed, 11 Jul 2007 17:35:33 +0200" Date: Wed, 11 Jul 2007 12:57:42 -0400 Message-ID: <27288.1184173062@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/101 X-Sequence-Number: 25785 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