Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Machine Check Exception
Search
Satoru Takeuchi
PRO
July 12, 2026
Technology
46
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Machine Check Exception
以下動画のスライドです。
https://youtu.be/iOiIrl_OEz4
Satoru Takeuchi
PRO
July 12, 2026
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
23
バイナリダンプの模様を読む
sat
PRO
0
69
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
55
114-ファイルのshallow_copy.pdf
sat
PRO
2
40
113-Btrfsのスナップショット.pdf
sat
PRO
0
22
システム強制終了時にファイルシステムの整合性を保つ~ コピーオンライト編 ~
sat
PRO
0
62
システム強制終了時に ファイルシステムの整合性を保つ ~ ジャーナリング編 ~
sat
PRO
2
65
ファイルシステムの整合性を回復するfsck
sat
PRO
1
67
小学校5,6年生向けキャリア教育 大人になるまでの道
sat
PRO
8
5.5k
Other Decks in Technology
See All in Technology
Claude Mythos、Fable...フロンティアAIの最新動向と企業のセキュリティ対策
flatt_security
0
170
Escolhendo LLMs na Prática: Lições Reais em Busca Agêntica no Mercado Livre —TDC 2026 Floripa
jpbonson
0
110
エンタープライズデータへ安全につなぐ Production-ready なエージェント設計 ― AI × MCP リファレンスアーキテクチャ ― #AIDevDay
cdataj
1
360
AI研修(Day1)【MIXI 26新卒技術研修】
mixi_engineers
PRO
2
2.9k
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
53k
ウォーターフォール開発案件のPMとしてAI活用を模索している話
hatahata021
2
230
『モンスターストライク』 の運営に伴走する! データ民主化への 解析グループの3つのアプローチ
mixi_engineers
PRO
0
180
クラウドセキュリティ入門 ~安全なクラウド利用のための基礎知識~
lhazy
0
290
コンポーネント名には何を含めるべきなのか? / what-should-be-included-in-component-names
airrnot1106
0
200
NYC Summit 2026 におけるAmazon Bedrock AgentCore のアップデート
ren8k
3
280
データエンジニアこそ組織のオントロジーに向き合うべき — 問いに答えるAIから、事業を動かすAIへ
gappy50
7
2.8k
PLaMo 3.0 Primeの事後学習
pfn
PRO
0
210
Featured
See All Featured
How Software Deployment tools have changed in the past 20 years
geshan
1
34k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
550
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
230
How GitHub (no longer) Works
holman
316
150k
The Pragmatic Product Professional
lauravandoore
37
7.4k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
45k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
Building an army of robots
kneath
306
46k
How to Ace a Technical Interview
jacobian
281
24k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
310
Transcript
Machine Check Exception Jul. 12nd, 2026 Satoru Takeuchi X: satoru_takeuchi
1
• 頭文字をとってMCEと呼ばれることが多い • コンピュータのハードウェアで発生したエラー(machine check error)を通知する方 法 ◦ 📝 エラー通知方法だけでなくエラーそのものもMCEと呼ぶこともあるが、本動
画ではエラーそのものはmachine check errorとする • machine check errorの例 ◦ 発生場所: CPU、メモリ、バスなど ◦ 理由: ビット化け、データ送受信失敗、送受信データがプロトコル違反 Machine Check Exceptionとは 2
メモリのビットが化けた場合 • x86_64 Linuxのシステムでメモリ上の0x1000であるべきデータが化けて0x1001に なった! • これを放置すると… ◦ 誤ったデータを保存する ◦
誤ったデータをもとにデータ処理して誤りを拡大させる • Error Correction Code(ECC, 誤り訂正符号)メモリなら検出、訂正可能 ◦ 基本はSECDED(Single Error Correct, Double Error Detect) ◦ 通常サーバはECCメモリを使うがパソコンはそうではない • 📝 宇宙船に搭載されているコンピュータは宇宙線によって当たり前のようにビット 化けが起きるらしい 3
検出後はどうなる? • メモリのビット化けを検出&修正済(correctable error) ◦ CPUは自身のModel Specific Register(MSR)に発生したことを記録する ◦ カーネルがMSRを呼んでカーネルログ
(dmesg)に出力 • メモリのビット化けを検出したが修正はできず(uncorrectable error) ◦ CPUはMCEを発生させ、カーネルの MCEハンドラを実行する ◦ 可能であればカーネル側で対処を試みる。対処不能なら通常あきらめてパニックさせる • メモリのビット化けに限らずハードウェアエラーは「修正可能なら記録は残す」「修正 不可能なら速やかにシステムを停止させる」が基本 4
私が遭遇したことがあるmachine check error • AMDのRyzen 1800xで特定の負荷をかけるとCPUのキャッシュのビット化け&訂 正が発生することがあった • このときはCPUを交換した 5
[ 627.958024] mce: [Hardware Error]: Machine check events logged [ 627.958027] [Hardware Error]: Corrected error, no action required. [ 627.958034] [Hardware Error]: CPU:13 (17:1:1) MC3_STATUS[-|CE|MiscV|-|-|-|-|SyndV|-]: 0x9820000000000150 [ 627.958037] [Hardware Error]: IPID: 0x000300b000000000, Syndrome: 0x000000002a000503 [ 627.958040] [Hardware Error]: Decode Unit Extended Error Code: 0 [ 627.958041] [Hardware Error]: Decode Unit Error: uop cache tag parity error. [ 627.958044] [Hardware Error]: cache level: RESV, tx: INSN, mem-tx: IRD
まとめ • CPUが何らかのハードウェアエラーを検出するとシステムと協力して対処 ◦ 記録に残す ◦ MCEを使って通知、システム (カーネル)がエラーからの復旧を試みる ◦ どうにもならなければシステムを停止させる
• MCEがたくさん発生したりdmesgにcorrectable errorがたくさん記録されているシ ステムは怖い ◦ どういうエラーかを確認して部品を交換すると治るかもしれない • コストをかけると、ある程度怖さが減らせる ◦ 例: ECCメモリ 6