Re: walsender "wakeup storm" on PG16, likely because of bc971f4025c (Optimize walsender wake up logic using condition variables)
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Tomas Vondra <tomas.vondra@enterprisedb.com>
Cc: Andres Freund <andres@anarazel.de>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-08-14T22:55:12Z
Lists: pgsql-hackers
On Tue, Aug 15, 2023 at 2:23 AM Tomas Vondra <tomas.vondra@enterprisedb.com> wrote: > I'm not familiar with the condition variable code enough to have an > opinion, but the patch seems to resolve the issue for me - I can no > longer reproduce the high CPU usage. Thanks, pushed.
Commits
-
De-pessimize ConditionVariableCancelSleep().
- acc5c4fd8f83 16.0 landed
- 5ffb7c775062 17.0 landed
-
Forward received condition variable signals on cancel.
- b91dd9de5ea0 13.0 cited