From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix busy-wait in pgbench, with --rate. |
Date: | 2017-10-01 06:37:42 |
Message-ID: | E1dyXsk-0000nO-4D@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix busy-wait in pgbench, with --rate.
If --rate was used to throttle pgbench, it failed to sleep when it had
nothing to do, leading to a busy-wait with 100% CPU usage. This bug was
introduced in the refactoring in v10. Before that, sleep() was called with
a timeout, even when there were no file descriptors to wait for.
Reported by Jeff Janes, patch by Fabien COELHO. Backpatch to v10.
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/babf18579455e85269ad75e1ddb03f34138f77b6
Modified Files
--------------
src/bin/pgbench/pgbench.c | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2017-10-01 08:45:57 | Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple |
Previous Message | Andres Freund | 2017-10-01 02:32:14 | Re: pgsql: Add test for postmaster crash restarts. |