Re: postgresql.conf recommendations

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: Charles Gomes <charlesrg(at)outlook(dot)com>, Strahinja Kustudić <strahinjak(at)nordeus(dot)com>, Kevin Grittner <kgrittn(at)ymail(dot)com>, Johnny Tan <johnnydtan(at)gmail(dot)com>, "ac(at)hsk(dot)hk" <ac(at)hsk(dot)hk>, Josh Krupka <jkrupka(at)gmail(dot)com>, Alex Kahn <alex(at)paperlesspost(dot)com>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: postgresql.conf recommendations
Date: 2013-02-10 04:02:55
Message-ID: CAMkU=1y5-GzUUkXhdNZyfyBpHj8ELFwPqxxeqYSXauXzi=98sg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Saturday, February 9, 2013, Scott Marlowe wrote:

> On Sat, Feb 9, 2013 at 1:16 PM, Jeff Janes <jeff(dot)janes(at)gmail(dot)com<javascript:;>>
> wrote:
> > On Sat, Feb 9, 2013 at 6:51 AM, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com<javascript:;>>
> wrote:
> >> On Thu, Feb 7, 2013 at 7:41 AM, Charles Gomes <charlesrg(at)outlook(dot)com<javascript:;>>
> wrote:
> >>> I've benchmarked shared_buffers with high and low settings, in a server
> >>> dedicated to postgres with 48GB my settings are:
> >>> shared_buffers = 37GB
> >>> effective_cache_size = 38GB
> >>>
> >>> Having a small number and depending on OS caching is unpredictable, if
> the
> >>> server is dedicated to postgres you want make sure postgres has the
> memory.
> >>> A random unrelated process doing a cat /dev/sda1 should not destroy
> postgres
> >>> buffers.
> >>> I agree your problem is most related to dirty background ration, where
> >>> buffers are READ only and have nothing to do with disk writes.
> >>
> >> You make an assertion here but do not tell us of your benchmarking
> >> methods.
> >
> > Well, he is not the only one committing that sin.
>
> I'm not asking for a complete low level view. but it would be nice to
> know if he's benchmarking heavy read or write loads, lots of users, a
> few users, something. All we get is "I've benchmarked a lot" followed
> by "don't let the OS do the caching." At least with my testing I was
> using a large transactional system (heavy write) and there I KNOW from
> testing that large shared_buffers do nothing but get in the way.
>

Can you see this with pgbench workloads? (it is certainly write heavy)

I've tried to reproduce these problems, and was never able to.

>
> all the rest of the stuff you mention is why we have effective cache
> size which tells postgresql about how much of the data CAN be cached.
>

The effective_cache_size setting does not figure into any of the things I
mentioned.

Cheers,

Jeff

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Amit kapila 2013-02-10 06:52:25 Re: Slow query even with aggressive auto analyze
Previous Message Scott Marlowe 2013-02-09 21:03:35 Re: postgresql.conf recommendations