X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 8728E9FA293 for ; Thu, 18 May 2006 11:48:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 03703-02 for ; Thu, 18 May 2006 11:48:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 3C9C29F9C18 for ; Thu, 18 May 2006 11:48:25 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k4IEmKDO013689; Thu, 18 May 2006 10:48:20 -0400 (EDT) To: "Mikael Carneholm" cc: "Olivier Andreotti" , pgsql-performance@postgresql.org Subject: Re: Benchmarck PostgreSQL 8.1.4 MySQL 5.0.20 and Oracle 10g2 In-reply-to: <7F10D26ECFA1FB458B89C5B4B0D72C2B459FFB@sesrv12.wirelesscar.com> References: <7F10D26ECFA1FB458B89C5B4B0D72C2B459FFB@sesrv12.wirelesscar.com> Comments: In-reply-to "Mikael Carneholm" message dated "Thu, 18 May 2006 16:11:51 +0200" Date: Thu, 18 May 2006 10:48:20 -0400 Message-ID: <13688.1147963700@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/387 X-Sequence-Number: 19174 "Mikael Carneholm" writes: > Btw, check you logfile for hints regarding increasing max_fsm_pages, and > consider increasing checkpoint_segments as well. You could also play > with more aggressive bgwriter_* params to reduce the risk for long > vacuum pauses. Yeah, checkpoint_segments is a really critical number for any write-intensive situation. Pushing it up to 30 or more can make a big difference. You might want to set checkpoint_warning to a large value (300 or so) so you can see in the log how often checkpoints are happening. You really don't want checkpoints to happen more than about once every five minutes, because not only does the checkpoint itself cost a lot of I/O, but there is a subsequent penalty of increased WAL traffic due to fresh page images getting dumped into WAL. regards, tom lane