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

Ingo Molnar (mingo@elte.hu)
Wed, 7 Aug 2002 19:07:39 +0200 (CEST)


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/