From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Vladimir G. Ivanovic" Subject: Re: How do I increase threads per user? Date: Wed, 16 Apr 2003 15:11:15 -0700 Sender: linux-smp-owner@vger.kernel.org Message-ID: <200304162211.h3GMBFW8008330@bach.leonora.org> References: <20030408233344.93046.qmail@web12107.mail.yahoo.com> Return-path: In-Reply-To: Your message of "Tue, 08 Apr 2003 16:33:44 PDT." <20030408233344.93046.qmail@web12107.mail.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: da_alchemist@yahoo.com Cc: linux-smp@vger.kernel.org My understanding is that the 2.4 series kernels do not support many running many threads at once. You can compile in support for NGPT (http://www-124.ibm.com/developerworks/oss/pthreads/) with glibc 2.2 which will probably increase your ability to run many threads at once. With the for the 2.5 series kernels (with glibc 2.3), NPLT (http://people.redhat.com/drepper/nptl-design.pdf) is available. --- Vladimir ------------------------------------------------------------------------ Vladimir G. Ivanovic http://leonora.org/~vladimir 2770 Cowper St. vladimir@acm.org Palo Alto, CA 94306-2447 +1 650 678 8014 >>>>> "da" == da alchemist writes: > OS: Linux (or Sun Linux) > Kernel: 2.4.9-31enterprise > Memory: 2GB > CPUs: 2 > Java: 1.4.1_01 > I have a dual processor Cobalt LX50 and I am running > into a thread limit with Java. No matter what I do > with the Java JVM parameters (heap and stack), I > cannot get any more than 949 threads. My "top" output > shows that I am no where near my memory capacity. > Below is a simple Java program (28 lines long) I have > used to test this limit. My question is simply how do > I go about increasing this limit. Is there some kernel > parameter I can set or maybe have to recompile into > the kernel? My /proc/sys/kernel/threads-max is 16383. > I do not believe my ulimit settings are the problem, > but I will post them anyway. The problem also occurs > on non-Cobalt (plain old PCs) uniprocessor machines > maxxing at about 1018 threads.