forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit92daeca
committed
Add wait event for pg_usleep() in perform_spin_delay()
The lwlock wait queue scalability issue fixed ina4adc31 was quite hard tofind because of the exponential backoff and because we adjust spins_per_delayover time within a backend.To make it easier to find similar issues in the future, add a wait event forthe pg_usleep() in perform_spin_delay(). Showing a wait event while spinningwithout sleeping would increase the overhead of spinlocks, which we do notwant.We may at some later point want to have more granular wait events, but that'dbe a substantial amount of work. This provides at least some insights intosomething currently hard to observe.Reviewed-by: Michael Paquier <michael@paquier.xyz>Reviewed-by: Robert Haas <robertmhaas@gmail.com>Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>https://postgr.es/m/20221120204310.xywrhyxyytsajuuq@awork3.anarazel.de1 parentbd82928 commit92daeca
File tree
4 files changed
+19
-0
lines changed- doc/src/sgml
- src
- backend
- storage/lmgr
- utils/activity
- include/utils
4 files changed
+19
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2289 | 2289 |
| |
2290 | 2290 |
| |
2291 | 2291 |
| |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
2292 | 2296 |
| |
2293 | 2297 |
| |
2294 | 2298 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
| 56 | + | |
56 | 57 |
| |
57 | 58 |
| |
58 | 59 |
| |
| |||
136 | 137 |
| |
137 | 138 |
| |
138 | 139 |
| |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
139 | 149 |
| |
| 150 | + | |
140 | 151 |
| |
141 | 152 |
| |
142 | 153 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
497 | 497 |
| |
498 | 498 |
| |
499 | 499 |
| |
| 500 | + | |
| 501 | + | |
| 502 | + | |
500 | 503 |
| |
501 | 504 |
| |
502 | 505 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
| 148 | + | |
148 | 149 |
| |
149 | 150 |
| |
150 | 151 |
| |
|
0 commit comments
Comments
(0)