by aluminum96 · 4y ago · 0 comments
DEC Alpha has extremely weak memory ordering. [1] In fact, it's the weakest ordering of any arch supported by linux, which includes extra fence instructions to support it. The memory model is crazy weak, but it apparently allows for extra speculative execution parallelism.
[1] Awesome Raymond Chen post, totally worth a read: https://devblogs.microsoft.com/oldnewthing/20170817-00/?p=96...
Apparently the L1 cache was implemented with two blocks handling even and odd lines, and they would process coherency operations out of order with respect to one another which is why dependent loads can see data out of order. So not additional speculative execution parallelism but probably a simpler physical design for the cache.
I don't miss having to think about architecture and different Unix variants all the time, but I do miss the variety.
Is this still used en masse somewhere and needs updates? Consider me 100% ignorant.
Why care about the instruction set? It a very good regression test for the kernel locking primitives and data structures. Something "boring" like x86 with its TSO memory model will hide bugs.