]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Adjust DSM and DSA slot usage constants (back-patch).
authorThomas Munro <tmunro@postgresql.org>
Thu, 19 Nov 2020 21:44:09 +0000 (10:44 +1300)
committerThomas Munro <tmunro@postgresql.org>
Thu, 19 Nov 2020 21:52:38 +0000 (10:52 +1300)
commit0455f78ddbb09b6ad3bb6b582b75fd3975a24541
tree5f1b8610c1cd6a7e0fa53134e4b083c8674ade90
parentc690ebbefa3394b67ceb1ba913590d873ad40355
Adjust DSM and DSA slot usage constants (back-patch).

1.  Previously, a DSA area would create up to four segments at each size
before doubling the size.  After this commit, it will create only two at
each size, so it ramps up faster and therefore needs fewer slots.

2.  Previously, the total limit on DSM slots allowed for 2 per connection.
Switch to 5 per connection.

This back-patches commit d061ea21 from release 13 into 10-12 based on a
field complaint.

Discussion: https://postgr.es/m/CAO03teA%2BjE1qt5iWDWzHqaufqBsF6EoOgZphnazps_tr_jDPZA%40mail.gmail.com
Discussion: https://postgr.es/m/CA%2BhUKGL6H2BpGbiF7Lj6QiTjTGyTLW_vLR%3DSn2tEBeTcYXiMKw%40mail.gmail.com
src/backend/storage/ipc/dsm.c
src/backend/utils/mmgr/dsa.c