Re: Best practices for effective_io_concurrency

From: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
To: Greg Smith <gsmith(at)gregsmith(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Best practices for effective_io_concurrency
Date: 2009-10-19 20:38:19
Message-ID: c3a7de1f0910191338j65453065laf82aebc3133f3c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Oct 19, 2009 at 7:12 PM, Greg Smith <gsmith(at)gregsmith(dot)com> wrote:
> On Mon, 19 Oct 2009, Sergey Konoplev wrote:
>
>> I feel it rater significant for PG performance and would like to ask gurus
>> to provide some more description here.
>
> It's probably not as significant as you are hoping.  Currently the code only
> kicks in when you're doing a Bitmap Heap Scan, which is really helpful for
> them, but of no help for any other type of query.  And I've only seen it
> actually work at all on Linux.  It might work on BSD and Mac OS X systems,
> certainly doesn't do anything on Solaris and Windows.

Thanx for the details.

>
>> Also I've found some info in EnterpriseDB documentation
>> (http://www.enterprisedb.com/docs/en/8.3R2/perf/Performance_Guide-16.htm).
>> Is it all actual for PG8.4?
>
> That's is almost all correct for 8.4.  The settings mentioned there that
> start with the name "edb" are not available to tweak
> (edb_prefetch_indexscans and edb_enable_icach) in standard PostgreSQL, the
> rest of it is good background and advice.  The basic idea is that you start
> with setting the value to the number of working drives in the disk array the
> database is on and see if I/O performance goes up and/or query speed drops
> afterwards.  If it does you might try further increases beyond that even.
>
> As for why there isn't a better tuning guide than just those simple
> guidelines, it's not that easy to show a situation where the type of bitmap
> scan this parameter impacts is used on a generated data set, even though
> it's not that uncommon in real-world data.  It's hard both to make generic
> suggestions here and to even demonstrate the feature at work.

Well wouldn't using loosy indexes be the reason to increase this parameter?
And would it somehow affect (I mean negative) another queries which
doesn't lead to Bitmap Heap Scans?

--
Regards,
Sergey Konoplev
--
PostgreSQL articles in english & russian
http://gray-hemp.blogspot.com/search/label/postgresql/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Hunsberger 2009-10-19 20:52:19 Re: Free Tool to design Postgres Databases
Previous Message Tom Lane 2009-10-19 19:20:07 Re: autovacuum and immediate shutdown issues