3 ms·
commodity CPUs running user-space code really are deterministic in practice, or at least the nondeterminism can be efficiently detected and controlled, without
by userbinator 9y ago
commodity CPUs running user-space code really are deterministic in practice, or at least the nondeterminism can be efficiently detected and controlled, without restorting to pervasive binary instrumentation. We're mostly winning that bet on x86 (but not ARM)
I'm curious about that mention of ARM --- since I always thought it was a far simpler and more rigidly defined architecture with fewer edge-cases/undefined (more like implementation-defined) behaviour than x86.
- ajdlinux 9y agohttps://github.com/mozilla/rr/issues/1373 https://github.com/mozilla/rr/issues/1373 This disappoints me, as I'd love to see rr ported to PowerPC, which is another LL/SC architecture that I suspect might run into this issue.
- _yosefk 9y agoI always thought the opposite - x86 is perhaps more complicated (though ARM is the most complicated architecture calling itself "RISC" by far, especially the 32b ISA), but x86's emphasis on backward compatibility not only for user code, but for OS/privileged code (where ARM can change completely between revisions) pushes it to have less variability between implementations. In particular I'm almost sure that the memory ops ordering on x86 is more strictly defined with less room for differences between implementations/different execution scenarios given the same instruction stream than ARM. (This however is from hearsay as I never wrote production code for the x86 which depended on this stuff.)