forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit98f320e
committed
Increase default vacuum_buffer_usage_limit to 2MB.
The BAS_VACUUM ring size has been 256kB since commitd526575 introducedthe mechanism 17 years ago. Commit1cbbee0 recently made itconfigurable but retained the traditional default. The correct defaultsize has been debated for years, but 256kB is certainly very small.VACUUM soon needs to write back data it dirtied only 32 blocks ago,which usually requires flushing the WAL. New experiments in prefetchingpages for VACUUM exacerbated the problem by crashing into dirty dataeven sooner. Let's make the default 2MB. That's 1.6% of the defaulttoy buffer pool size, and 0.2% of 1GB, which would be a considered asmall shared_buffers setting for a real system these days. Users arestill free to set the GUC to a different value.Reviewed-by: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/20240403221257.md4gfki3z75cdyf6%40awork3.anarazel.deDiscussion:https://postgr.es/m/CA%2BhUKGLY4Q4ZY4f1rvnFtv6%2BPkjNf8MejdPkcju3Qii9DYqqcQ%40mail.gmail.com1 parent3bd8439 commit98f320e
File tree
5 files changed
+5
-5
lines changed- doc/src/sgml
- src/backend
- storage/buffer
- utils
- init
- misc
5 files changed
+5
-5
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1961 | 1961 |
| |
1962 | 1962 |
| |
1963 | 1963 |
| |
1964 |
| - | |
| 1964 | + | |
1965 | 1965 |
| |
1966 | 1966 |
| |
1967 | 1967 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
561 | 561 |
| |
562 | 562 |
| |
563 | 563 |
| |
564 |
| - | |
| 564 | + | |
565 | 565 |
| |
566 | 566 |
| |
567 | 567 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
146 |
| - | |
| 146 | + | |
147 | 147 |
| |
148 | 148 |
| |
149 | 149 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2275 | 2275 |
| |
2276 | 2276 |
| |
2277 | 2277 |
| |
2278 |
| - | |
| 2278 | + | |
2279 | 2279 |
| |
2280 | 2280 |
| |
2281 | 2281 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
169 |
| - | |
| 169 | + | |
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
|
0 commit comments
Comments
(0)