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 1iLuTT-0002xy-BU for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Oct 2019 19:33:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iLuTS-0001NI-1t for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Oct 2019 19:33:14 +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 1iLuTR-0001NB-NK for pgsql-bugs@lists.postgresql.org; Sat, 19 Oct 2019 19:33:13 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iLuTO-0006jG-T2 for pgsql-bugs@lists.postgresql.org; Sat, 19 Oct 2019 19:33:12 +0000 Received: by mail-wr1-x443.google.com with SMTP id t16so4452027wrr.1 for ; Sat, 19 Oct 2019 12:33:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=S26sSKp0eZYi9IxccFjUMBI50d4X+LhdYukusx9SY1k=; b=x9hYiVKkQ1x76aVOn4Wl+q4WqhFiWLNJ7WpHmFYVzzPXKERe8UFQ1S7SwB5Eul8Um5 /Po687A5jSn1lR9iVVxtA//g6OiNePRuorTFVpThfFxTri52z561G0beQ/dDFz30zIe0 2rYW8cW81pwdZYKtA6CImzcNWcXTZKhF4js4l3WMSPW6Og4ttpzeM6KK80q82CAyMhSH dYHbg9v5C1Yx8oIzCQ0aqV112BzJt73Y759+IFhwczULI++vIM61hA0RXT1+28/5JApZ w7+1mleAheCo0FG5PvJ/+aVyzIjBJiMdSlA3VAI85kobitkiZkytqODKMYMrzjDE6Mmj RtMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=S26sSKp0eZYi9IxccFjUMBI50d4X+LhdYukusx9SY1k=; b=BMu90gYMN65pId5sMqsr/kw0O8dH994lnStGmRngzy9T3OQPF2+gHtBPv0ZQvieyLq f2sBT5HOJh+mgU8uhHPakmv3kU8tVJ3NwEO625fBvIkuKGFD7A9dBgwFPJOr6Fq9ydfo 32WehweCGqJzE5P73r3AOyKhb1P7nC1k8bJfHAxjZc4KlFbGSGnbci3F0fJFqYJ52xjZ LQDUJNSjmji0xZIdlI3R9LbErIWv37f+t5fVuOU/5lnJ9Kfny2IRvdDhCbh/i4L2BWoS nwc9Q2xJA9zWAPRHm+z8fflIwzxSVzARlmzsVStzbFtQGdowVvZIxSJkxptnMOSPbfCj LUvg== X-Gm-Message-State: APjAAAWrvqF/3ndR5rSO6EPW8k3KPgvvDOhtT2bcOrwOpALBheOgZ/JX ErHZ7zq1VbME2tlcRArzRh+TediI3gSVkg== X-Google-Smtp-Source: APXvYqzq9iDxH4iT7M+ZS491C8bz4JwFaCCmSiH2a18Bb7oueG03TVbh/jqhTThbH8qqJ6myo/xq7Q== X-Received: by 2002:a5d:4a45:: with SMTP id v5mr4507568wrs.358.1571513589357; Sat, 19 Oct 2019 12:33:09 -0700 (PDT) Received: from localhost (ip-86-49-253-183.net.upcbroadband.cz. [86.49.253.183]) by smtp.gmail.com with ESMTPSA id w17sm8728249wmi.30.2019.10.19.12.33.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2019 12:33:08 -0700 (PDT) Date: Sat, 19 Oct 2019 21:33:07 +0200 From: Tomas Vondra To: chelsealyu@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16067: Failed system call was semget Message-ID: <20191019193307.twbo76mhpv2rvrcq@development> References: <16067-aec8a3dda66482cc@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <16067-aec8a3dda66482cc@postgresql.org> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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