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
メモリ上に作るファイルシステムとブロックデバイス
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Satoru Takeuchi
PRO
July 05, 2020
Technology
1k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
メモリ上に作るファイルシステムとブロックデバイス
以下動画のテキストです。
https://youtu.be/wnMGqK_Rl2Q
Satoru Takeuchi
PRO
July 05, 2020
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
119-多機能ファイルシステムBtrfs_のコピー.pdf
sat
PRO
1
80
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
110
あなたの知らないバージョン命名規則
sat
PRO
3
930
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
78
Machine Check Exception
sat
PRO
2
72
バイナリダンプの模様を読む
sat
PRO
0
120
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
110
114-ファイルのshallow_copy.pdf
sat
PRO
2
67
113-Btrfsのスナップショット.pdf
sat
PRO
0
48
Other Decks in Technology
See All in Technology
生き様としてのSRE
hokkai7go
1
140
20261031_IoTLT_vol140_kitazaki_v1.pdf
kitazaki
0
130
E2Eってつらくないですか?E2Eの管理コストを下げる手段とその実践
akaboshinit
6
2.8k
新米を「売り越さない」、Aurora DSQLで作る在庫ゼロ死守の限定ドロップEC
yama3133
0
120
ひとりで始めた AI駆動開発、チームに広げて何が変わったのか
kenichiodo
1
180
キヨさん67歳 AIコーディングエージェント物語
happysamurai294
0
140
Flutter Widget Previewerで始めるUIプレビューとVRTの自動化
sakusaku3939
0
190
kintoneで在庫管理システムを作るときの要件定義・設計ポイント
kai0707
0
190
自律的なチームを作るためにTechPMがやらないこと
ny7760
0
340
外国人エンジニアがVueプロトタイプで仕様を合わせている話 / Vue Fes Japan 2026 LT
eluwing
0
330
AI時代、つくる力を自分たちの手に。 ──電通×KAG、アジャイルとAI駆動開発で挑む開発の変革
yuukiyo
3
450
SLOを阻む不安
sraku2159
0
190
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
96
14k
The agentic SEO stack - context over prompts
schlessera
0
990
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
450
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
270
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
550
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
310
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
380
Optimizing for Happiness
mojombo
378
71k
Bash Introduction
62gerente
615
220k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
The untapped power of vector embeddings
frankvandijk
2
2k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
Transcript
メモリ上に作る ファイルシステムと ブロックデバイス Jul 4th, 2020 Satoru Takeuchi Twitter: satoru_takeuchi
もくじ • ファイルシステムとブロックデバイス • メモリベースのファイルシステムtmpfs • メモリベースのブロックデバイスbrd • まとめ
もくじ • ファイルシステムとブロックデバイス • メモリベースのファイルシステムtmpfs • メモリベースのブロックデバイスbrd • まとめ
ブロックデバイスとファイルシステム プロセス ストレージデバイス ファイルシステム デバイスファイル(/dev/sdaなど) ソフトウェア ハードウェア ユーザ空間 カーネル空間 データ読み書き
データ読み書き データ読み書き データ読み書き (mkfsなど)
もくじ • ファイルシステムとブロックデバイス • メモリベースのファイルシステムtmpfs • メモリベースのブロックデバイスbrd • まとめ
メモリベースのファイルシステムtmpfs プロセス tmpfs(ファイルシステム) ソフトウェア ハードウェア ユーザ空間 カーネル空間 データ読み書き データ読み書き メモリ
用途: • 一時的なデータ置き場 (/tmpなど) • ビルド高速化 • その他 その他うれしいところ • 実際に使った領域だけメモリを消費
つかいかた • 初期化 ◦ mount -t tmpfs -o size=<最大サイズ> nodev
<マウントポイント> ▪ Size: デフォルトは搭載物理メモリ量の半分 • 使用 ◦ 通常のファイルシステムと同じ • 終了 ◦ umount <マウントポイント>
もくじ • ファイルシステムとブロックデバイス • メモリベースのファイルシステムtmpfs • メモリベースのブロックデバイスbrd • まとめ
メモリベースのブロックデバイスbrd プロセス ファイルシステム デバイスファイル(/dev/ram0など) ソフトウェア ハードウェア ユーザ空間 カーネル空間 データ読み書き データ読み書き
データ読み書き データ読み書き (mkfsなど) メモリ 用途: • ブロックデバイスを扱う ソフトウェアのテスト • ファイルシステムの評価 その他うれしいところ • 実際に使った領域だけ メモリを消費
つかいかた • 初期化 ◦ modprobe brd ◦ modprobe brd rd_nr=<デバイス数>
rd_size=<KiB単位のサイズ> ▪ rd_nrのデフォルトは16 ▪ rd_sizeのデフォルトは64MiB • 使用 ◦ 通常のブロックデバイスと同じ • 終了 ◦ Modprobe -r brd
もくじ • ファイルシステムとブロックデバイス • メモリベースのファイルシステムtmpfs • メモリベースのブロックデバイスbrd • まとめ
まとめ • メモリベースのファイルシステムtmpfsについて学んだ • メモリベースのブロックデバイスbrdについて学んだ