Re: Setting Shared-Buffers

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-admin(at)postgresql(dot)org>,"Tino Schwarze" <postgresql(at)tisc(dot)de>
Subject: Re: Setting Shared-Buffers
Date: 2009-07-10 14:16:34
Message-ID: 4A5706F20200002500028684@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tino Schwarze <postgresql(at)tisc(dot)de> wrote:

> I've seen PostgreSQL perform a lot worse after setting
> effective_cache_size to 2 GB on a 8 GB dedicated database system.
> The planner started ignoring indices and doing sequential scans.
> Lowering effective_cache_size to 512 MB solved that.

You'd probably get overall better plans by fixing that with other
configuration options. If the active portion of your database is
pretty well cached, you might try setting both random_page_cost and
seq_page_cost to 0.1. If your data isn't that well cached, you could
try leaving seq_page_cost at 1 but lower random_page_cost to somewhere
in the neighborhood of 2.

-Kevin

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message fatih ozturk 2009-07-10 14:58:33 Re: Setting kernel.shmmax
Previous Message Tino Schwarze 2009-07-10 14:03:21 Re: Setting Shared-Buffers