Please raise file descriptor hard limit to 4096 (but keep soft limit at 1024)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Tim Gardner | ||
Lucid |
Fix Released
|
Undecided
|
Scott Ritchie | ||
Natty |
Fix Released
|
Medium
|
Tim Gardner | ||
linux-ti-omap4 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Invalid
|
Undecided
|
Tim Gardner | ||
Natty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
select() has the well-known flaw that it has undefined behavior if
you try to use it with a file decriptor above 1023 (see
http://
This prevents Ubuntu from raising the default ulimit -n;
it just wouldn't do for random apps to start breaking.
Application developers have known for years that select() has
this flaw, and I'm starting to see desktop apps that really do
need more file descriptors. It may be time for us to start purging
dangerous calls to select() from the ubuntu codebase, to make the
world safe for higher values of ulimit -n.
(That said, if one calls select() with no file descriptors at all, just
for its timeout behavior, that's totally safe; those calls can be safely left in place.)
I guess the next step is to audit Ubuntu's codebase to count the number
of possibly dangerous calls to select().
summary: |
- Why can't Johnny handle 1025 file descriptors? + Please raise file descriptor hard limit to 4096 (but keep soft limit at + 1024) |
Changed in linux (Ubuntu): | |
importance: | Wishlist → Medium |
affects: | linux (Ubuntu) → pam (Ubuntu) |
Changed in linux (Ubuntu Natty): | |
assignee: | nobody → Tim Gardner (timg-tpi) |
status: | Confirmed → Fix Committed |
Changed in linux-ti-omap4 (Ubuntu Natty): | |
status: | New → Fix Committed |
Changed in linux-ti-omap4 (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in linux (Ubuntu Lucid): | |
assignee: | nobody → Tim Gardner (timg-tpi) |
status: | New → In Progress |
Changed in linux-ti-omap4 (Ubuntu Lucid): | |
assignee: | nobody → Tim Gardner (timg-tpi) |
status: | New → In Progress |
Changed in linux (Ubuntu Lucid): | |
status: | In Progress → Fix Committed |
Changed in linux-ti-omap4 (Ubuntu Lucid): | |
status: | In Progress → Invalid |
Changed in linux (Ubuntu Lucid): | |
assignee: | Tim Gardner (timg-tpi) → Scott Ritchie (scottritchie) |
Thank you for taking the time to make Ubuntu better. Since what you submitted is not really a bug, or a problem, but rather an idea to improve Ubuntu, you are invited to post your idea in Ubuntu Brainstorm at http:// brainstorm. ubuntu. com/ where it can be discussed, voted by the community and reviewed by developers. Thanks for taking the time to share your opinion!