Skip to contentSkip to conversation

Issue with max_threads (and other resources) and highmem

DISCUSSION Dan Kegel 2 participants 3 messages Oct 23, 2001

lore
Share & tools
lore

Dan Kegel

author
#0 lore raw
Quoted 4 lines · Rik

... A sane upper limit for
max_threads would 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

#1 lore raw
Quoted 8 lines · Dan Kegel
Quoted 4 lines · Rik

... A sane upper limit for
max_threads would 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/
author
#2 lore raw
Quoted 8 lines · Rik van Riel
Quoted 6 lines · Dan Kegel
Quoted 4 lines · Rik

... A sane upper limit for
max_threads would 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