From: pinker <pinker@onet.eu>
To: pgsql-general@postgresql.org
Subject: Re: dirty_ratio & dirty_background_ratio settings with huge memory
Date: Tue, 6 Mar 2018 18:59:01 -0700 (MST)
Message-ID: <1520387941433-0.post@n3.nabble.com> (raw)
In-Reply-To: <20180306165557.7xulgrkfrlyt2kpx@alap3.anarazel.de>
References: <1520331809441-0.post@n3.nabble.com>
<20180306165557.7xulgrkfrlyt2kpx@alap3.anarazel.de>
Andres Freund wrote
> With a halfway modern PG I'd suggest to rather tune postgres settings
> that control flushing. That leaves files like temp sorting in memory for
> longer, while flushing things controlledly for other sources of
> writes. See *_flush_after settings.
>
> Greetings,
>
> Andres Freund
Thank you Andres, I missed those parameters appearing. It's not the case for
this customer, because they have an ancient version 9.0, but it's
interesting for others :)
The maximal value - 2MB - is it not to small? Regarding the fact that for
instance the same buffer will be updated 10 times between checkpoints and
bgwriter well be flushing it directly to disk 10 times instead to allow the
buffer to stay in the cache and do the update faster?
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: pinker@onet.eu
Subject: Re: dirty_ratio & dirty_background_ratio settings with huge memory
In-Reply-To: <1520387941433-0.post@n3.nabble.com>
References: <1520331809441-0.post@n3.nabble.com> <20180306165557.7xulgrkfrlyt2kpx@alap3.anarazel.de> <1520387941433-0.post@n3.nabble.com>
* 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