Re: Tuning Help - What did I do wrong?

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-performance(at)postgresql(dot)org>, "Josh Trutwin" <josh(at)trutwins(dot)homeip(dot)net>
Subject: Re: Tuning Help - What did I do wrong?
Date: 2007-10-04 19:03:07
Message-ID: 4704F29B.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

>>> On Thu, Oct 4, 2007 at 10:28 AM, in message
<20071004102804(dot)3418912e(at)joplin(dot)trutwins(dot)homeip(dot)net>, Josh Trutwin
<josh(at)trutwins(dot)homeip(dot)net> wrote:
> running postgres 8.1.4

> # cat /proc/meminfo
> total: used: free: shared: buffers: cached:
> Mem: 3704217600 3592069120 112148480 0 39460864 2316271616

> shared_buffers = 16384 (was 1000)
> effective_cache_size = 10000 (was 1000)

It's kind of silly to tell PostgreSQL that its total cache space is 10000
pages when you've got more than that in shared buffers plus all that OS
cache space. Try something around 285000 pages for effective_cache_size.

> stats_command_string = on (was off)
> stats_block_level = on (was off)
> stats_row_level = on (was off)

> After making these changes, the performance on the server actually
> worsened. I slowly backed off on some of the paramaters but didn't
> seem to help.

Did you try turning off the collection of those additional statistics?
That isn't free.

You didn't get specific about what you saw in performance problems. If
you are seeing occasional "freezes" of all queries, you are likely looking
at a known issue with "spikiness" of disk output. For some this can be
corrected by using very aggressive background writer settings. Some have
solved it by disabling OS write delays. Some haven't found a solution and
are waiting for 8.3; there have been some serious changes made to attempt
to resolve this issue.

-Kevin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Josh Trutwin 2007-10-04 19:28:52 Re: Tuning Help - What did I do wrong?
Previous Message Tom Lane 2007-10-04 18:52:10 Re: quickly getting the top N rows