lkml.org 
[lkml]   [2002]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: kernel: ldt allocation failed
Date
On 6 February 2002 11:19, Andi Kleen wrote:
> Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> writes:
> > I am ignorant on the subject, but why LDT is used in Linux at all?
> > LDT register can be set to 0, this can speed up task switch time and save
> > some memory used for LDT.
>
> glibc thread local data uses an LDT for the segment register.
>
> glibc 2.3 seems to plan to use segment register based thread local data for
> even non threaded programs, so it would be a good idea to optimize LDT
> allocation a bit (= not allocate 64K of vmalloc space every time
> sys_modify_ldt is called - there is only 8MB of it)

What do they use on arches without LDT or equivalent?
--
vda
-
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: 2005-03-22 13:24    [W:0.173 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site