Issue with max_threads (and other resources) and highmem
Quoted 4 lines · Rik
... A sane upper limit for
max_threadswould be 10000, this also keeps in mind the fact that we only have 32000 possible PIDs, some of which could be taken by task groups, etc...
? I thought the 2.4 kernel had switched to 32 bit pid's long ago. Where does the limit of 32000 possible PIDs come from?
- Dan
Quoted 8 lines · Dan Kegel
Quoted 4 lines · Rik
... A sane upper limit for
max_threadswould be 10000, this also keeps in mind the fact that we only have 32000 possible PIDs, some of which could be taken by task groups, etc...? I thought the 2.4 kernel had switched to 32 bit pid's long ago. Where does the limit of 32000 possible PIDs come from?
Please take a look at kernel/fork.c::get_pid() ...
Rik
Signature · 3 lines
DMCA, SSSCA, W3C? Who cares? http://thefreeworld.net/ (volunteers needed) http://www.surriel.com/ http://distro.conectiva.com/
Quoted 8 lines · Rik van Riel
Quoted 6 lines · Dan Kegel
Quoted 4 lines · Rik
... A sane upper limit for
max_threadswould be 10000, this also keeps in mind the fact that we only have 32000 possible PIDs, some of which could be taken by task groups, etc...
Quoted 4 lines
Quoted 2 lines
? I thought the 2.4 kernel had switched to 32 bit pid's long ago. Where does the limit of 32000 possible PIDs come from?
Please take a look at kernel/fork.c::get_pid() ...
Yes, I see the limit is enforced there, but why do we need that limit?
There are probably a bunch of user-space programs that assume a pid fits in five digits, is that the main reason?
- Dan