pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Marinos J. Yannikos <mjy@geizhals.at>
Cc: josh@agliodbs.com
Cc: pgsql-performance@postgresql.org
Subject: Re: optimization ideas for frequent, large(ish) updates
Date: Sun, 15 Feb 2004 12:51:41 +0800
Message-ID: <402EFADD.4040100@familyhealth.com.au> (raw)
In-Reply-To: <402ED348.7000800@geizhals.at>
References: <402C213A.4030105@geizhals.at>
	<200402122228.41680.josh@agliodbs.com>
	<402ED348.7000800@geizhals.at>

> 800MB is correct, yes... There are usually only 10-30 postgres processes 
>  active (imagine 5-10 people working on the web front-end while cron 
> jobs access the db occasionally). Very few queries can use such large 
> amounts of memory for sorting, but they do exist.

But remember that means that if you have 4 people doign 2 sorts each at 
the same time, postgres will use 6.4GB RAM maximum.  The sort_mem 
parameter means that if a sort is larger than the max, it will be done 
in disk swap.

Chris




view thread (10+ messages)  latest in thread

Message-ID: <402EFADD.4040100@familyhealth.com.au>
Permalink:  ../402EFADD.4040100@familyhealth.com.au/
Also on:    postgresql.org/message-id/402EFADD.4040100@familyhealth.com.au

 · 

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-performance@postgresql.org
  Cc: chriskl@familyhealth.com.au, mjy@geizhals.at, josh@agliodbs.com
  Subject: Re: optimization ideas for frequent, large(ish) updates
  In-Reply-To: <402EFADD.4040100@familyhealth.com.au>
  References: <402C213A.4030105@geizhals.at> <200402122228.41680.josh@agliodbs.com> <402ED348.7000800@geizhals.at> <402EFADD.4040100@familyhealth.com.au>

* 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