EMFILE/ENFILE mitigation needed in erofs?

David Howells dhowells at redhat.com
Fri Apr 22 00:54:58 AEST 2022


Jeffle Xu <jefflexu at 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



More information about the Linux-erofs mailing list