On Mon, Apr 29, 2013 at 3:39 PM, Alex Kocharin <[email protected]> wrote:

> Why is this limit of 1024 opened files enforced by default in the first
> place?


Because history.

Every open file uses some amount of kernel space to keep track of it. Plus
you had things like select(2) with FD_SETSIZE equal to 1024 by default, so
these limits made sense, especially on older computers with limited memory.

Nowadays we use epoll/kqueue and don't need those arbitrary limits quite so
much, but some level of limit is still useful in case you leak file
descriptors.

Matt.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to