Re: limiting query time and/or RAM

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Alan McKay <alan(dot)mckay(at)gmail(dot)com>
Cc: Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: limiting query time and/or RAM
Date: 2009-09-17 19:23:02
Message-ID: dcc563d10909171223v320cf09m56f415134b64b416@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Sep 17, 2009 at 1:19 PM, Alan McKay <alan(dot)mckay(at)gmail(dot)com> wrote:
>> Generally speaking work_mem limits ram used.  What are your
>> non-default postgresql.conf settings?
>
> This cannot be right because we had queries taking 4G and see our
> setting is such :

Are you sure they were using that much memory? If you see this in TOP:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
8528 postgres 16 0 8458m 359m 349m R 38.7 1.1 0:04.46 postgres:

You do know that the query here is using 359-349 Megs, right, not 8G.

> work_mem = 2MB                          # min 64kB
>
> I'll have to find a copy of the default file to figure out what my
> non-defaults are

Just look for things that have no # in front of them.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martin Gainty 2009-09-17 19:29:24 Re: 'Weird' errors
Previous Message Alan McKay 2009-09-17 19:19:22 Re: limiting query time and/or RAM