From: Masahiro Ikeda <ikedamsh@oss.nttdata.com>
To: kuroda.hayato@fujitsu.com
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: RE: About to add WAL write/fsync statistics to pg_stat_wal view
Date: Fri, 22 Jan 2021 21:14:28 +0900
Message-ID: <745b2bca8ea79d562d03f339ca193f9e@oss.nttdata.com> (raw)
In-Reply-To: <TYAPR01MB3168FD6040FFA8CA1D9E3E8BF5A00@TYAPR01MB3168.jpnprd01.prod.outlook.com>
References: <0509ad67b585a5b86a83d445dfa75392@oss.nttdata.com>
<BC7530CF-3730-4E4C-A843-3B9F514786C3@hotmail.com>
<65e99b78066ab1e3dc82a4e6f5e6f3cd@oss.nttdata.com>
<7aef8ee6eea05a38ca91580caa5b2f07@oss.nttdata.com>
<TYAPR01MB3168FD6040FFA8CA1D9E3E8BF5A00@TYAPR01MB3168.jpnprd01.prod.outlook.com>
On 2021-01-22 11:54, kuroda.hayato@fujitsu.com wrote:
> Dear Ikeda-san,
>
> This patch cannot be applied to the HEAD, but anyway I put a comment.
>
> ```
> + /*
> + * Measure i/o timing to fsync WAL data.
> + *
> + * The wal receiver skip to collect it to avoid performance
> degradation of standy servers.
> + * If sync_method doesn't have its fsync method, to skip too.
> + */
> + if (!AmWalReceiverProcess() && track_wal_io_timing &&
> fsyncMethodCalled())
> + INSTR_TIME_SET_CURRENT(start);
> ```
>
> I think m_wal_sync_time should be collected even if the process is
> WalRecevier.
> Because all wal_fsync should be recorded, and
> some performance issues have been aleady occurred if
> track_wal_io_timing is turned on.
> I think it's strange only to take care of the walrecevier case.
Kuroda-san, Thanks for your comments.
Although I thought that the performance impact may be bigger in standby
servers
because WALReceiver didn't use wal buffers, it's no need to be
considered.
I agreed that if track_wal_io_timing is turned on, the primary server's
performance degradation occurs too.
I will make rebased and modified.
Regards,
--
Masahiro Ikeda
NTT DATA CORPORATION
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-hackers@postgresql.org
Cc: ikedamsh@oss.nttdata.com, kuroda.hayato@fujitsu.com
Subject: Re: About to add WAL write/fsync statistics to pg_stat_wal view
In-Reply-To: <745b2bca8ea79d562d03f339ca193f9e@oss.nttdata.com>
References: <0509ad67b585a5b86a83d445dfa75392@oss.nttdata.com> <BC7530CF-3730-4E4C-A843-3B9F514786C3@hotmail.com> <65e99b78066ab1e3dc82a4e6f5e6f3cd@oss.nttdata.com> <7aef8ee6eea05a38ca91580caa5b2f07@oss.nttdata.com> <TYAPR01MB3168FD6040FFA8CA1D9E3E8BF5A00@TYAPR01MB3168.jpnprd01.prod.outlook.com> <745b2bca8ea79d562d03f339ca193f9e@oss.nttdata.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