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
- Intel Corporation to Participate in Upcoming Investor Conferences • Business Wire • 05/16/2024 08:30:00 PM
- Walmart Corporate Job Cuts and Office Centralization, GameStop and AMC Surge, and More News • IH Market News • 05/14/2024 11:26:02 AM
- Kevin O’Buckley to Lead Foundry Services at Intel • Business Wire • 05/13/2024 02:15:00 PM
- 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
Avant Technologies Engages Wired4Tech to Evaluate the Performance of Next Generation AI Server Technology • AVAI • May 23, 2024 8:00 AM
Branded Legacy, Inc. Unveils Collaboration with Celebrity Tattoo Artist Kat Tat for New Tattoo Aftercare Product • BLEG • May 22, 2024 8:30 AM
"Defo's Morning Briefing" Set to Debut for "GreenliteTV" • GRNL • May 21, 2024 2:28 PM
North Bay Resources Announces 50/50 JV at Fran Gold Project, British Columbia; Initiates NI 43-101 Resources Estimate and Bulk Sample • NBRI • May 21, 2024 9:07 AM
Greenlite Ventures Inks Deal to Acquire No Limit Technology • GRNL • May 17, 2024 3:00 PM
Music Licensing, Inc. (OTC: SONG) Subsidiary Pro Music Rights Secures Final Judgment of $114,081.30 USD, Demonstrating Strength of Licensing Agreements • SONGD • May 17, 2024 11:00 AM