Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 26A652E0058 for ; Thu, 17 Apr 2008 15:46:19 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 58681-09 for ; Thu, 17 Apr 2008 15:46:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from morework.geizhals.at (home.geizhals.at [213.229.14.34]) by developer.postgresql.org (Postfix) with ESMTP id 241F12E0032 for ; Thu, 17 Apr 2008 15:46:15 -0300 (ADT) Received: from localhost (morework [127.0.0.1]) by morework.geizhals.at (Postfix) with ESMTP id C560918C6C0 for ; Thu, 17 Apr 2008 20:46:11 +0200 (CEST) X-Virus-Scanned: amavisd-new at geizhals.at Received: from morework.geizhals.at ([127.0.0.1]) by localhost (morework.geizhals.at [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4kv-Gsx8DEB0 for ; Thu, 17 Apr 2008 20:46:03 +0200 (CEST) Received: from [172.16.43.6] (unknown [172.16.43.6]) by morework.geizhals.at (Postfix) with ESMTP for ; Thu, 17 Apr 2008 20:46:03 +0200 (CEST) Message-ID: <48079AED.8090906@geizhals.at> Date: Thu, 17 Apr 2008 20:46:05 +0200 From: Marinos Yannikos User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Background writer underemphasized ... References: <480619CA.2080904@geizhals.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/252 X-Sequence-Number: 29745 Greg Smith schrieb: > You also didn't mention what disk controller you have, or how much write > cache it has (if any). 8.3.1, Controller is http://www.infortrend.com/main/2_product/es_a08(12)f-g2422.asp with 2GB cache (writeback was enabled). > That's almost turning the background writer off. If that's what > improved your situation, you might as well as turn it off altogether by > setting all the bgwriter_lru_maxpages parameters to be 0. The > combination you describe here, running very infrequently but with > lru_maxpages set to its maximum, is a bit odd. Perhaps the background writer takes too long to find the required number of dirty pages among the 16GB shared buffers (currently), which should be mostly clean. We could reduce the shared buffers to a more commonly used amount (<= 2GB or so) but some of our most frequently used tables are in the 8+ GB range and sequential scans are much faster with this setting (for ~, ~* etc.). >> Other options we have tried/used were shared_buffers between 200MB and >> 20GB, wal_buffers = 256MB, wal_writer_delay=5000ms ... > > The useful range for wal_buffers tops at around 1MB, so no need to get > extreme there. wal_writer_delay shouldn't matter here unless you turned > on asyncronous commit. I was under the impression that wal_buffers should be kept at/above the size of tyical transactions. We do have some large-ish ones that are time-critical. -mjy