Josh Boyd (@joshboyd) header
Josh Boyd (@joshboyd) profile picture
Joined December 2007
Photo by Josh Boyd (@joshboyd)Photo by Josh Boyd (@joshboyd)Photo by Josh Boyd (@joshboyd)Photo by Josh Boyd (@joshboyd)Photo by Josh Boyd (@joshboyd)Photo by Josh Boyd (@joshboyd)Photo by Josh Boyd (@joshboyd)Photo by Josh Boyd (@joshboyd)Photo by Josh Boyd (@joshboyd)Photo by Josh Boyd (@joshboyd)
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! 🙂
155
1,277
154
8,430
760,433
You think you need an app for this, but what you really need is to learn Excel.
35
150
20
1,265
176,266
Do you think we should not have a military? Or just an ineffective one? It is a job to be done. Do it well.
62
51
20
2,103
92,062
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? >>
12
34
6
302
81,330
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-…
53
841
96
5,260
770,395
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.
142
2,481
507
18,510
4,574,142
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
571
3,510
844
21,415
7,130,201
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.
16
4
2
80
10,020
Josh Boyd retweeted
Replying to @sentdefender
Says Who? We lover her.
9
7
1
396
7,611
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
18
10
2
296
40,570
688
2,684
270
65,102
8,931,588
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?
203
45
39
1,403
301,752
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.
11
22
9
276
922,687
I’m convinced there’s a direct correlation to how much your boss curses and how much they’ll fight for you.
63
62
24
921
167,040
The age of AI is already here #parody #artificalintelligence #robot
30
194
50
670
69,533