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
procfs
Search
Satoru Takeuchi
PRO
June 10, 2020
Technology
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
procfs
以下動画のテキストです。
https://youtu.be/y0N4TmNRmQg
Satoru Takeuchi
PRO
June 10, 2020
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
119-多機能ファイルシステムBtrfs_のコピー.pdf
sat
PRO
1
74
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
100
あなたの知らないバージョン命名規則
sat
PRO
3
910
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
67
Machine Check Exception
sat
PRO
2
68
バイナリダンプの模様を読む
sat
PRO
0
110
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
100
114-ファイルのshallow_copy.pdf
sat
PRO
2
59
113-Btrfsのスナップショット.pdf
sat
PRO
0
42
Other Decks in Technology
See All in Technology
OSC2026on_the-world-is-waiting-for-your-voice.pdf
naruoga
0
260
自主式軟體工廠
philipz
0
120
3人で1000GPU超を統合運用する?マルチクラウド&オンプレを跨ぐ、構築と運用のリアル!
kazukun0716
2
820
IR Today: Theory, Practice, and Agents
dtunkelang
0
330
スキルを作る、その前に!複数人で使われるスキルを 作るためのプロセス
junkifurukawa
2
180
行動するAIのためのオントロジー | DevRev — Encraft #26.pdf
dvrv_tknrszk
2
670
あなたの知らないAmazon VPC Route Server/Amazon VPC Route Server you don't know about
masakiokuda
2
210
KanaAI
shreyas1009
0
140
The seven pitfalls of AI (revised version)
ufried
0
220
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
16
120k
AI Native Platform Engineering 〜PlatformとAgileで“作る速さ”を“価値”へ〜
uya116
0
600
[2026 Oracle Technical Deep Dive] エンタープライズAIエージェントを支えるOCIソリューション。ラインナップと特徴を理解しよう! (2026年9月17日開催)
oracle4engineer
PRO
0
280
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
New Earth Scene 8
popppiees
4
2.6k
Unsuck your backbone
ammeep
672
58k
Everyday Curiosity
cassininazir
0
340
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
300
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
420
Visualization
eitanlees
153
17k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
700
Into the Great Unknown - MozCon
thekraken
41
2.7k
Transcript
procfs Jun 10th, 2020 Satoru Takeuchi Twitter: satoru_takeuchi 1
もくじ • Procfsとは • /proc/<pid>/以下のさまざまなファイル • 用途 • まとめ 2
もくじ • Procfsとは • /proc/<pid>/以下のさまざまなファイル • 用途 • まとめ 3
procfsとは • 通常/proc/以下にマウントされるファイルシステム • (主に)プロセスの情報を格納する ◦ プロセスの情報は/proc/<pid>/以下にある ◦ 歴史的な事情によってプロセス以外の情報もある (例:
/proc/cpuinfo • データはすべてメモリ上に存在する ext4, XFS procfs ディスク メモリ プロセスの情報 4
もくじ • Procfsとは • /proc/<pid>/以下のさまざまなファイル • 用途 • まとめ 5
/proc/<pid>/以下のさまざまなファイル • 演習: いろいろなファイルを見てみよう ◦ /proc/<pid>/cmdline: コマンドライン ◦ /proc/<pid>/fd: 開いているファイル
◦ /proc/<pid>/stat: CPU使用時間などの統計情報 • 詳細はman 5 procfsを参照 6
もくじ • Procfsとは • /proc/<pid>/以下のさまざまなファイル • 用途 • まとめ 7
用途 • psコマンド: プロセスの様々な統計情報を得る • 演習: psコマンドがprocfsを使っていることを確認 ◦ 使うもの: strace
• procfsがあるとプロセス情報取得用システムコールが不要なので便利 • procpsパッケージ内のさまざまなコマンドをチェックしてみよう 8
もくじ • Procfsとは • /proc/<pid>/以下のさまざまなファイル • 用途 • まとめ 9
まとめ • Procfsはプロセスに関する情報を得られるファイルシステム • 各プロセスの情報は/proc/<pid>/以下から得られる • 意味はman 5 procfsを見ればわかる •
psコマンドをはじめとした様々なプログラムが使っている 10