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
290
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Linuxの時間を10秒止める
以下動画のテキストです。
https://youtu.be/OYvhXQLfBmw
Satoru Takeuchi
PRO
July 20, 2024
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
119-多機能ファイルシステムBtrfs_のコピー.pdf
sat
PRO
1
47
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
75
あなたの知らないバージョン命名規則
sat
PRO
2
850
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
61
Machine Check Exception
sat
PRO
2
58
バイナリダンプの模様を読む
sat
PRO
0
85
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
79
114-ファイルのshallow_copy.pdf
sat
PRO
2
48
113-Btrfsのスナップショット.pdf
sat
PRO
0
36
Other Decks in Technology
See All in Technology
8bit CPU 2026
koba789
7
3k
分割40%キーボードにスムーズに入門するには
hoto17296
1
180
When Token Pruning is Worse than Random: Understanding Visual Token Information in VLLMs
sansantech
PRO
0
130
「ミスを許さない手順書」を作ってみた 〜 個人的にはこれ以上できることはあまりなさそう/20260827-ssmjp-operation-procedure-update
opelab
13
9.1k
暗号化?某ファイルストレージはどうなるの!? 3rd Partyとうまく付き合う秘密度ラベル設計
kasada
0
210
AIレビュー時代に必要なのは、SLOで引く撤退ライン
nobuoooo
0
150
AI時代のデータ基盤を考える問い
pacocat
0
740
Introduction to Bill One Development Engineer
sansan33
PRO
0
480
internal/testlog で遊ぼう
rokuosan
0
340
Data Hubグループ 紹介資料
sansan33
PRO
0
3.2k
Kiro Crew で始める マルチエージェント開発
miu_crescent
PRO
0
200
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.5k
Featured
See All Featured
[SF Ruby Conf 2025] Rails X
palkan
2
1.3k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
300
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
The SEO Collaboration Effect
kristinabergwall1
1
530
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
A better future with KSS
kneath
240
18k
Un-Boring Meetings
codingconduct
0
400
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
420
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Designing for Timeless Needs
cassininazir
1
460
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
630
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
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