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 73447D1BACF for ; Thu, 6 Nov 2003 14:47:08 +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 79490-09 for ; Thu, 6 Nov 2003 10:46:41 -0400 (AST) Received: from mail.tpi.pl (mail.tpi.pl [193.110.121.18]) by svr1.postgresql.org (Postfix) with ESMTP id 710EED1BB36 for ; Thu, 6 Nov 2003 10:46:37 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mail.tpi.pl (Postfix) with ESMTP id CB40246EDE; Thu, 6 Nov 2003 15:46:40 +0100 (CET) Received: from mail.tpi.pl ([127.0.0.1]) by localhost (silver [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10540-19; Thu, 6 Nov 2003 15:46:40 +0100 (CET) Received: from [10.5.3.38] (lan-out [193.110.121.17]) by mail.tpi.pl (Postfix) with ESMTP id 8BCAA46F5B; Thu, 6 Nov 2003 15:46:37 +0100 (CET) Subject: Re: performance problem - 10.000 databases From: Marek Florianczyk To: Jeff Cc: pgsql-admin@postgresql.org In-Reply-To: <20031106093725.20d3a43f.threshar@torgo.978.org> References: <1068128463.10743.30.camel@franki-laptop.tpi.pl> <20031106093725.20d3a43f.threshar@torgo.978.org> Content-Type: text/plain; charset=ISO-8859-2 Organization: Message-Id: <1068129523.10743.40.camel@franki-laptop.tpi.pl> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 06 Nov 2003 15:38:43 +0100 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at TP Internet X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/91 X-Sequence-Number: 11079 W li¶cie z czw, 06-11-2003, godz. 15:37, Jeff pisze: > 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! Sure I know, but with WAL it will make fsync every some? seconds, right? Maybe users data, aren't so critical ;) it's not for bank, only for www sites. I will try with fsync=true also. > > > > 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. we will put 4 disks for /data directory ( raid1+0 ) so it will have performance and fault tolerance, so it should be OK. greetings Marek