From: Josh Berkus <josh@agliodbs.com>
To: scott.marlowe <scott.marlowe@ihs.com>
To: pgsql-performance@postgresql.org
Subject: Re: postgresql.conf
Date: Wed, 30 Jul 2003 10:19:21 -0700
Message-ID: <200307301019.21870.josh@agliodbs.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0307301028220.24999-100000@css120.ihs.com>
References: <Pine.LNX.4.33.0307301028220.24999-100000@css120.ihs.com>
Scott,
> I'm guessing OLTP needs things like FSM cranked up,
> OLAP (a for analytical) needs more shared buffers and sort memory
> Webserver might be better served just slightly higher values than default
> but well under those of either OLTP or OLAP...
Yes. Take sort_mem for example:
OLTP_SM 1024
OLTP_LM 2048
OLAP_SM 4096
OLAP_LM 16384
WWW_SM 512
WWW_LM 1024
Workstation 1024
The basic idea is:
More RAM => more sort_mem
More concurrent queries => less sort_mem
Larger data sets => more sort_mem
Lots of grouped aggregates => more sort_mem
--
-Josh Berkus
Aglio Database Solutions
San Francisco
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-performance@postgresql.org
Cc: josh@agliodbs.com, scott.marlowe@ihs.com
Subject: Re: postgresql.conf
In-Reply-To: <200307301019.21870.josh@agliodbs.com>
References: <Pine.LNX.4.33.0307301028220.24999-100000@css120.ihs.com> <200307301019.21870.josh@agliodbs.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