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
Linuxの時間を10秒止める
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Satoru Takeuchi
PRO
July 20, 2024
Technology
280
2
Share
Linuxの時間を10秒止める
以下動画のテキストです。
https://youtu.be/OYvhXQLfBmw
Satoru Takeuchi
PRO
July 20, 2024
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
システム強制終了時にファイルシステムの整合性を保つ~ コピーオンライト編 ~
sat
PRO
0
41
システム強制終了時に ファイルシステムの整合性を保つ ~ ジャーナリング編 ~
sat
PRO
1
46
ファイルシステムの整合性を回復するfsck
sat
PRO
1
48
小学校5,6年生向けキャリア教育 大人になるまでの道
sat
PRO
8
4k
ファイルシステムの不整合
sat
PRO
2
140
書籍執筆での生成AIの活用
sat
PRO
2
480
ChatGPTに従って体調管理2026
sat
PRO
0
180
eBPF
sat
PRO
1
150
waruiBPF
sat
PRO
0
140
Other Decks in Technology
See All in Technology
Gaussian Splattingの実用化 - 映像制作への展開
gpuunite_official
0
180
生成AI時代に信頼性をどう保ち続けるか - Policy as Code の実践
akitok_
1
240
AI 時代の Platform Engineering
recruitengineers
PRO
1
170
そのSLO 99.9%、本当に必要ですか? 〜優先度付きSLOによる責任共有の設計思想〜 / Is that 99.9% SLO really necessary? Design philosophy of shared responsibility through prioritized SLOs
vtryo
0
690
Sociotechnical Architecture Reviews: Understanding Teams, not just Artefacts
ewolff
1
170
SLI/SLO、「完全に理解した」から「チョットデキル」へ
maruloop
5
460
Tachikawa.any 運営挨拶
daitasu
0
170
20260513_生成AIを専属DSに_AI分析結果の検品テクニック_ハンズオン_交通事故データ
doradora09
PRO
0
220
Oracle AI Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
6
1.4k
拝啓、あの夏の僕へ〜あなたも知っているApp Runnerの世界〜
news_it_enj
0
240
要件定義の精度を高めるための型と生成AIの活用 / Using Types and Generative AI to Improve the Accuracy of Requirements Definition
haru860
0
320
古今東西SRE
okaru
2
180
Featured
See All Featured
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
1
43
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Are puppies a ranking factor?
jonoalderson
1
3.4k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
290
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
450
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
500
How to make the Groovebox
asonas
2
2.2k
The SEO Collaboration Effect
kristinabergwall1
1
440
Darren the Foodie - Storyboard
khoart
PRO
3
3.3k
Transcript
Linuxの時間を10秒止める Jul. 20th, 2024 Satoru Takeuchi X: satoru_takeuchi 1
はなすこと • カーネルモジュールを使ってLinuxの時間を10秒止める • 正確にいうと10秒間システムをハングさせる 2
実験プログラム • stop-machine.c • Linuxカーネルのカーネルモジュール • システムすべての動作を10秒間止める • 使いかた ◦
sudo insmod stop-machine.ko • 使い終わったら ◦ sudo rmmod stop-machine • ソース ◦ https://github.com/satoru-takeuchi/youtube-sample/tree/master 3
実験中… • 上 ◦ Hyper-Vの端末でLinuxへのログイン画面を表示 • 左下 ◦ Linuxにssh接続&stop-machineをロード •
右下 ◦ Linuxにssh接続&1秒に1回現在時刻を表示 ◦ for ((;;)) ; do sleep 1 ; date -R ; done 4 Windows Linux stop-machine.ko 時刻表示 Hyper-V
まとめ • Linuxの時間を10秒止めるとどうなるかを確認した ◦ こんなことができるカーネルはすごい • 興味ある人はソースを見てね ◦ ビルドして自分でも試してみる (REAME.mdにやりかたを書いている
) ◦ タイムアウト時間を増やしてみるとか 5