linux/include
Andi Kleen 8346ea17aa x86: split large page mapping for AMD TSEG
On AMD SMM protected memory is part of the address map, but handled
internally like an MTRR. That leads to large pages getting split
internally which has some performance implications. Check for the
AMD TSEG MSR and split the large page mapping on that area
explicitely if it is part of the direct mapping.

There is also SMM ASEG, but it is in the first 1MB and already covered by
the earlier split first page patch.

Idea for this came from an earlier patch by Andreas Herrmann

On a RevF dual Socket Opteron system kernbench shows a clear
improvement from this:
(together with the earlier patches in this series, especially the
split first 2MB patch)

[lower is better]
              no split stddev         split  stddev    delta
Elapsed Time   87.146 (0.727516)     84.296 (1.09098)  -3.2%
User Time     274.537 (4.05226)     273.692 (3.34344)  -0.3%
System Time    34.907 (0.42492)      34.508 (0.26832)  -1.1%
Percent CPU   322.5   (38.3007)     326.5   (44.5128)  +1.2%

=> About 3.2% improvement in elapsed time for kernbench.

With GB pages on AMD Fam1h the impact of splitting is much higher of course,
since it would split two full GB pages (together with the first
1MB split patch) instead of two 2MB pages.  I could not benchmark
a clear difference in kernbench on gbpages, so I kept it disabled
for that case

That was only limited benchmarking of course, so if someone
was interested in running more tests for the gbpages case
that could be revisited (contributions welcome)

I didn't bother implementing this for 32bit because it is very
unlikely the 32bit lowmem mapping overlaps into the TSEG near 4GB
and the 2MB low split is already handled for both.

[ mingo@elte.hu: do it on gbpages kernels too, there's no clear reason
                 why it shouldnt help there. ]

Signed-off-by: Andi Kleen <ak@suse.de>
Acked-by: andreas.herrmann3@amd.com
Cc: mingo@elte.hu
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-04-17 17:41:30 +02:00
..
acpi
asm-alpha alpha: get_current(): don't add zero to current_thread_info()->task 2008-04-02 15:28:20 -07:00
asm-arm spi: spi_s3c24xx must initialize num_chipselect 2008-04-15 19:35:41 -07:00
asm-avr32 kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-blackfin kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-cris kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-frv FRV: Don't make smp_{r, w, }mb() interpolate MEMBAR when CONFIG_SMP=n [try #2] 2008-04-10 13:41:29 -07:00
asm-generic kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-h8300 kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-ia64 kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-m32r kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-m68k kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-m68knommu kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-mips Pb1200/DBAu1200: fix bad IDE resource size 2008-04-17 01:14:33 +02:00
asm-mn10300 kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-parisc kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-powerpc kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-ppc
asm-s390 kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-sh kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-sparc kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-sparc64 kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-um uml: compile error fix 2008-04-15 19:35:40 -07:00
asm-v850 kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
asm-x86 x86: split large page mapping for AMD TSEG 2008-04-17 17:41:30 +02:00
asm-xtensa kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
crypto
keys
linux Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block 2008-04-16 07:45:45 -07:00
math-emu
media
mtd
net [IPV6]: Use appropriate sock tclass setting for routing lookup. 2008-04-13 23:40:51 -07:00
pcmcia
rdma
rxrpc
scsi
sound
video
xen
Kbuild