From: | "Midge Brown" <midgems(at)sbcglobal(dot)net> |
---|---|
To: | "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> |
Cc: | <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: settings input for upgrade |
Date: | 2011-08-22 16:34:14 |
Message-ID: | E8FE04D126994AC9A7AE0299DE241439@BERNICE |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Thank you. I'll set work_mem back to 16MB and see what happens from there.
-Midge
----- Original Message -----
From: Scott Marlowe
To: Midge Brown
Cc: pgsql-performance(at)postgresql(dot)org
Sent: Saturday, August 20, 2011 9:01 PM
Subject: Re: [PERFORM] settings input for upgrade
On Thu, Aug 18, 2011 at 3:55 PM, Midge Brown <midgems(at)sbcglobal(dot)net> wrote:
> Here are the changes I made to postgres.conf. The only differences between
> the conf file for DB1 and those for DB2 & 3 are the port and
> effective_cache_size (which I made slightly smaller -- 8 GB instead of 10 --
> for the 2 write-heavy DBs). The 600 max connections are often idle and don't
> get explicitly closed in the application. I'm looking at connection pooling
> as well.
> work_mem = 128MB
I'd lower this unless you are certain that something like 16MB just
isn't gonna get similar performance. Even with mostly connections
idle, 128M is a rather large work_mem. Remember it's per sort, per
connection. It can quickly cause the kernel to dump file cache that
keeps the machine running fast if a couple dozen connections run a
handful of large sorts at once. What happens is that while things run
smooth when there's low to medium load, under high load the machine
will start thrashing trying to allocate too much work_mem and then
just slow to a crawl.
From | Date | Subject | |
---|---|---|---|
Next Message | Midge Brown | 2011-08-22 16:48:40 | Re: settings input for upgrade |
Previous Message | Scott Marlowe | 2011-08-22 01:26:18 | Re: settings input for upgrade |