Re: Setting Shared-Buffers - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: Setting Shared-Buffers
Date
Msg-id 4A5706F20200002500028684@gw.wicourts.gov
Whole thread Raw
In response to Re: Setting Shared-Buffers  (Tino Schwarze <postgresql@tisc.de>)
List pgsql-admin
Tino Schwarze <postgresql@tisc.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

pgsql-admin by date:

Previous
From: Tino Schwarze
Date:
Subject: Re: Setting Shared-Buffers
Next
From: fatih ozturk
Date:
Subject: Re: Setting kernel.shmmax