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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
78
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
110
あなたの知らないバージョン命名規則
sat
PRO
3
920
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
73
Machine Check Exception
sat
PRO
2
70
バイナリダンプの模様を読む
sat
PRO
0
110
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
110
114-ファイルのshallow_copy.pdf
sat
PRO
2
62
113-Btrfsのスナップショット.pdf
sat
PRO
0
46
Other Decks in Technology
See All in Technology
AIにシークレットを見せない、WSL2で安全な開発環境
yazm
0
180
Rustuna: Rustによる高速なOptuna実装
pfn
PRO
0
130
触りたくないデータに、どう触るか AI時代のRBACアクセスガバナンス
ivry_presentationmaterials
0
140
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
0
130
組み立てて楽しむ AWS Blocks 入門
kmiya84377
0
230
Claude Code本は、どのように執筆チームで書かれたか
oikon48
1
370
事業活動を AI Ready にする攻めと守りのデータエンジニアリング / data-engineering-for-ai-ready-business
pei0804
7
2.7k
Running Kotlin + Quarkus with Lambda
nealle
1
470
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.5k
分析の民主化を支えるメタデータ整備の実践
kakehashi
PRO
4
1.3k
メルペイ 会計システム概要と歴史
mewuto
1
220
その Valkey 使いこなしていますか?
onk
PRO
4
720
Featured
See All Featured
Designing Experiences People Love
moore
143
24k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Facilitating Awesome Meetings
lara
57
7.2k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
630
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
How Software Deployment tools have changed in the past 20 years
geshan
2
35k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
How to make the Groovebox
asonas
2
2.5k
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について学んだ