Re: LDT_ENTRIES in ldt.h: why 8192?

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Wed Feb 13 2002 - 15:47:41 EST


> wondering about an alternate solution. What would happen if LDT_ENTRIES was
> reduced, to, say, 4096, or 512, instead of 8192?

Some apps using LDT will stop working. Very little actually uses LDT's - the
main ones being wine and the sco 286 emulation software. Its also used by
glibc 2.2 by threads, and due to extremely stupid design considerations
by the glibc 2.3 current snapshots for everything.

Using LDT's has a measurable performance hit on task switching, so good
apps don't use them unless they really need them (eg for a threaded app
there is no other good way to do thread local storage and it is much
cheaper than having different memory maps)

-
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 Feb 15 2002 - 21:00:57 EST