1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

AMD Bulldozer Cache Aliasing Issue Fix

Michael Larabel

Published on 4 November 2011
Written by Michael Larabel
Page 1 of 3 - 3 Comments

The "AMD F15h cache aliasing issue" fixes have landed, which address cache aliasing penalties for AMD Bulldozer (Family 15h) processors. This can lead to performance improvements for some workloads.

Merged into the Linux 3.2 kernel is the patch-set that provides the cache aliasing fixes for AMD's new Bulldozer processors. Borislav Petkov, the open-source Linux developer out of AMD's Munich office, has been working on this patch-set for several months. Below is the commit message from Petkov that explains what this work is about.

This patch provides performance tuning for the "Bulldozer" CPU. With its shared instruction cache there is a chance of generating an excessive number of cache cross-invalidates when running specific workloads on the cores of a compute module.

This excessive amount of cross-invalidations can be observed if cache lines backed by shared physical memory alias in bits [14:12] of their virtual addresses, as those bits are used for the index generation.

This patch addresses the issue by clearing all the bits in the [14:12] slice of the file mapping's virtual address at generation time, thus forcing those bits the same for all mappings of a single shared library across processes and, in doing so, avoids instruction cache aliases.

It also adds the command line option "align_va_addr=(32|64|on|off)" with which virtual address alignment can be enabled for 32-bit or 64-bit x86 individually, or both, or be completely disabled.

Borislav Petkov reported on the kernel mailing list back in July that depending upon the situation that the AMD system performance could be improved by a few percent with this patch.

This work has officially landed into the Linux 3.2 kernel. Petkov also provided patches on Friday morning to the mailing list for integration into the stable Linux 3.0 and Linux 3.1 series, thus should appear soon in point releases for those series. This work only affects AMD 15h CPUs by default, which are the Bulldozer processors. The IC aliasing issue patch originally was posted to the Linux kernel mailing list back in July, but back then Linus Torvalds was unhappy with the first version. He referred to the work as a small disaster, but now it's mainline.

Back when receiving the AMD FX-8150 Bulldozer, I ran some tests with the earlier aliasing issue patch on the Linux 3.1 kernel to see if there were performance improvements for the usual Linux benchmarking workload. Those results are on the next pages.

Latest Articles & Reviews
  1. Khronos Group Announces Vulkan, OpenCL 2.1, SPIR-V
  2. Samsung 850 EVO SSD Linux Benchmarks
  3. Kubuntu 15.04 Is Turning Out Quite Nice, Good Way To Try Out The Latest KDE
  4. 5-Way Linux Distribution Comparison On The Core i3 NUC
  5. OCZ ARC 100 Linux SSD Benchmarks
  6. Lenovo ThinkPad X1 Carbon Works Great As A Linux Ultrabook
Latest Linux News
  1. The Khronos Group's Vulkan, SPIR-V & OpenCL 2.1 Presentations
  2. Valve Developed An Intel Linux Vulkan GPU Driver
  3. Valve Starts Listing The Steam Machines In The Steam Store
  4. Ubuntu Will Start Booting With Systemd Next Monday
  5. A Brand New Linux Network Stack Proposed: Linux XIA
  6. Niche Drivers Get Ported To Atomic Mode-Setting For Linux 4.1
  7. openSUSE Tumbleweed Continues Ascending
  8. Open-Source SPIR-V Reader & Writer Written In Java
  9. LunarGLASS Adds Experimental SPIR-V Front-End
  10. The New Open-Source Linux Test Farm Is Almost Operational
Most Viewed News This Week
  1. Confirmed: Vulkan Is The Next-Gen Graphics API
  2. Xfce 4.12 Released After Nearly Three Years Of Work
  3. 8cc: A Small C11 Compiler
  4. Unreal Engine Made Free By Epic Games
  5. Canonical's Latest Demo Of Ubuntu Unity 8 Convergence In Action
  6. Mozilla Thunderbird Adoption Climbs, Thunderbird 38 In May
  7. VLC 2.2 "Weathermax" Brings Better VP9 & H.265 Support
  8. Features Coming For The Imminent Xfce 4.12 Release
%%CLICK_URL_UNESC%%