Tuesday, May 2, 2017

Re: [google-cloud-sql-discuss] Re: PostgreSQL: to increase shared_buffers

Hi Alexander and thanks for feedback!

shared_buffers is a difficult param as it has performance vs stability / recovery time trade-offs and we don't want to compromise those.
We did some testing and found out that setting shared_buffers to around 30% of the instance memory yields best performance for tpc-b/c -like workloads while not compromising other features of the system.
So that's what we set shared_buffers to on sufficiently large instances (with > 3.5G ram as far as I remember).

Note that PostgreSQL will use OS-level disk buffers as well, so if your dataset fits in memory you are likely to see very little read operations regardless of value of shared_buffers.

All that said, we are certainly open for more tuning and we are eager to learn about different workloads. Would you be able to elaborate why do you think increasing shared_buffers benefit your workload?

Thanks!

--
Vladimir Rusinov
PostgreSQL SRE, Google Ireland

Google Ireland Ltd.,Gordon House, Barrow Street, Dublin 4, Ireland
Registered in Dublin, Ireland
Registration Number: 368047

On Mon, May 1, 2017 at 10:10 PM, Aleksander Efremov <mr.efrem@gmail.com> wrote:
I execute the select query with the RegExp in condition on 2 million and above records and it spend much time.

вторник, 2 мая 2017 г., 9:05:13 UTC+4 пользователь Aleksander Efremov написал:
When you plan to inject this feature?

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/00e196c7-2710-438e-a0ce-69ddb9632c69%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/CAE1wr-yVVepxuuZkbFhAmabPrO7HdLeXetC8sGenk8z6W8Mf3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment