maximum number of threads

Ganesan Rajagopal rganesan at myrealbox.com
Fri Jan 12 05:10:13 EST 2007


>>>>> Felipe Almeida Lessa <felipe.lessa at gmail.com> writes:
>> 
>> to modify the maximum number of user process (AFAIK each thread use a
>> process entry on Linux)

> I don't think it's only this.

It isn't that at all. The default Linux POSIX threads stack size is
8MB. Linux user space is 3GB (Kernel is mapped at upper 1GB). 

382 * 8 = 3056MB.

Basically, you're running out of address space. I don't know if you have any
control at python level. In C you can call pthread_attr_setstacksize(). 

Ganesan

-- 
Ganesan Rajagopal




More information about the Python-list mailing list