Re: [PATCH] Limit file descriptors used by packs
- From
- Bernhard R. Link <brl+ccmadness@pcpool00.mathematik.uni-freiburg.de>
- Date
- Feb 28, 2011, 20:35 UTC
- Message-ID
- <20110228203557.GA8189@pcpool00.mathematik.uni-freiburg.de>
- In-Reply-To
- <1298924835-23413-1-git-send-email-spearce@spearce.org>
* Shawn O. Pearce <spearce@spearce.org> [110228 21:27]:
Show 5 quoted lines
> By using a hard upper limit that is below the rlimit of the current > process, it is not necessary to check for EMFILE on every single > fd-allocating system call. Instead reserving 8 file descriptors > makes it safe to assume the system call won't fail due to being > over limit in the filedescriptor limit.
Isn't 8 quite a bit low for a reserve? Couldn't some libc stuff (especially nss modules perhaps activated by something) easily surpass that?
Bernhard R. Link