Re: weird performances problem

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: Guillaume Smet <guillaume(dot)smet(at)openwide(dot)fr>
Cc: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>, pgsql-performance(at)postgresql(dot)org
Subject: Re: weird performances problem
Date: 2005-11-18 16:13:12
Message-ID: 20051118161312.GC28967@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Fri, Nov 18, 2005 at 12:35:06AM +0100, Guillaume Smet wrote:
> sort_mem = 32768

I would be very suspicious of that much memory for sort. Please see
the docs for what that does. That is the amount that _each sort_ can
allocate before spilling to disk. If some set of your users are
causing complicated queries with, say, four sorts apiece, then each
user is potentially allocating 4x that much memory. That's going to
wreak havoc on your disk buffers (which are tricky to monitor on most
systems, and impossible on some).

This'd be the first knob I'd twiddle, for sure.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
It is above all style through which power defers to reason.
--J. Robert Oppenheimer

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Alan Stange 2005-11-18 16:13:44 Re: Hardware/OS recommendations for large databases (
Previous Message Vivek Khera 2005-11-18 16:07:04 Re: Hardware/OS recommendations for large databases (