lkml.org 
[lkml]   [2006]   [Sep]   [11]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 11 Sep 2006 09:29:59 +0200
FromIngo Molnar <>
SubjectRe: 2.6.18-rc6-mm1: GPF loop on early boot

* Jeremy Fitzhardinge <jeremy@goop.org> wrote:

> Ingo Molnar wrote:
> >another thing about i386-pda: why did you pick the %gs selector to store
> >the PDA in? %fs would be a better choice because %gs is used by glibc so
> >the saving/restoring of %fs would likely be near zero-cycles cost.
> >(instead of the current 9 cycles for saving/restoring %gs)
>
> Why would saving/restoring %fs be quicker? [...]

because userspace does not use it normally, while with %gs we'd switch
between glibc's descriptor [which must be shadowed by the CPU] and the
kernel's descriptor [which must be shadowed by the CPU too] - hence
causing a constant reloading of the shadow register.

Ingo
-
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/

\
 
 \ /
  Last update: 2006-09-11 09:41    [from the cache]
©2003-2009