From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: chelsealyu@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16067: Failed system call was semget
Date: Sat, 19 Oct 2019 21:33:07 +0200
Message-ID: <20191019193307.twbo76mhpv2rvrcq@development> (raw)
In-Reply-To: <16067-aec8a3dda66482cc@postgresql.org>
References: <16067-aec8a3dda66482cc@postgresql.org>
On Sat, Oct 19, 2019 at 02:54:45PM +0000, PG Bug reporting form wrote:
>The following bug has been logged on the website:
>
>Bug reference: 16067
>Logged by: chelsea lyu
>Email address: chelsealyu@gmail.com
>PostgreSQL version: 11.5
>Operating system: MacOS
>Description:
>
>running bootstrap script ... 2019-10-19 23:25:15.095 JST [51410] FATAL:
>could not create semaphores: No space left on device
>2019-10-19 23:25:15.095 JST [51410] DETAIL: Failed system call was
>semget(5432226, 17, 03600).
>
>this is the code what I input, and then the problem is out.
>MacBook-Pro:~ raye$ initdb /usr/local/var/postgres -E utf8
>
>
>I also tried the code in the guide book of solving this question.
>RAYEdeMacBook-Pro:~ raye$ sysctl -w kern.sysv.shmmax
>kern.sysv.shmmax: 4194304
>RAYEdeMacBook-Pro:~ raye$ sysctl -w kern.sysv.shmmin
>kern.sysv.shmmin: 1
>RAYEdeMacBook-Pro:~ raye$ sysctl -w kern.sysv.shmmni
>kern.sysv.shmmni: 32
>RAYEdeMacBook-Pro:~ raye$ sysctl -w kern.sysv.shmseg
>kern.sysv.shmseg: 8
>RAYEdeMacBook-Pro:~ raye$ sysctl -w kern.sysv.shmall
>kern.sysv.shmall: 1024
>
>but nothing happened.
>it still cannot work.
>
I think you need to tweak kernel.sem, not the options for sysv shared memory.
Also, not a PostgreSQL bug, but an OS configuration issue ...
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tomas.vondra@2ndquadrant.com, chelsealyu@gmail.com
Subject: Re: BUG #16067: Failed system call was semget
In-Reply-To: <20191019193307.twbo76mhpv2rvrcq@development>
References: <16067-aec8a3dda66482cc@postgresql.org> <20191019193307.twbo76mhpv2rvrcq@development>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox