On Mon, Apr 15, 2024 at 09:55:00PM -0700, Christoph Hellwig wrote: > On Mon, Apr 15, 2024 at 06:00:39PM -0700, Darrick J. Wong wrote: > > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > > > Make it so that we can partition a memfd file to avoid running out of > > file descriptors. > > Not a fan of this, but I guess there is a real need somewhere because > we run out of the number of open fds otherwise? Yes, we can hit the open fd limit... > Given that repair > generally runs as root wouldn't it make more sense to just raise the > limit? ...and we /did/ raise the limit to whatever RLIMIT_NOFILE says is the maximum, but sysadmins could have lowered sysctl_nr_open on us, so we still ought to partition to try to avoid ENFILE on those environments. (Granted the /proc/sys/fs/nr_open default is a million, and if you actually have more than 500,000 AGs then either wowee you are rich!! or clod-init exploded the fs and you get what you deserve :P) --D