Hi,

On Thu, Nov 26, 2026 at 1:36 AM Hayato Kuroda (Fujitsu)
<[email protected]> wrote:
>
> And I got the below result (median of three runs). "WAL-disk reads" cannot be
> measured because the decoding time was less than 1 second.
>
> build    WAL direct IO  TPS       scan ms     WAL generated MB reader read MB 
>       file reads   buffer hits   WAL-disk reads WAL-disk writes
> PATCHED  on             2859      626         284                284          
>       36357        1             235 MB/s        24.6 MB/s
> PATCHED  off            3166      174         284                284          
>       36353        6             0 MB/s          24.8 MB/
> HEAD     on             2611      634         284                284          
>       36359        0             0 MB/s          24.4 MB/s
> HEAD     off            7629      106         284                284          
>       36359        0             0 MB/s          27.5 MB/s
>
> I have not analyzed via perf, but the result may show that WAL records cannot 
> be
> read from the buffer thus a round trip for WALReadFromBuffers() wasted the 
> time.
> Apart from the replication system, local read of WALs like logical decoding 
> via
> SQL functions can be done less frequently, I'm afraid that this patch might 
> cause
> a performance regression.
>
> how do you feel?

Thanks. Could you share the exact script (with the top-up patches if
any) and the test environment (instance type, any concurrent activity,
etc.)? I will verify it from my side.

--
Bharath Rupireddy
Amazon Web Services: https://aws.amazon.com


Reply via email to