Re: Misleading "epoll_create1 failed: Too many open files"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Misleading "epoll_create1 failed: Too many open files"
Date: 2024-11-26 16:35:56
Message-ID: 1682220.1732638956@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andres Freund <andres(at)anarazel(dot)de> 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 make?

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, failed: %m");

You should probably check all of 3d475515a, because I think
I applied the same idea in more than one place.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2024-11-26 16:39:33 Re: Doc: typo in config.sgml
Previous Message Peter Eisentraut 2024-11-26 16:23:11 Re: On non-Windows, hard depend on uselocale(3)