|
From: Beorn J. <beo...@ya...> - 2005-06-10 17:06:05
|
> > 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. I found a similar problem, but I could cure it by lowering the thread stack size with "pthread_attr_setstacksize"; this was not documented on the version of linux I was using (RedHat/Fedora). The default stack size is 1M, I think. By the way, I also changed VG_NTHREAD_KEYS, but I never understood what that was really doing. Is that not necessary? Or, could it be harmful (other than performance)? __________________________________ Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html |
|
From: Nicholas N. <nj...@cs...> - 2005-06-10 18:47:07
|
On Fri, 10 Jun 2005, Beorn Johnson wrote: > By the way, I also changed VG_NTHREAD_KEYS, but I never understood what that > was really doing. Is that not necessary? Or, could it be harmful (other than > performance)? As of 2.4.0 it's no longer used. (In the 3.0 repository it's been removed.) N |