Re: [PATCH] [2.5 i386] Swap TLS and TSS entries to improve spatial locality

From: Ingo Molnar (mingo@elte.hu)
Date: Wed Aug 07 2002 - 12:07:39 EST


On 7 Aug 2002, Luca Barbieri wrote:

> GDT entries are usually accessed with this pattern:
> * Interrupt: read TSS (for ss0:esp0) and kernel CS/DS
> * Schedule: write TLS, LDT, load FS and GS (either TLS, user DS
> or LDT entry)
> * Return: read user CS/DS
>
> Swapping the TLS and TSS entries causes the GDT entries that are read
> during interrupt and schedule to be in the same cacheline.

yes, this makes perfect sense.

        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/



This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:36 EST