Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iM28R-0002AP-PD for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Oct 2019 03:44:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iM27R-0007Pa-7G for pgsql-bugs@arkaria.postgresql.org; Sun, 20 Oct 2019 03:43:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iM27Q-0007PT-Nh for pgsql-bugs@lists.postgresql.org; Sun, 20 Oct 2019 03:43:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iM27J-0001yE-8D for pgsql-bugs@lists.postgresql.org; Sun, 20 Oct 2019 03:42:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x9K3gnBI015053; Sat, 19 Oct 2019 23:42:49 -0400 From: Tom Lane To: chelsealyu@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16067: Failed system call was semget In-reply-to: <16067-aec8a3dda66482cc@postgresql.org> References: <16067-aec8a3dda66482cc@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Sat, 19 Oct 2019 14:54:45 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15051.1571542969.1@sss.pgh.pa.us> Date: Sat, 19 Oct 2019 23:42:49 -0400 Message-ID: <15052.1571542969@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > Operating system: MacOS > 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). That's a bit odd. macOS is known to have low default limits for SysV shared memory, but not for semaphores. Which macOS version are you running, exactly? What do you get from sysctl -a | grep sysv.sem ? I get kern.sysv.semmni: 87381 kern.sysv.semmns: 87381 kern.sysv.semmnu: 87381 kern.sysv.semmsl: 87381 kern.sysv.semume: 10 (and not only in Catalina, but very ancient mac versions) Is it possible that something else is chewing up semaphores? Looking at "sudo ipcs -s" output would reveal that. > 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 That is not about this problem. regards, tom lane