Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Machine Check Exception
Search
Satoru Takeuchi
PRO
July 12, 2026
Technology
71
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
119-多機能ファイルシステムBtrfs_のコピー.pdf
sat
PRO
1
79
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
110
あなたの知らないバージョン命名規則
sat
PRO
3
920
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
74
バイナリダンプの模様を読む
sat
PRO
0
110
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
110
114-ファイルのshallow_copy.pdf
sat
PRO
2
63
113-Btrfsのスナップショット.pdf
sat
PRO
0
47
システム強制終了時にファイルシステムの整合性を保つ~ コピーオンライト編 ~
sat
PRO
0
80
Other Decks in Technology
See All in Technology
Tofu-Controller lightning talk @ Containerday 2026
gionn
0
120
FinOps Agentが生んだ技術負債:コスト自動調査の落とし穴と解消までの道のり
oasis1994liveforever
2
150
Conditional PED-ANOVA: Hyperparameter Importance in Hierarchical & Dynamic Search Spaces
pfn
PRO
0
140
SAENM ~Jupyterで残すPoCの試行錯誤、未来の自分と仲間を助ける記録!~
terapyon
0
120
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
180
LambdaWebFunctionsを試してみた / exploring-lambda-web-functions
koukihosaka
1
360
Code for Security プロジェクト紹介 2026年10月
yu23ki14
0
110
僕のハーネスを紹介します
watany
3
260
「Docker Desktop不要の時代」は 来たのか?
ueponx
0
840
[JAWS-UG彩の国埼玉#12]そろそろ準備する?re:Invent2026をやさしく解説 / reinvent2026-sainokuni
sh_fk2
1
360
フロントエンドカンファレンス関西2026 - 速すぎるUIに、待ち時間を
teamlab
PRO
0
190
AIがコードを書く時代に、エンジニアは何で自分の価値を証明するのか / In an era where AI writes code how do engineers prove their value
carta_engineering
3
1.1k
Featured
See All Featured
Fireside Chat
paigeccino
43
4.1k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
Embracing the Ebb and Flow
colly
88
5.2k
Building AI with AI
inesmontani
PRO
1
1.3k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
370
Mobile First: as difficult as doing things right
swwweet
225
10k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
Prompt Engineering for Job Search
mfonobong
0
520
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
560
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
580
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