From: | Andrey Borodin <x4mmm(at)yandex-team(dot)ru> |
---|---|
To: | Nikolay Samokhvalov <nik(at)postgres(dot)ai> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Subtransactions + a long-running transaction leading to performance degradation on standbys |
Date: | 2021-08-20 05:04:42 |
Message-ID: | BE73A0BB-5929-40F4-BAF8-55323DE39561@yandex-team.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> 20 авг. 2021 г., в 09:45, Nikolay Samokhvalov <nik(at)postgres(dot)ai> написал(а):
>
> The patches changing the SLRU algorithm and adding GUCs to control the buffer sizes look really promising. Optimization in this area would really help those who use SAVEPOINTs. I suspect, we have a lot of such users – ORMs like Rails and Hibernate tend to use them for fancy nesting transaction processing.
Awesome analysis, Nik, thanks!
Yes, I think there are many workloads that would benefit a lot from bigger SLRU caches.
I just want to note, that on your screenshot unpatched version runs 400K tps, while patched runs 280K tps. I see the dates are different and this effect is not observed in [0]. Probably, you run tests on different machines.
While your experiments clearly shows that patch can save DB from degradation under pathological workload it would be great to ensure patch does not incur penalty on normal workload.
Thank you!
Best regards, Andrey Borodin.
[0] https://gitlab.com/postgres-ai/postgresql-consulting/tests-and-benchmarks/-/issues/20
From | Date | Subject | |
---|---|---|---|
Next Message | Nikolay Samokhvalov | 2021-08-20 05:09:45 | Re: Subtransactions + a long-running transaction leading to performance degradation on standbys |
Previous Message | Paul Guo | 2021-08-20 03:33:33 | Re: Two patches to speed up pg_rewind. |