Re: Bump soft open file limit (RLIMIT_NOFILE) to hard limit on startup
От | Tom Lane |
---|---|
Тема | Re: Bump soft open file limit (RLIMIT_NOFILE) to hard limit on startup |
Дата | |
Msg-id | 3226911.1739314539@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Bump soft open file limit (RLIMIT_NOFILE) to hard limit on startup (Andres Freund <andres@anarazel.de>) |
Ответы |
Re: Bump soft open file limit (RLIMIT_NOFILE) to hard limit on startup
|
Список | pgsql-hackers |
Andres Freund <andres@anarazel.de> writes: > In the current version of the AIO patchset, the creation of those io_uring > instances does happen as part of an shmem init callback, as the io uring > creation also sets up queues visible in shmem. Hmm. > So the issue would actually be that we're currently doing set_max_safe_fds() > too late, not too early :/ Well, we'd rather set_max_safe_fds happen after semaphore creation, so that it doesn't have to be explicitly aware of whether semaphores consume FDs. Could we have it be aware of how many FDs *will be* needed for io_uring, but postpone creation of those until after we jack up RLIMIT_NOFILE? I guess the other way would be to have two rounds of RLIMIT_NOFILE adjustment, before and after shmem creation. That seems ugly but shouldn't be very time-consuming. regards, tom lane
В списке pgsql-hackers по дате отправления: