thread limit in python
Christopher Subich
spam.csubich+block at block.subich.spam.com
Fri Aug 12 17:02:24 EDT 2005
danieldsmith at gmail.com wrote:
> i modified my C test program (included below) to explicitly set the
> default thread stack size, and i'm still running into the same
> problem. can you think of any other thing that would possibly be
> limiting me?
Hrm, you're on an A64, so that might very well mean you're dealing with
4MB pages. If each thread gets its own page of memory for stack space
regardless of how small you've set it, then ~1k threads * 4MB ~= 4GB of
virtual memory.
More information about the Python-list
mailing list