Josh Boyd retweeted
What happens if your CPU gets something wrong? If it wakes up one day and decides 2+2=5?
Well, most of us will never have to worry about that. But if you work at a company the size of Google, you do, which is why this paper on "mercurial cores" is so fascinating.
What the authors report--and supposedly this is common knowledge at the hyperscalers--is that a couple cores per several thousand machines are "mercurial." Due to subtle manufacturing defects or old age, they give wrong answers for certain instructions. These can cause all sorts of impossible-to-diagnose issues. Some rare problems at Google that were traced back to bad CPUs include:
- Mutexes not working, causing application crashes
- Silent data corruption
- Garbage collectors targeting live memory, causing application crashes
- Kernel state corruption causing kernel panics
What makes CPUs go bad? It's very hard to tell. The authors posit that issues are becoming more frequent as CPUs get more complex, but there aren't solid numbers behind that. There are certainly strong relationships between frequency, temperature, voltage, and bad CPU behavior--most mercurial CPUs only cause problems under very specific conditions, but those conditions vary from CPU to CPU. Age is another source of problems, as older CPUs are more likely to exhibit problems.
Bad CPUs are an especially serious problem because they're very hard to detect. If cosmic rays flip bits in storage or on the network, that can be detected through error coding. But there's no analogy for a CPU that allows cheap online verification of its correctness. Instead, the best detection techniques involve monitoring for symptoms. If a core exhibits exceptionally high rates of process crashes or kernel panics relative to its fellows, that's a strong indication something is wrong with it. For the most critical applications, the authors propose triple modular redundancy--redoing each of its computations on three cores and majority-voting a reliable result.
More than anything, this paper is a call to action--letting everyone know that CPUs can fail. So now, if you ever find a bug you can't diagnose, you can blame the CPU! 🙂
Josh Boyd retweeted
Replying to @iandanforth @PalmerLuckey
Do you think we should not have a military? Or just an ineffective one? It is a job to be done. Do it well.
Josh Boyd retweeted
Exec hires fail within 18 months 50-70% of the time, whether they're promoted from within or hired externally. That’s a staggering percentage. So what goes wrong? >>
Josh Boyd retweeted
The xz situation is absolutely insane and almost certainly state sponsored.
This is an excellent example of a widely used software being maintained by basically one person.
Read this web article and then frown and become sad.
boehs.org/node/everything-i-…
Josh Boyd retweeted
The xz backdoor was initially caught by a software engineer at Microsoft. He noticed 500ms lag and thought something was suspicious.
This is the Silver Back Gorilla of nerds. The internet final boss.
Josh Boyd retweeted
Bridge design for vessel collision. A🧵
The main span of the Francois Scott Key Bridge is 1300 ft. It also has 185 ft of clearance, making this a massive bridge.
This type of bridge is considered complex.
Baltimore is in for a long haul before replacement. Here is why.
1/x
Josh Boyd retweeted
Whenever I want to know how some code works—and I mean really understand it with no stone left uncovered—I read through the code from beginning to end, going down every branch (within reason), and translate it to English, writing it all down in a document.
"When a user does X, it causes this to happen in the Foo method on the Bar class which triggers processes A, B, and C."
Then I create sections describing how process A, B, and C work. Continue until there's nothing left to document.
I don't generally do this for a single function or file (unless it's a hot path), but for entire feature sets. Depending on the complexity, this can take me between 4 hours and 4 days. I'll then share the doc out with the relevant team(s) and gauge interest in hosting a brownbag to walk through the doc and simultaneously debug through the code, especially if there are new folks.
Sure, code can change over time so my understanding might become stale, but I find this process gives me a decent baseline to contribute to the codebase, review changes to it, and describe it at any level depending on my audience. I can also reference my doc like I would a map, helping me remember where to look for some code when I can't remember.
Taking the time to do this was called out specifically in my promotion to Principal SWE.
Josh Boyd retweeted
Kid: I want a tattoo of a rick roll QR code
Me: don’t get tattoos
Kid: why
Me: cops can use it to identify you for crimes
#parenting #fatherhood
Josh Boyd retweeted
I’m surprised that so much of Silicon Valley has such a negative view of the defense industry.
“You’re building weapons!”
Yes!
What’s the alternative? Do you think the United States refusing to maintain any military presence would usher in more peace in the long run?
Josh Boyd retweeted
Get. Off. My. Lawn.
We don't have an app.
Our API is called POSIX.
There's no web interface.
rsync.net is an empty UNIX filesystem you access with any SSH tool:
rsync/sftp/borg/restic/rclone
Not sure what this means ? Our cloud storage is NOT for you.
Josh Boyd retweeted
I’m convinced there’s a direct correlation to how much your boss curses and how much they’ll fight for you.


























