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
Satoru Takeuchi
PRO
July 20, 2024
Technology
2
250
Linuxの時間を10秒止める
以下動画のテキストです。
https://youtu.be/OYvhXQLfBmw
Satoru Takeuchi
PRO
July 20, 2024
Tweet
Share
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
APIとABIの違い
sat
PRO
5
54
ファイルシステムへのアクセス方法
sat
PRO
0
24
ファイルシステム
sat
PRO
1
23
低レイヤソフトウェア技術者が YouTuberとして食っていこうとした話
sat
PRO
7
6.1k
ポーリングと割り込み
sat
PRO
1
78
Rook: Intro and Deep Dive With Ceph
sat
PRO
1
140
会社員しながら本を書いてきた知見の共有
sat
PRO
3
880
デバイスにアクセスするデバイスファイル
sat
PRO
1
60
ファイルシステムのデータを ブロックデバイスへの操作で変更
sat
PRO
1
48
Other Decks in Technology
See All in Technology
オブザーバビリティが広げる AIOps の世界 / The World of AIOps Expanded by Observability
aoto
PRO
0
340
Autonomous Database - Dedicated 技術詳細 / adb-d_technical_detail_jp
oracle4engineer
PRO
4
10k
Evolución del razonamiento matemático de GPT-4.1 a GPT-5 - Data Aventura Summit 2025 & VSCode DevDays
lauchacarro
0
150
「どこから読む?」コードとカルチャーに最速で馴染むための実践ガイド
zozotech
PRO
0
280
サラリーマンの小遣いで作るtoCサービス - Cloudflare Workersでスケールする開発戦略
shinaps
2
400
Agile PBL at New Grads Trainings
kawaguti
PRO
1
390
20250903_1つのAWSアカウントに複数システムがある環境におけるアクセス制御をABACで実現.pdf
yhana
3
540
allow_retry と Arel.sql / allow_retry and Arel.sql
euglena1215
1
160
【初心者向け】ローカルLLMの色々な動かし方まとめ
aratako
7
3.4k
エラーとアクセシビリティ
schktjm
1
1.2k
未経験者・初心者に贈る!40分でわかるAndroidアプリ開発の今と大事なポイント
operando
4
350
Webアプリケーションにオブザーバビリティを実装するRust入門ガイド
nwiizo
6
740
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
A designer walks into a library…
pauljervisheath
207
24k
Typedesign – Prime Four
hannesfritz
42
2.8k
Making the Leap to Tech Lead
cromwellryan
135
9.5k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
The Power of CSS Pseudo Elements
geoffreycrofte
77
6k
Automating Front-end Workflow
addyosmani
1370
200k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Building a Modern Day E-commerce SEO Strategy
aleyda
43
7.6k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
Bash Introduction
62gerente
615
210k
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