pthread_create() slow for many threads; also time to revisit 64b context switch optimization?
Please do not remove MAP_32BIT as it has other uses.
Quoted 2 lines · Jamie Lokier
Also, is this _only_ useful for thread stacks, or are there other memory allocations where 31-bitness affects execution speed on old P4s?lrich
Quoted 3 lines · Andi Kleen
MAP_32BITwas not actually added for this originally. It was originally added for the X server's old dynamic loader, which needed 2GB memory.
The dynamic loader of Lush (lush.sourceforge.net) also depends on this. Since it is tightly coupled with the lush compiler,
removing this capability would cause major trouble.
On the other hand, it does not need to be very fast...
- Leon Bottou