On 2021/10/17 15:31, Mikhail wrote:
> Hello, current git of postgresql requires more semaphores than OpenBSD
> currently suggests as a default, I propose to rise the limit to 100.
> FreeBSD has 340, as a comparison.
> 
> Another solution may be to add the note to README of postgresql's port
> to rise the limit for the future version, but it looks inconvenient.

It is there already. Perhaps we could lower the suggested value a bit though:

$ cvs blame README-server | grep semmns 
Annotations for README-server
***************
1.13         (sthen    22-Nov-12):      kern.seminfo.semmns=1024



> Comments, OKs?
> 
> diff --git sys/sys/sem.h sys/sys/sem.h
> index 184482d7810..03edc2e1d9e 100644
> --- sys/sys/sem.h
> +++ sys/sys/sem.h
> @@ -153,7 +153,7 @@ extern struct seminfo     seminfo;
>  #define SEMMNI       10              /* # of semaphore identifiers */
>  #endif
>  #ifndef SEMMNS
> -#define SEMMNS       60              /* # of semaphores in system */
> +#define SEMMNS       100             /* # of semaphores in system */
>  #endif
>  #ifndef SEMUME
>  #define SEMUME       10              /* max # of undo entries per process */
> 

Reply via email to