pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: mathieu@dezutter.org
Cc: pgsql-performance@postgresql.org
Subject: Re: Choice of bitmap scan over index scan
Date: Sun, 10 Jan 2010 09:53:51 -0600
Message-ID: <4B49A3AF020000250002E138@gw.wicourts.gov> (raw)

Mathieu De Zutter  wrote:
 
> Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz
> 2GB RAM
> 2x500GB RAID-1
 
> Running Debian/Etch AMD64
> PG version: PostgreSQL 8.3.8 on x86_64
 
> Server also runs DNS/Mail/Web/VCS/... for budget reasons.
> Database size is 1-2 GB. Also running copies of it for testing/dev.
 
I would try something like this and see how it goes:
 
shared_buffers = 200MB
work_mem = 32MB
effective_cache_size = 1.2GB
seq_page_cost = 0.1
random_page_cost = 0.1
 
Some of these settings require a PostgreSQL restart.
 
I may have gone too aggressively low on the page costs, but it seems
likely with a "1-2 GB" database and 2 GB RAM, the active portions of
your database will be fully cached in spite of the other
applications.  Besides looking at the impact on this one query, you
should keep an eye on all queries after such changes, and post for
any which become unacceptably slow.  Properly tuning something like
this can take a few iterations.
 
-Kevin





view thread (14+ messages)  latest in thread

Message-ID: <4B49A3AF020000250002E138@gw.wicourts.gov>
Permalink:  ../4B49A3AF020000250002E138@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4B49A3AF020000250002E138@gw.wicourts.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, mathieu@dezutter.org
  Subject: Re: Choice of bitmap scan over index scan
  In-Reply-To: <4B49A3AF020000250002E138@gw.wicourts.gov>
  References: <4B49A3AF020000250002E138@gw.wicourts.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox