pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Postgresql on an AMD64 machine
Date: Wed, 08 Jun 2005 07:16:14 +0100
Message-ID: <1118211374.3844.1617.camel@localhost.localdomain> (raw)
In-Reply-To: <26813.1118202633@sss.pgh.pa.us>
References: <1118080420.1644.23.camel@penguin1>
	<20050607202755.GA28361@surnet.cl>
	<18285.1118178689@sss.pgh.pa.us>
	<200506072005.47418.josh@agliodbs.com>
	<26813.1118202633@sss.pgh.pa.us>

On Tue, 2005-06-07 at 23:50 -0400, Tom Lane wrote:
> > Regarding 2GB memory allocation, though, we *could* really use support for 
> > work_mem and maintenance_mem of > 2GB.   
> 
> Again, let's see some evidence that it's worth putting effort into that.
> (Offhand it seems this is probably an easier fix than changing the
> shared-memory allocation code; but conventional wisdom is that really
> large values of work_mem are a bad idea, and I'm not sure I see the case
> for maintenance_work_mem above 2Gb either.)

We have strong evidence that an in-memory sort is better than an
external sort. And strong evidence that a hash-join/aggregate is faster
than a sort-merge or sort-aggregate.

What other evidence do you need?

The idea that work_mem is bad is a workload dependent thing. It assumes
that using the memory for other things is useful. That isn't the case
for apps with large tables, which just churn through memory with zero
gain.

In 8.2, I imagine a workload management feature that would limit the
allocation of work_mem and maintenance_work_mem, so that they can be
more safely allocated to very high values in production. That would open
the door to the use of very high work_mem values.

Best Regards, Simon Riggs




view thread (25+ messages)  latest in thread

Message-ID: <1118211374.3844.1617.camel@localhost.localdomain>
Permalink:  ../1118211374.3844.1617.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1118211374.3844.1617.camel@localhost.localdomain

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: simon@2ndquadrant.com, tgl@sss.pgh.pa.us, josh@agliodbs.com
  Subject: Re: Postgresql on an AMD64 machine
  In-Reply-To: <1118211374.3844.1617.camel@localhost.localdomain>

* 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