forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite19594c
committed
Reduce the default value of vacuum_cost_page_miss.
When commitf425b60 introduced cost based vacuum delays back in 2004,the defaults reflected then-current trends in hardware, as well ascertain historical limitations in PostgreSQL. There have been enormousimprovements in both areas since that time. The cost limit GUC defaultsfinally became much more representative of current trends followingcommitcbccac3, which decreased autovacuum_vacuum_cost_delay's defaultby 10x for PostgreSQL 12 (it went from 20ms to only 2ms).The relative costs have shifted too. This should also be accounted forby the defaults. More specifically, the relative importance of avoidingdirtying pages within VACUUM has greatly increased, primarily due tomain memory capacity scaling and trends in flash storage. WithinPostgres itself, improvements like sequential access during indexvacuuming (at least in nbtree and GiST indexes) have also beencontributing factors.To reflect all this, decrease the default of vacuum_cost_page_miss to 2.Since the default of vacuum_cost_page_dirty remains 20, dirtying a pageis now considered 10x "costlier" than a page miss by default.Author: Peter Geoghegan <pg@bowt.ie>Discussion:https://postgr.es/m/CAH2-WzmLPFnkWT8xMjmcsm7YS3+_Qi3iRWAb2+_Bc8UhVyHfuA@mail.gmail.com1 parent69059d3 commite19594c
File tree
4 files changed
+4
-4
lines changed- doc/src/sgml
- src/backend/utils
- init
- misc
4 files changed
+4
-4
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2116 | 2116 |
| |
2117 | 2117 |
| |
2118 | 2118 |
| |
2119 |
| - | |
| 2119 | + | |
2120 | 2120 |
| |
2121 | 2121 |
| |
2122 | 2122 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
137 | 137 |
| |
138 | 138 |
| |
139 | 139 |
| |
140 |
| - | |
| 140 | + | |
141 | 141 |
| |
142 | 142 |
| |
143 | 143 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2413 | 2413 |
| |
2414 | 2414 |
| |
2415 | 2415 |
| |
2416 |
| - | |
| 2416 | + | |
2417 | 2417 |
| |
2418 | 2418 |
| |
2419 | 2419 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 |
| - | |
| 167 | + | |
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
|
0 commit comments
Comments
(0)