[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

libc6's stack size and 1000+ theads



Hallo

MySQL has some problems with more than 1000 threads as the standard
libc6 reserves 2MB stack size for each thread which alone consumes most of
the memory. MySQL suggests to rebuild statically against a local modified
libc with a stack size of 256kB which is nothing I have much interest in.

uclibc and diet-libc also seem to be quite a lot work to build against
(using a chroot/own toolchain) and still guarante no solving of the problem.

Do you know a better way to use glibc2/libc6? 
Maybe by setting some obscure environment variable or using LD_PRELOAD
tricks?

MySQL does AFAIK not (yet) use NPTL.

thanks,

-christian-



Reply to: