[patch] Fix for BZ 22207 -- intermittent failure to create threads on 32-bit machines

Florian Weimer fweimer@redhat.com
Tue Sep 26 06:04:00 GMT 2017


On 09/26/2017 02:09 AM, Paul Pluzhnikov wrote:
> +  /* With default 8MiB Linux stack size, creating 1024 threads can cause
> +     VM exhausiton on 32-bit machines.  Reduce stack size of each thread to
> +     128KiB for a maximum required VM size of 128MiB.  */
> +  xpthread_attr_setstacksize (&attr, 128 * 1024);

Is there a reason why you do not use PTHREAD_STACK_MIN?

Thanks,
Florian



More information about the Libc-alpha mailing list