Skip to contentSkip to conversation

pthread_create() slow for many threads; also time to revisit 64b context switch optimization?

DISCUSSION Leon Bottou 1 participant 1 message Aug 21, 2008

lore
Share & tools
lore
#0 lore raw

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_32BIT was 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