x86: change the default cache size to 64 bytes
PATCH 1/1 x86: change the default cache size to 64 bytes
Quoted 1 line
From
632c5045d6827a3d044b6eb216d0e5597b25d468Mon Sep 17 00:00:00 2001
From: Ingo Molnar <[email protected]>
Date: Mon, 12 Jan 2009 23:37:16 +0100
Subject: [PATCH] x86: change the default cache size to 64 bytes
Right now the generic cacheline size is 128 bytes - that is wasteful when structures are aligned, as all modern x86 CPUs have an (effective) cacheline sizes of 64 bytes.
It was set to 128 bytes due to some cacheline aliasing problems on older P4 systems, but those are many years old and we dont optimize for them anymore. (They'll still get the 128 bytes cacheline size if the kernel is specifically built for Pentium 4)
--- arch/x86/Kconfig.cpu | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/Kconfig.cpu +2 -2
@@ -307,10 +307,10 @@ config X86_CMPXCHG config X86_L1_CACHE_SHIFT int - default "7" if MPENTIUM4 || X86_GENERIC || GENERIC_CPU || MPSC + default "7" if MPENTIUM4 || MPSC default "4" if X86_ELAN || M486 || M386 || MGEODEGX1 default "5" if MWINCHIP3D || MWINCHIPC6 || MCRUSOE || MEFFICEON || MCYRIXIII || MK6 || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || M586 || MVIAC3_2 || MGEODE_LX - default "6" if MK7 || MK8 || MPENTIUMM || MCORE2 || MVIAC7 + default "6" if MK7 || MK8 || MPENTIUMM || MCORE2 || MVIAC7 || X86_GENERIC || GENERIC_CPU config X86_XADD def_bool y
Quoted 10 lines · On Mon, 12 Jan 2009 23:44:28 +0100 Ingo Molnar <[email protected]> wrote:
Quoted 2 lines
From
632c5045d6827a3d044b6eb216d0e5597b25d468Mon Sep 17 00:00:00 2001From: Ingo Molnar <[email protected]>
Date: Mon, 12 Jan 2009 23:37:16 +0100
Subject: [PATCH] x86: change the default cache size to 64 bytesRight now the generic cacheline size is 128 bytes - that is wasteful when structures are aligned, as all modern x86 CPUs have an (effective) cacheline sizes of 64 bytes.
Quoted 6 lines
It was set to 128 bytes due to some cacheline aliasing problems on older P4 systems, but those are many years old and we dont optimize for them anymore. (They'll still get the 128 bytes cacheline size if the kernel is specifically built for Pentium 4)
Signed-off-by Ingo Molnar <[email protected]>
Signature · 3 lines
Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org