Re: proposal: Set effective_cache_size to greater of .conf value, shared_buffers

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <bruce(at)momjian(dot)us>, Magnus Hagander <magnus(at)hagander(dot)net>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Robert Haas <robertmhaas(at)gmail(dot)com>, Claudio Freire <klaussfreire(at)gmail(dot)com>, Merlin Moncure <mmoncure(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: Set effective_cache_size to greater of .conf value, shared_buffers
Date: 2014-05-06 20:47:20
Message-ID: CA+U5nMLJBS-XxG6Gc1djHLA26hg7K7Fhp8CGb6Am_Zo1FquB2w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 6 May 2014 20:41, Jeff Janes <jeff(dot)janes(at)gmail(dot)com> wrote:

> The e_c_s is assumed to be usable for each backend trying to run queries
> sensitive to it. If you have dozens of such queries running simultaneously
> (not something I personally witness, but also not insane) and each of these
> queries has its own peculiar working set, then having e_c_s smaller than s_b
> makes sense.
>
> I have a hard time believe that this is at all common, however.

If larger queries are frequent enough to care about, they will happen together.

We should be acting conservatively with default settings. You can be
as aggressive as you like with your own config.

> Certainly
> not common enough so to justify cranking the setting all the way the other
> direction and then removing the crank handle.

Yes, that part was mostly rhetorical, I wasn't arguing for complete
removal, especially when autotuning is unclear.

I am worried about people that set effective_cache_size but not
shared_buffers, which is too common. If we link the two parameters it
should work in both directions by default.

--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2014-05-06 21:01:39 Re: Sending out a request for more buildfarm animals?
Previous Message Simon Riggs 2014-05-06 20:38:36 Re: proposal: Set effective_cache_size to greater of .conf value, shared_buffers