X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0817C55486 for ; Thu, 24 Feb 2005 15:37:56 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 68039-01 for ; Thu, 24 Feb 2005 15:37:52 +0000 (GMT) Received: from koolancexeon.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by svr1.postgresql.org (Postfix) with ESMTP id 920E25533E for ; Thu, 24 Feb 2005 15:37:51 +0000 (GMT) Received: mail.g2switchworks.com 10.10.1.8 from 10.10.1.37 10.10.1.37 via HTTP with MS-WebStorage 6.5.6944 Received: from state.g2switchworks.com by mail.g2switchworks.com; 24 Feb 2005 09:38:01 -0600 Subject: Re: Configuration for my server From: Scott Marlowe To: Marcin Giedz Cc: pgsql-admin@postgresql.org In-Reply-To: <200502241454.46733.marcin.giedz@eulerhermes.pl> References: <200502241454.46733.marcin.giedz@eulerhermes.pl> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1109259480.30529.172.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 24 Feb 2005 09:38:00 -0600 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/283 X-Sequence-Number: 16451 On Thu, 2005-02-24 at 07:54, Marcin Giedz wrote: > Hello... > > Here is my server hardware configuration: 2x Xeon 1MB Cache 3GHZ + 4GB RAM > basicly it one of Intel Server SR2400 configuration ;) with two Seagate discs > 146GB 15k connected with RAID1. I have installed PSQL ver. 8.0 and try to > find best configuration. Nowadys we have about 300 clients connected to mysql > server (we plan to switch to postgresql) but in the future there will be even > 1 thousand clients. Can anyone please help me what should I change in > postgresql.conf to achieve very good performance ;) Firstly, read this document: http://www.varlena.com/varlena/GeneralBits/Tidbits/perf.html It's generally considered one of the better tuning guides for PotsgreSQL. Secondly, if your database is going to handle a fair bit of writing then make sure your RAID controller has battery backed cache on it. With 300 to 1000 users, and 5% or so writing, this isn't an option, it's a requirement. :) On a fast machine with lots of memory, it often pays to drop random_page_cost to 1.2 to 1.4 or so. Mount your file system noatime