lkml.org 
[lkml]   [2002]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: LDT_ENTRIES in ldt.h: why 8192?
On Wed, Feb 13, 2002 at 12:18:48PM -0800, Seth D. Alford wrote:
> I'm getting "ldt allocation failures" on one of my systems. I know of Manfred
> Spraul's patch for this for 2.4.17. I'm using 2.4.12, though, and was
> wondering about an alternate solution. What would happen if LDT_ENTRIES was
> reduced, to, say, 4096, or 512, instead of 8192?
>
> .../include/asm-i386/ldt.h specifies:
>
> /* Maximum number of LDT entries supported. */
> #define LDT_ENTRIES 8192
>
> This was set to 8192 in version 0.99.15, in December, 1993, according to what I
> could find by retrieving different revisions of the kernel.

E.g. linuxthreads can eat up to 1024 LDT entries, but that's not very common.
IMHO there should be a single entry LDT, the emulation 5 entry LDT (current
default_ldt), 512 entries LDT (page) and then the full blown 8192 entries
LDT variants. Will post a patch once I finish it.

Jakub
-
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.042 / U:2.372 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site