pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PostgreSQL <martin@portant.com>
To: pgsql-performance@postgresql.org
Subject: Re: 8.1 iss
Date: Mon, 7 Nov 2005 11:22:16 -0600
Message-ID: <dko2ge$2cnd$1@news.hub.org> (raw)
References: <dkko49$1v06$1@news.hub.org>

My most humble apologies to the pg development team (pg_lets?).

I took Greg Stark's advice and set:

shared_buffers = 10000  # was 50000
work_mem = 1048576    # 1Gb - was 16384

Also, I noticed that the EXPLAIN ANALYZE consistently thought reads would 
take longer than they actually did, so I decreased random_page_cost down to 
1 (the server has a SATA Raid at level 10).

Queries that previously seemed to stall out are still a little slow but 
nothing like before.  And I'm seeing a more normal balance of CPU and disk 
i/o while a query is running instead of the high-cpu-low-disk-read situation 
I was seeing before.  Concurrency is way up.

I tried a couple of interim sizes for work_mem and so far, the larger the 
better (the server has 16Gb).  I'll test a little larger size this evening 
and see what it does.  Yes, I've read the warning that this is per process.

Kudos to you Greg, thanks Luke for your comment (though it seems to disagree 
with my experience).  Also to Dennis, there were not drastic changes in the 
plan between 8.0 and 8.1, it was just the actual execution times.

Martin

"PostgreSQL" <martin@portant.com> wrote in message 
news:dkko49$1v06$1@news.hub.org...
> SELECT v_barcode, count(v_barcode) FROM lead GROUP BY v_barcode HAVING 
> count(*) > 1;
>
> This is a pretty good example of the place where 8.1 seems to be quite 
> broken.
... 





view thread (7+ messages)  latest in thread

Message-ID: <dko2ge$2cnd$1@news.hub.org>
Permalink:  ../dko2ge$2cnd$1@news.hub.org/
Also on:    postgresql.org/message-id/dko2ge$2cnd$1@news.hub.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: martin@portant.com
  Subject: Re: 8.1 iss
  In-Reply-To: <dko2ge$2cnd$1@news.hub.org>

* 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