lkml.org 
[lkml]   [2022]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectEMFILE/ENFILE mitigation needed in erofs?
Date
Jeffle Xu <jefflexu@linux.alibaba.com> wrote:

> + fd_install(fd, file);

Do you need to mitigate potential EMFILE/ENFILE problems? You're potentially
trebling up the number of accounted systemwide fds: one for erofs itself, one
anonfd per cache object file to communicate with the daemon and one in the
daemon to talk to the server. Cachefiles has a fourth internally, but it's
kept off the books - further, cachefiles closes them fairly quickly after a
period of nonuse.

David

\
 
 \ /
  Last update: 2022-04-21 16:56    [W:0.949 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site