scorpionfly needs more semaphores

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, jungleboogie0+pgbuild(at)gmail(dot)com
Subject: scorpionfly needs more semaphores
Date: 2019-09-17 22:52:08
Message-ID: CA+hUKGJ4jV54NLhsaJOO1shVx249TukQqKY0_vCNYAEZXG_pFw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

We're seeing occasional failures like this:

running bootstrap script ... 2019-09-13 12:11:26.882 PDT [64926]
FATAL: could not create semaphores: No space left on device
2019-09-13 12:11:26.882 PDT [64926] DETAIL: Failed system call was
semget(5728001, 17, 03600).

I think you should switch to using "named" POSIX semaphores by
building with USE_NAMED_POSIX_SEMAPHORES (then it'll create a
squillion little files under /tmp and mmap() them), or increase the
number of SysV semaphores you can create with sysctl[1], or finish
writing your operating system[2] so you can switch to "unnamed" POSIX
semaphores :-)

[1] https://www.postgresql.org/message-id/flat/27582.1546928073%40sss.pgh.pa.us
[2] https://github.com/openbsd/src/blob/master/lib/librthread/rthread_sem.c#L112

--
Thomas Munro
https://enterprisedb.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2019-09-18 00:58:15 Re: subscriptionCheck failures on nightjar
Previous Message Tom Lane 2019-09-17 22:40:23 Re: Define jsonpath functions as stable