postgresql/src/backend/utils
Andrew Dunstan bd09503e63 Increase the default vacuum_cost_limit from 200 to 2000
The original 200 default value was set back in f425b605f4 when the cost
delay settings were first added.  Hardware has improved quite a bit since
then and we've also made improvements such as sorting buffers during
checkpoints (9cd00c457e) which should result in less random writes.

This low default value was reportedly causing problems with badly
configured servers and in the absence of a native method to remove
excessive bloat from tables without incurring an AccessExclusiveLock, this
often made cleaning up the damage caused by badly configured auto-vacuums
difficult.

It seems more likely that someone will notice that auto-vacuum is running
too quickly than too slowly, so let's go all out and multiple the default
value for the setting by 10.  With the default vacuum_cost_page_dirty and
autovacuum_vacuum_cost_delay (assuming a page size of 8192 bytes), this
allows autovacuum a theoretical maximum dirty write rate of around 39MB/s
instead of just 3.9MB/s.

Author: David Rowley

Discussion: https://postgr.es/m/CAKJS1f_YbXC2qTMPyCbmsPiKvZYwpuQNQMohiRXLj1r=8_rYvw@mail.gmail.com
2019-03-06 09:10:12 -05:00
..
adt pg_partition_ancestors 2019-03-04 16:14:29 -03:00
cache Move code for managing PartitionDescs into a new file, partdesc.c 2019-02-21 11:45:02 -05:00
error Update copyright for 2019 2019-01-02 12:44:25 -05:00
fmgr Change function call information to be variable length. 2019-01-26 14:17:52 -08:00
hash Update copyright for 2019 2019-01-02 12:44:25 -05:00
init Increase the default vacuum_cost_limit from 200 to 2000 2019-03-06 09:10:12 -05:00
mb More unconstify use 2019-02-13 11:50:16 +01:00
misc Increase the default vacuum_cost_limit from 200 to 2000 2019-03-06 09:10:12 -05:00
mmgr Fix inconsistent out-of-memory error reporting in dsa.c. 2019-02-25 11:11:40 +13:00
resowner Update copyright for 2019 2019-01-02 12:44:25 -05:00
sort Change function call information to be variable length. 2019-01-26 14:17:52 -08:00
time Mark correctly initial slot snapshots with MVCC type when built 2019-02-20 12:31:07 +09:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
Gen_dummy_probes.pl Update copyright for 2019 2019-01-02 12:44:25 -05:00
Gen_dummy_probes.sed Update copyright for 2019 2019-01-02 12:44:25 -05:00
Gen_fmgrtab.pl Use Getopt::Long for catalog scripts 2019-02-12 12:22:08 -03:00
Makefile Use Getopt::Long for catalog scripts 2019-02-12 12:22:08 -03:00
errcodes.txt Update copyright for 2019 2019-01-02 12:44:25 -05:00
generate-errcodes.pl Update copyright for 2019 2019-01-02 12:44:25 -05:00
probes.d Update copyright for 2019 2019-01-02 12:44:25 -05:00