X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9B962D1BA92 for ; Thu, 6 Nov 2003 14:38:06 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 88220-01 for ; Thu, 6 Nov 2003 10:37:39 -0400 (AST) Received: from jefftrout.com (h00a0cc4084e5.ne.client2.attbi.com [24.128.241.68]) by svr1.postgresql.org (Postfix) with SMTP id 02FADD1BAED for ; Thu, 6 Nov 2003 10:37:35 -0400 (AST) Received: (qmail 33132 invoked from network); 6 Nov 2003 14:37:37 -0000 Received: from unknown (HELO squeegit) (threshar@10.10.10.10) by 10.10.10.10 with SMTP; 6 Nov 2003 14:37:37 -0000 Date: Thu, 6 Nov 2003 09:37:25 -0500 From: Jeff To: Marek Florianczyk Cc: pgsql-admin@postgresql.org Subject: Re: performance problem - 10.000 databases Message-Id: <20031106093725.20d3a43f.threshar@torgo.978.org> In-Reply-To: <1068128463.10743.30.camel@franki-laptop.tpi.pl> References: <1068128463.10743.30.camel@franki-laptop.tpi.pl> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/90 X-Sequence-Number: 11078 On 06 Nov 2003 15:21:03 +0100 Marek Florianczyk wrote: > fsync = false HOLD THE BOAT THERE BATMAN! I would *STRONGLY* advise not running with fsync=false in production as PG _CANNOT_ guaruntee data consistancy in the event of a hardware failure. It would sure suck to have a power failure screw up your nice db for the users! > wal_buffers = 1024 This also seems high. come to think about it- shared_buffers is also high. > commit_delay = 10000 I could also read to data loss, but you'll get a speed increase on inserts. One of the best things you can do to increase insert speed is a nice, battery backed raid card with a pile of disks hanging off of it. -- Jeff Trout http://www.jefftrout.com/ http://www.stuarthamm.net/