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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
68
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
93
あなたの知らないバージョン命名規則
sat
PRO
3
900
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
64
Machine Check Exception
sat
PRO
2
66
バイナリダンプの模様を読む
sat
PRO
0
89
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
88
114-ファイルのshallow_copy.pdf
sat
PRO
2
57
113-Btrfsのスナップショット.pdf
sat
PRO
0
40
Other Decks in Technology
See All in Technology
空間オーディオで過去の 自分(ゴースト)と競うランニング 〜HealthKitのルートを足音に変える実装〜
nao_randd
0
220
Genieを崇めよ
kameitomohiro
0
160
Cloudflare Workers 向けアプリを C# で構築する ~WASM Native AOT への道~
nenonaninu
0
120
品質と信頼性を地続きにする
grimoh
0
640
その Lambda、8分で 管理者権限まで奪われます
k1nakayama
6
2.8k
生成AIエージェントを用いた、 手動テスト手順書から自動テストへの 変換手法の検討
magicpod
0
160
ユーザー価値を届け続けるためにウォンテッドリーが大切にしている文化
kotaminato
0
170
絵ではじめるKubernetesセキュリティ
aoi1
4
640
負債のメタファと2026年 / Debt Metaphor in Agentic Engineering Age 202609 Edition
twada
PRO
9
3.8k
Deployment の 先にある AI Agent 基盤 - kagent vNext、Agent Substrate、Hermes から読み解く Agent Runtime の現在地 / k8s-matsuri-2-ai-agent-platform-amsy810
masayaaoyama
4
630
AI時代の「技術的負債」の変質ー概念の終焉と再解釈、エージェントと共に向かう先
nwiizo
1
2.8k
Reactの設計論
uhyo
24
13k
Featured
See All Featured
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
690
How to Ace a Technical Interview
jacobian
281
24k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
230
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
300
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
The SEO Collaboration Effect
kristinabergwall1
1
570
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.1k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
410
Building Adaptive Systems
keathley
44
3.2k
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