Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFyXj-000BAr-BZ for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Nov 2024 16:36:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tFyXi-007pe8-2a for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Nov 2024 16:36:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFyXh-007pe0-NO for pgsql-hackers@lists.postgresql.org; Tue, 26 Nov 2024 16:36:01 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFyXf-0040UO-4A for pgsql-hackers@postgresql.org; Tue, 26 Nov 2024 16:36:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4AQGZuQo1682221; Tue, 26 Nov 2024 11:35:56 -0500 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org Subject: Re: Misleading "epoll_create1 failed: Too many open files" In-reply-to: References: Comments: In-reply-to Andres Freund message dated "Tue, 26 Nov 2024 10:10:51 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1682219.1732638956.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 26 Nov 2024 11:35:56 -0500 Message-ID: <1682220.1732638956@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > I think it's rather confusing to claim that epoll_create1() failed when = we > didn't even call it. > Why are we misattributing the failure to a system call that we didn't ma= ke? I think the idea was that this mechanism is equivalent to an EMFILE limit. But if you feel a need to make a distinction, this seems fine: > elog(ERROR, "AcquireExternalFD, for epoll_create1, faile= d: %m"); You should probably check all of 3d475515a, because I think I applied the same idea in more than one place. regards, tom lane