forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit38da053
committed
Try to avoid semaphore-related test failures on NetBSD/OpenBSD.
These two platforms have a remarkably tight default limit on thenumber of SysV semaphores in the system: SEMMNS is only 60out-of-the-box. Unless manual action is taken to raise that,we'll only be able to allocate 3 sets of 16 usable semaphoreseach, leading to initdb setting max_connections to just 20.That's problematic because the core regression tests expectto be able to launch 20 concurrent sessions, leaving us withno headroom. This seems to be the cause of intermittentbuildfarm failures on some machines.While there's no getting around the fact that you'd better raiseSEMMNS for production use on these platforms, it does seem desirablefor "make check" to pass reliably without that. We can make thathappen, at least for awhile longer, with two small changes:* Change sysv_sema.c's SEMAS_PER_SET to 19, so that we can eat upall of the available semas not just most of them.* Change initdb to make the smallest max_connections value it willconsider be 25 not 20.As of HEAD this will leave us with four free semaphores (using thedefault values for other relevant parameters such as max_wal_senders).So we won't need to consider this again until we've invented fivemore background processes. Maybe by then we can switch both theseplatforms to some other semaphore API.For the moment, do this only in master; there've not been fieldcomplaints that might justify a back-patch.Discussion:https://postgr.es/m/db2773a2-aca0-43d0-99c1-060efcd9954e@gmail.com1 parentda9517f commit38da053
File tree
3 files changed
+16
-10
lines changed- doc/src/sgml
- src
- backend/port
- bin/initdb
3 files changed
+16
-10
lines changedLines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
782 | 782 |
| |
783 | 783 |
| |
784 | 784 |
| |
785 |
| - | |
| 785 | + | |
786 | 786 |
| |
787 | 787 |
| |
788 | 788 |
| |
789 | 789 |
| |
790 | 790 |
| |
791 |
| - | |
| 791 | + | |
792 | 792 |
| |
793 | 793 |
| |
794 | 794 |
| |
795 | 795 |
| |
796 | 796 |
| |
797 |
| - | |
| 797 | + | |
798 | 798 |
| |
799 | 799 |
| |
800 | 800 |
| |
| |||
841 | 841 |
| |
842 | 842 |
| |
843 | 843 |
| |
844 |
| - | |
| 844 | + | |
845 | 845 |
| |
846 | 846 |
| |
847 | 847 |
| |
| |||
851 | 851 |
| |
852 | 852 |
| |
853 | 853 |
| |
854 |
| - | |
855 |
| - | |
| 854 | + | |
| 855 | + | |
856 | 856 |
| |
857 | 857 |
| |
858 | 858 |
| |
859 | 859 |
| |
860 |
| - | |
| 860 | + | |
861 | 861 |
| |
862 | 862 |
| |
863 | 863 |
| |
864 |
| - | |
| 864 | + | |
865 | 865 |
| |
866 | 866 |
| |
867 | 867 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 |
| |
54 |
| - | |
| 60 | + | |
55 | 61 |
| |
56 | 62 |
| |
57 | 63 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1119 | 1119 |
| |
1120 | 1120 |
| |
1121 | 1121 |
| |
1122 |
| - | |
| 1122 | + | |
1123 | 1123 |
| |
1124 | 1124 |
| |
1125 | 1125 |
| |
|
0 commit comments
Comments
(0)