Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFkb7-000752-0t for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Jun 2016 16:01:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bFkb6-0003bi-Jw for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Jun 2016 16:01:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bFkb5-0003Zv-KD for pgsql-bugs@postgresql.org; Wed, 22 Jun 2016 16:01:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bFkb3-0002yg-5O for pgsql-bugs@postgresql.org; Wed, 22 Jun 2016 16:01:47 +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 u5MG1fJ8001084; Wed, 22 Jun 2016 12:01:41 -0400 From: Tom Lane To: Maxim Sobolev cc: pgsql-bugs@postgresql.org, Konstantin Belousov Subject: Re: BUG #14206: Switch to using POSIX semaphores on FreeBSD In-reply-to: References: <20160621193412.5792.65085@wrigleys.postgresql.org> <16860.1466539165@sss.pgh.pa.us> <18145.1466541362@sss.pgh.pa.us> <30949.1466608503@sss.pgh.pa.us> Comments: In-reply-to Maxim Sobolev message dated "Wed, 22 Jun 2016 08:47:30 -0700" Date: Wed, 22 Jun 2016 12:01:41 -0400 Message-ID: <1083.1466611301@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Maxim Sobolev writes: > From the man semopt: > [EINVAL] No semaphore set corresponds to semid, or the process > would exceed the system-defined limit for the number > of per-process SEM_UNDO structures. > AFAIK we've been hitting the second cause there. This is with FreeBSD 10.3 > and postgresql 9.2.16 specifically. We've also seen this with 9.1 I think, > but I am not 100% sure. The specific limit that got exceeded > was kern.ipc.semmnu. We never ask semop(2) for SEM_UNDO, so are you sure this isn't a kernel bug? I've never heard of such a report on any other platform. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs