From: | Stephen Frost <sfrost(at)snowman(dot)net> |
---|---|
To: | Tom Wilcox <hungrytom(at)googlemail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Out of Memory and Configuration Problems (Big Computer) |
Date: | 2010-06-02 11:41:10 |
Message-ID: | 20100602114110.GB21875@tamriel.snowman.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
* Tom Wilcox (hungrytom(at)googlemail(dot)com) wrote:
> My plan now is to try increasing the shared_buffers, work_mem,
> maintenance_work_mem and apparently checkpoint_segments and see if that
> fixes it.
errrrr. work_mem and maintenance_work_mem aren't *limits*, they're
more like *targets*. The out of memory error you're getting isn't
because PG is hitting a limit you've set in postgresql.conf- it's
happening because PG is asking the OS for more memory (eg: malloc) and
getting told "sorry, no more available". To that end, you probably want
to consider *lowering* the above parameters (in particular,
maintenance_work_mem, since that's what ANALYZE uses, iirc). That will
cause PG to use less memory and/or spill things to disk instead of
trying to ask the OS for more memory than it has available.
What are those values currently set to? How much memory is in the box?
Have you looked at PG's memory usage while these queries are running?
Do you have any swap?
Thanks,
Stephen
From | Date | Subject | |
---|---|---|---|
Next Message | Sam Mason | 2010-06-02 11:43:36 | Re: Is it possible to make the order of output the same as the order of input parameters? |
Previous Message | Stephen Frost | 2010-06-02 11:31:12 | Re: Disable executing external commands from psql? |