Skip site navigation (1) Skip section navigation (2)

Re: postgresql.conf

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>,<pgsql-performance(at)postgresql(dot)org>
Subject: Re: postgresql.conf
Date: 2003-07-30 17:19:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance

> 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

In response to

pgsql-performance by date

Next:From: Josh BerkusDate: 2003-07-30 17:28:50
Subject: Re: [SQL] function returning setof performance question
Previous:From: scott.marloweDate: 2003-07-30 16:59:23
Subject: postgresql.conf

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group