From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Marcin Giedz <marcin.giedz@eulerhermes.pl>
Cc: pgsql-admin@postgresql.org
Subject: Re: Configuration for my server
Date: Thu, 24 Feb 2005 09:38:00 -0600
Message-ID: <1109259480.30529.172.camel@state.g2switchworks.com> (raw)
In-Reply-To: <200502241454.46733.marcin.giedz@eulerhermes.pl>
References: <200502241454.46733.marcin.giedz@eulerhermes.pl>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: smarlowe@g2switchworks.com, marcin.giedz@eulerhermes.pl
Subject: Re: Configuration for my server
In-Reply-To: <1109259480.30529.172.camel@state.g2switchworks.com>
References: <200502241454.46733.marcin.giedz@eulerhermes.pl> <1109259480.30529.172.camel@state.g2switchworks.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox