14 ms·
How Facebook deals with PCIe faults to keep its data centers running reliably
- drewg123 5y agoPcicrawler looks interesting, but its too bad that it uses sysfs, making it tied to Linux. I wonder how hard it would be to make it use pciutls, which would make it portable to FreeBSD, MacOS, Windows, etc.. EDIT: There is a libpci for python that uses pciutls...
- deleted 5y ago[deleted]
- DaiPlusPlus 5y agoAren’t pciutils dependent on hardware support though? I have a couple of Asus mobos that have weird mouse movement depending on how slightly angled the GPU is in the slot - I tried to use pciutils to diagnose the issue but the “gamer”-grade Core i7 I have in there wasn’t on support-list because Intel only enables PCIe diags on i9/X and Xeon chips. ...and I know a few DCs that loaded up on cheap low-grade i3/i5 chips for “near-line” computing (slow but cheap and cheerful) so they’d be SoL too.
- lights0123 5y ago...Why would sysfs expose something that your hardware doesn't support while pciutils doesn't?
- DaiPlusPlus 5y agoI assumed sysfs exposes a subset of available information: that pciutils can expose more data given hardware support. I know some of the more basic pciutils ran on my computer, though.
- drewg123 5y agoFWIW, pciutils can use a variety of different access methods. Use lspci -A help to see the different access methods, and then lspci -A $method to use a different access method. Note that one of the access methods on linux is linux-sysfs, so pciutils can use sysfs under the hood.
- deleted 5y ago[deleted]
- secondcoming 5y agoEven though it seems to only officially support CentOS, I gave it a shot on a GCP Ubuntu instance. `pcicrawler` output some info, but `pcicrawler -t` was just blank. Seems similar to `lstopo`
- jandrese 5y agoIs anybody else frustrated that this somewhat lengthy article was relentlessly vague with the actual numbers? It was so consistent it felt like something you would present to a person allergic to technical detail.
- deleted 5y ago[deleted]
- baybal2 5y agoI believe this is called "technical marketing" Does Facebook still want to launch an own AWS clone?
- nautilus12 5y agoNot sure if they did who would end up being the bigger asshole. My opinion of AWS is already at an all time low, but my opinion of Facebook has always been low too. At least it would introduce some competition for AWS.
- adflux 5y agoSome competition for AWS? Seems like Azure and GCP are competing pretty hard don't you think?
- mschuster91 5y agoI know many people who won't dare touch GCP with a ten foot pole simply because they're afraid of Google's random banning AI wiping their digital lives. Azure is a minefield that's only worth it when on a .NET stack.
- verst 5y agoRe Azure, what makes you say that? Can you be specific?
- th33ngineer 5y ago> Bad…link speed…and bad…link width…were other concerning PCIe faults. These faults can be difficult to detect without some sort of automated tool… Most modern PCIe PHY now have the ability to serve interrupts when down-training occurs much like they would for AER errors or hard link failures. Does FB use their own silicon in these data centers? Having this feature enabled is crucial when you get up to gen4 speeds. Weirdly I don’t see any detail about the gen used here though.
- maccam94 5y agoFB doesn't want hardware to run at lower than rated speeds. Their tool allows them to detect when it happens and remediate the issue.
- numpad0 5y agoOP claims it shouldn’t be “difficult to detect (...) because the hardware is working” because most commercially sold host controller chips would generate interrupt and report errors, unless Facebook is using something nonstandard that don’t.
- maccam94 5y agoThe hardware is reporting the errors to the kernel but not crashing the system. It's "difficult to detect" because unless you are specifically monitoring for those stats, the only issue you'll see is degraded performance on an occasional machine (assuming you are watching carefully enough to even discern the performance delta). Some of the error counters are even predictive of an issue rather than something that is actively impacting performance. The FB software is basically scraping those messages and bus stats into JSON that can be consumed by their monitoring infrastructure.
- Animats 5y agoIt sounds like a description of how an IBM mainframe works, where each hardware unit has fault detection and isolation.
- OldGoodNewBad 5y agoFacebooks a disgusting company filled with icky people but they have produced the occasional good bit of research,
- peteretep 5y agoI’ve been very impressed with fastText and React
- moosebear847 5y agoSucks that I have to worry while reading their technical blog post that it's pretty likely that Facebook is tracking the fact that I'm reading their article.
- bawolff 5y agoAh yes, because no other company puts analytics on their blog
- tobyhinloopen 5y agoAt least they dont use a misleading/lying cookie wall. “WE CaRe AbOuT yOuR PrIvaCy, please click accept or open this huge modal with 100 checkboxes to disable all trackers one by one”
- TwoBit 5y agoHas Facebook ever publicly written about the major Intel chip SSE failures they ran into a few years ago?
- KirillPanov 5y agoGo on...
- TwoBit 5y agoFacebook discovered that in their data centers heavy usage of SSE instructions caused overheating that broke the chips. It was happening frequently. Source: I worked at Facebook.
- throwawayoknj 5y agoNo, because they use processor bugs as leverage to get a discount on the next batch they order.
- deleted 5y ago[deleted]
- londons_explore 5y ago> also important to rate-limit remediations and repairs as a safety net to prevent bugs in the code from mass draining and unprovisioning, which can result in service outages if not handled properly. This is the most important bit for someone reimplementing this... Never let automation 'run wild' - always have a maximum number of machines per second it can act on, and a maximum percentage of the fleet unhealthy to allow it to continue taking things out of service.
- WJW 5y agoI agree wholeheartedly. Computers can do the wrong thing at incredible speed sometimes. This reminds me of the anecdote that nuclear submarine designers knowingly don't automate some things because if the automation would fail then it would cause the loss of the entire sub quickly enough that the situation is beyond salvage by the time humans can react. Instead, they have an extensive checklist and do all procedures with 2 people and a third over an audio line. Even if it does go wrong, it will probably go wrong slowly enough that a concerted damage control effort from the rest of the crew can contain the problem.
- dosman33 5y agoI'm calling BS on this. Total lack of any specifics, and I don't need to know what brand of hardware is giving them fits. I've been responsible for tens of millions of dollars in hardware over the years of my career and PCIe has never been the source of my headaches. Disk drives, memory, and firmware bugs are the usual suspects. They can get right out of here with their holier-than-thou attitude on this.
- dekhn 5y agoI worked at a large cluster computing company and we did occasionally, very occasionally see PCIe problems. Note that a lot of people are now exporting PCIe over a cable, not just plugging into the mainboard, and that can be a source of problems ('oops, the PCIe cable was routed in a location that made it experience more EMF, vibration, and physical damage and then it started to show more errors). These sorts of problems mainly show up if you're running your own fleet, designing your own servers (poorly/aggressively) and have a budget of $10B.
- mox1 5y agoI don't mean to be rude, but did you ever look? Swapping parts because something is wrong would fix weird PCIe errors as well. Also, PCIe usage has probably grown exponentially over the past 10 years. Its possible facebook has an order (or two) more of PCIe "links" in their datacenters today compared to 10 years ago.