forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbd09503
committed
Increase the default vacuum_cost_limit from 200 to 2000
The original 200 default value was set back inf425b60 when the costdelay settings were first added. Hardware has improved quite a bit sincethen and we've also made improvements such as sorting buffers duringcheckpoints (9cd00c4) which should result in less random writes.This low default value was reportedly causing problems with badlyconfigured servers and in the absence of a native method to removeexcessive bloat from tables without incurring an AccessExclusiveLock, thisoften made cleaning up the damage caused by badly configured auto-vacuumsdifficult.It seems more likely that someone will notice that auto-vacuum is runningtoo quickly than too slowly, so let's go all out and multiple the defaultvalue for the setting by 10. With the default vacuum_cost_page_dirty andautovacuum_vacuum_cost_delay (assuming a page size of 8192 bytes), thisallows autovacuum a theoretical maximum dirty write rate of around 39MB/sinstead of just 3.9MB/s.Author: David RowleyDiscussion:https://postgr.es/m/CAKJS1f_YbXC2qTMPyCbmsPiKvZYwpuQNQMohiRXLj1r=8_rYvw@mail.gmail.com1 parentff9bff0 commitbd09503
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 | |
---|---|---|---|
| |||
1929 | 1929 |
| |
1930 | 1930 |
| |
1931 | 1931 |
| |
1932 |
| - | |
| 1932 | + | |
1933 | 1933 |
| |
1934 | 1934 |
| |
1935 | 1935 |
| |
|
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 | |
---|---|---|---|
| |||
2268 | 2268 |
| |
2269 | 2269 |
| |
2270 | 2270 |
| |
2271 |
| - | |
| 2271 | + | |
2272 | 2272 |
| |
2273 | 2273 |
| |
2274 | 2274 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
162 |
| - | |
| 162 | + | |
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
|
0 commit comments
Comments
(0)