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
メモリ上に作るファイルシステムとブロックデバイス
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
56
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
81
あなたの知らないバージョン命名規則
sat
PRO
3
880
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
63
Machine Check Exception
sat
PRO
2
61
バイナリダンプの模様を読む
sat
PRO
0
86
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
82
114-ファイルのshallow_copy.pdf
sat
PRO
2
53
113-Btrfsのスナップショット.pdf
sat
PRO
0
39
Other Decks in Technology
See All in Technology
Claude Teamプランの コスト最適化を考える
rfdnxbro
2
850
「面白い!」を信じ抜け。激動の時代を貫く、オンリーワン・エンジニアの条件
kizawa2020
2
560
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
54k
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
5k
EMの役割で 変わったこと・変わらなかったこと
sansantech
PRO
1
220
PM領域でのAI Agentの活用
lycorptech_jp
PRO
0
160
サーバー常駐型の 簡易障害調査AI エージェントを作ってみた話
masayoshi
1
500
1.5時間を無駄にして学んだwsl2におけるaptとsnapの選択と仕組み
yosaka0123
0
480
みてねにおけるAI-DLC導入活動とAIドリブン開発の現在地/JAWS-UG AI-DLC #2
isaoshimizu
2
320
AI時代のデータ基盤を考える問い
pacocat
0
790
Bill One 開発エンジニア 紹介資料
sansan33
PRO
7
20k
いかに伝えるか 〜新卒エンジニアの教育のための、ライトノベル活用の一例
ikedon
1
130
Featured
See All Featured
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
370
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
510
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
500
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.2k
Chasing Engaging Ingredients in Design
codingconduct
0
290
The Mindset for Success: Future Career Progression
greggifford
PRO
0
480
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
Optimizing for Happiness
mojombo
378
71k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.6k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
640
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
67
57k
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について学んだ