forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit57dcc2e
committed
Poll postmaster less frequently in recovery.
Since commits9f09529 andf98b847 we don't poll the postmasterpipe at all during crash recovery on Linux and FreeBSD, but on otheroperating systems we were still doing it for every WAL record. Do itless frequently on operating systems where system calls are required, atthe cost of delaying exit a bit after postmaster death. This avoidsexpensive system calls reported to slow down CPU-bound recovery by asmuch as 10-30%.Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com>Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://postgr.es/m/CA%2BhUKGK1607VmtrDUHQXrsooU%3Dap4g4R2yaoByWOOA3m8xevUQ%40mail.gmail.comDiscussion:https://postgr.es/m/7261eb39-0369-f2f4-1bb5-62f3b6083b5e@iki.fi1 parentde829dd commit57dcc2e
1 file changed
+23
-2
lines changedLines changed: 23 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
37 | 48 |
| |
38 | 49 |
| |
39 | 50 |
| |
| |||
134 | 145 |
| |
135 | 146 |
| |
136 | 147 |
| |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
137 | 152 |
| |
138 | 153 |
| |
139 | 154 |
| |
| |||
151 | 166 |
| |
152 | 167 |
| |
153 | 168 |
| |
154 |
| - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
155 | 172 |
| |
156 |
| - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
157 | 178 |
| |
158 | 179 |
| |
159 | 180 |
| |
|
0 commit comments
Comments
(0)