Re: Maximum number of processes in Linux

From: Alan Cox
Date: Tue Aug 15 2006 - 14:14:20 EST


Ar Maw, 2006-08-15 am 22:59 +0500, ysgrifennodd Irfan Habib:
> What is the maximum number of process which can run simultaneously in
> linux? I need to create an application which requires 40,000 threads.
> I was testing with far fewer numbers than that, I was getting
> exceptions in pthread_create

On the usual default configuration far less. If you have lots of memory
and adjust the pid limits you can create 40,000 threads. Its not a very
good idea unless you are working on a system with several thousand
processors and usually means your program design is wrong, but you can
do it.

Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/