Re: Better CLONE_SETTLS support for Hammer

From: Benjamin LaHaise (bcrl@redhat.com)
Date: Wed Mar 05 2003 - 21:08:56 EST


On Wed, Mar 05, 2003 at 03:04:07PM -0800, Ulrich Drepper wrote:
> I wouldn't want to either in your position. You caused this whole mess
> and now you're not willing to fix it.

I disagree. We don't need to use a segment register to get the thread
library equivalent of "current". Changing the segment registers on a
per process basis is a waste of time in the context switch. Instead,
making x86-64 TLS support based off of the stack pointer, or even using
a fixed per-cpu segment register such that gs:0 holds the pointer to the
thread "current" would be better. Make the users of threads suffer, not
every single application and syscall in the system.

                -ben

-- 
Junk email?  <a href="mailto:aart@kvack.org">aart@kvack.org</a>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:30 EST