|
From: Ed H. <ed...@em...> - 2005-06-10 12:36:43
|
I have a legacy application which uses a lot of threads ( its designer used thread pools ). I am try to run valgrind 2.4.0 to check for memory leaks. The default pthread count limit of 100 is not suffcient for this application ( The VG_N_THREADS constant ). So I increased VG_N_THREADS to 200 and re-build valgrind. Now when I run, pthread_create returns an error - errno is set to "Insuffcient Memory" (or something like that). Anyway, I was wondering if I had to increase some other constant if I increase VG_N_THREADS? Its seems that I can only create 110 threads before I get the pthread_create to fail. System: Linux 2.6.10 kernel Fedora Core 2 distribution Thank you. _____ |
|
From: Nicholas N. <nj...@cs...> - 2005-06-10 13:05:58
|
On Fri, 10 Jun 2005, Ed Hourigan wrote: > I have a legacy application which uses a lot of threads ( its designer > used thread pools ). I am try to run valgrind 2.4.0 to check for memory > leaks. > The default pthread count limit of 100 is not suffcient for this > application ( The VG_N_THREADS constant ). So I increased VG_N_THREADS > to 200 and > re-build valgrind. Now when I run, pthread_create returns an error - > errno is set to "Insuffcient Memory" (or something like that). Anyway, > I was wondering > if I had to increase some other constant if I increase VG_N_THREADS? > Its seems that I can only create 110 threads before I get the > pthread_create to fail. AFAIK increasing VG_N_THREADS should be enough. Can you provide us with a test case program? Nick |