threads - Re: stress_re stress_cv stress_string don't let thread module to be installed!

Posted on Sun Jul 1 21:24:34 2007 by jdhedden in response to 5598 (See the whole thread of 2)
Re: stress_re stress_cv stress_string don't let thread module to be installed!
They all fail with "pthread_create returned 12". 12 is ENOMEM in /usr/include/sys/errno.h. So it seems to be complaining that your box doesn't have enough memory to run these tests. This seems strange, however, as you're running Linux. So it would seem to me that your Linux is not configured with enough swap space. The tests don't create an excessive number of threads, so you should really look into increasing the swap space (or possibly physical ram) on your system.

However, your report does illustrate that the tests do not robustly handle thread creation failures, so I'll fix that. Thanks.
Write a response