Skip site navigation (1) Skip section navigation (2)

Re: Performance

From: Claudio Freire <klaussfreire(at)gmail(dot)com>
To: Greg Smith <greg(at)2ndquadrant(dot)com>
Cc: James Mansion <james(at)mansionfamily(dot)plus(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Tomas Vondra <tv(at)fuzzy(dot)cz>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance
Date: 2011-04-29 22:03:29
Message-ID: BANLkTi=eKfcTFh3vJ6ym=M2G-__EtPZSog@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-performance
On Fri, Apr 29, 2011 at 11:37 PM, Greg Smith <greg(at)2ndquadrant(dot)com> wrote:
> Anyway, how to collect this data is a separate problem from what should be
> done with it in the optimizer.  I don't actually care about the collection
> part very much; there are a bunch of approaches with various trade-offs.
>  Deciding how to tell the optimizer about what's cached already is the more
> important problem that needs to be solved before any of this takes you
> somewhere useful, and focusing on the collection part doesn't move that
> forward.  Trying to map the real world into the currently exposed parameter
> set isn't a solvable problem.  We really need cached_page_cost and
> random_page_cost, plus a way to model the cached state per relation that
> doesn't fall easily into feedback loops.

This is valuable input...

I was already worried about feedback loops, and hearing that it has
been tried and resulted in them is invaluable.

From my experience, what really blows up in your face when your
servers are saturated, is the effective cache size. Postgres thinks an
index will fit into the cache, but it doesn't at times of high load,
meaning that, actually, a sequential scan would be orders of magnitude
better - if it's a "small enough table".

Perhaps just adjusting effective cache size would provide a good
enough benefit without the disastrous feedback loops?

I'll have to test that idea...

In response to

pgsql-performance by date

Next:From: Robert HaasDate: 2011-04-29 22:53:48
Subject: Re: index usage on queries on inherited tables
Previous:From: Greg SmithDate: 2011-04-29 21:37:39
Subject: Re: Performance

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group