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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jamie Lokier
Date: Friday, August 15, 2008 - 8:54 am

Ingo Molnar wrote:


I think the flag makes sense but it's name is confusing - 64BIT for a
flag which means "maybe request 32-bit stack"!  Suggest:

+#define MAP_STACK       0x20000         /* 31bit or 64bit address for stack, */
+                                        /* whichever is faster on this CPU */

Also, is this _only_ useful for thread stacks, or are there other
memory allocations where 31-bitness affects execution speed on old P4s?

-- Jamie
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: pthread_create() slow for many threads; also time to r ..., Arjan van de Ven, (Wed Aug 13, 11:16 am)
Re: pthread_create() slow for many threads; also time to r ..., Jamie Lokier, (Fri Aug 15, 8:54 am)