Tuesday, September 06, 2011 12:53:28 PM
aliasing problem that hurts Linux performance on Bulldozer:
http://us.generation-nt.com/answer/patch-x86-amd-correct-f15h-ic-aliasing-issue-help-204200361.html
At top of thread:
From: Borislav Petkov <borislav.petkov@amd.com>
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 zeroing out the slice [14:12] 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.
Later on Linus weighs in with:
Argh. This is a small disaster, you know that, right? Suddenly we have
user-visible allocation changes depending on which CPU you are running
on. I just hope that the address-space randomization has caught all
the code that depended on specific layouts.
And even with ASLR, I wouldn't be surprised if there are binaries out
there that "know" that they get dense virtual memory when they do
back-to-back allocations, even when they don't pass in the address
explicitly.
How much testing has AMD done with this change and various legacy
Linux distros? The 32-bit case in particular makes me nervous, that's
where I'd expect a higher likelihood of binaries that depend on the
layout.
You guys do realize that we had to disable ASLR on many machines?
So at a MINIMUM, I would say that this is acceptable only when the
process doing the allocation hasn't got ASLR disabled.
Oooopsie. I wonder if AMD designers didn't run enough real world
code through their Bulldozer uarch simulator early in the design
cycle when stuff is easy to change rather than carved in stone.
On another forum someone claimed this aliasing bug drops BD
performance by 3%.
Recent INTC News
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/10/2024 08:26:31 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/10/2024 08:25:27 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/10/2024 08:24:27 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/10/2024 08:22:59 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/10/2024 08:21:59 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/10/2024 08:20:54 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/10/2024 08:19:57 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/10/2024 08:18:57 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/10/2024 08:18:03 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/10/2024 08:16:49 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/10/2024 08:15:43 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/10/2024 08:14:28 PM
- JFrog and Akamai Drop Over 10% Despite Strong Profits; Sweetgreen, Array, SoundHound Surge, and More in Earnings • IH Market News • 05/10/2024 11:58:39 AM
- Form 8-K - Current report • Edgar (US Regulatory) • 05/09/2024 09:13:47 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/09/2024 08:21:56 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/09/2024 08:20:46 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/09/2024 08:19:13 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/09/2024 08:18:01 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/09/2024 08:16:49 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/09/2024 08:15:34 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/09/2024 08:14:08 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 05/09/2024 08:12:49 PM
- Bain Capital in Talks to Acquire PowerSchool; Blackstone Emerges Victorious in Hipgnosis Bidding War, and More News • IH Market News • 05/09/2024 11:53:19 AM
- Meta Platforms Expands AI Ads, Apple Boosts iPhone Shipments, and More Highlights • IH Market News • 05/08/2024 12:27:48 PM
- Form 8-K - Current report • Edgar (US Regulatory) • 05/08/2024 11:49:38 AM
Avant Technologies Equipping AI-Managed Data Center with High Performance Computing Systems • AVAI • May 10, 2024 8:00 AM
VAYK Discloses Strategic Conversation on Potential Acquisition of $4 Million Home Service Business • VAYK • May 9, 2024 9:00 AM
Bantec's Howco Awarded $4.19 Million Dollar U.S. Department of Defense Contract • BANT • May 8, 2024 10:00 AM
Element79 Gold Corp Successfully Closes Maverick Springs Option Agreement • ELEM • May 8, 2024 9:05 AM
Kona Gold Beverages, Inc. Achieves April Revenues Exceeding $586,000 • KGKG • May 8, 2024 8:30 AM
Epazz plans to spin off Galaxy Batteries Inc. • EPAZ • May 8, 2024 7:05 AM