Re: 2.4, 2.6, i686/athlon and LDT's

From: Brian Gerst (bgerst_at_didntduck.org)
Date: 12/27/04

  • Next message: hui: "Re: Real-time rw-locks (Re: [patch] Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.32-15)"
    Date:	Mon, 27 Dec 2004 15:55:53 -0500
    To: Arjan van de Ven <arjan@infradead.org>
    
    

    Arjan van de Ven wrote:
    > On Mon, 2004-12-27 at 11:46 -0800, Tymm Twillman wrote:
    >
    >>Hi all,
    >
    >
    >>It appears that use of the LDT is to speed up context switching between
    >>threads, although I haven't even found especially good references WRT
    >>that. I have looked through the info in the IA Developers publications
    >>and have whacked my head against Google quite a bit. However, every bit
    >>of clarity I've found there has been offset by new confuzled bits.
    >
    >
    > LDT's are *slow*. That's why glibc will try to avoid using them
    > nowadays, and with 2.6 it won't; as for 2.4.. it depends if you use a
    > vendor 2.4 it might be able to avoid using LDT's as well.

    Using the LDT isn't inherently slower, since the cpu caches the segment
    descriptor regardless of if it came from the GDT or LDT. Using an LDT
    however consumes kernel memory, which can slow down the system from
    memory pressure if you have many processes/threads using them.

    --
    				Brian Gerst
    -
    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/
    

  • Next message: hui: "Re: Real-time rw-locks (Re: [patch] Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.32-15)"

    Relevant Pages

    • Re: [PATCH 3/6] i386 virtualization - Make ldt a desc struct
      ... > Make the LDT a desc_struct pointer, since this is what it actually is. ... there's such a thing as LDT common case;-) ... This now looks like you can leak data? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: IA32 | [OFFTOPIC]: Segementation Question
      ... > I'm currently doing some research on the IA32 Segementation Concept. ... To the GDT or the current LDT? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.4, 2.6, i686/athlon and LDTs
      ... > descriptor regardless of if it came from the GDT or LDT. ... do't confuse people with "does anyone have comparison information ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 0/6] i386 virtualization patches, Set 3
      ... > This round attempts to conclude all of the LDT related cleanup with some ... > really rather nasty kprobes problems, and the basic framework for an LDT ... > nice new segment and descriptor table accessors, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [uml-devel] [PATCH 8/10] UML - Maintain own LDT entries
      ... > Patch imlements full LDT handling in SKAS: ... *) It reverts my cleanup and consolidation of ldt.c wrt. SKAS vs TT. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)