pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gary DeSorbo <isasitis@uchicago.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: DB Performance
Date: Fri, 01 Nov 2002 13:04:37 -0500
Message-ID: <27429.1036173877@sss.pgh.pa.us> (raw)
In-Reply-To: <v04210140b9e8695d1391@[172.16.0.83]>
References: <v04210140b9e8695d1391@[172.16.0.83]>

Gary DeSorbo <isasitis@uchicago.edu> writes:
> Postgres is configured as follows:

> sort_mem = 128672
> shared_buffers = 60800
> fsync = false

Yipes.  Back off that sort_mem setting --- that's 128M *per sort*,
which will undoubtedly run you out of memory (or at least into serious
swapping) as soon as several processes try to do concurrent sorts.
Something in the vicinity of 5 or 10 meg is probably more reasonable.

If you have multiple drives consider relocating the WAL (pg_xlog/)
onto a different drive, preferably one that normally doesn't touch
anything but WAL.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <27429.1036173877@sss.pgh.pa.us>
Permalink:  ../27429.1036173877@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27429.1036173877@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, isasitis@uchicago.edu
  Subject: Re: DB Performance
  In-Reply-To: <27429.1036173877@sss.pgh.pa.us>
  References: <v04210140b9e8695d1391@[172.16.0.83]> <27429.1036173877@sss.pgh.pa.us>

* 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