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
procfs
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Satoru Takeuchi
PRO
June 10, 2020
Technology
0
180
procfs
以下動画のテキストです。
https://youtu.be/y0N4TmNRmQg
Satoru Takeuchi
PRO
June 10, 2020
Tweet
Share
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
書籍執筆での生成AIの活用
sat
PRO
1
270
ChatGPTに従って体調管理2026
sat
PRO
0
150
eBPF
sat
PRO
1
110
waruiBPF
sat
PRO
0
110
eBPFとwaruiBPF
sat
PRO
5
3.8k
Pythonのコードの気になる行でスタックトレースを出す
sat
PRO
1
100
ソースコードを読むときの思考プロセスの例 ~markdownのレンダリング方法を知りたかった2 markdownパッケージ~
sat
PRO
0
200
様々なファイルシステム
sat
PRO
0
340
ソースを読む時の思考プロセスの例-MkDocs
sat
PRO
1
430
Other Decks in Technology
See All in Technology
Amazon S3 Vectorsを使って資格勉強用AIエージェントを構築してみた
usanchuu
3
440
なぜ今、コスト最適化(倹約)が必要なのか? ~AWSでのコスト最適化の進め方「目的編」~
htan
1
110
あたらしい上流工程の形。 0日導入からはじめるAI駆動PM
kumaiu
5
760
Context Engineeringが企業で不可欠になる理由
hirosatogamo
PRO
3
460
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
10
73k
ブロックテーマでサイトをリニューアルした話 / 2026-01-31 Kansai WordPress Meetup
torounit
0
460
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
17k
~Everything as Codeを諦めない~ 後からCDK
mu7889yoon
3
290
Meshy Proプラン課金した
henjin0
0
250
ファインディの横断SREがTakumi byGMOと取り組む、セキュリティと開発スピードの両立
rvirus0817
1
1.2k
SREのプラクティスを用いた3領域同時 マネジメントへの挑戦 〜SRE・情シス・セキュリティを統合した チーム運営術〜
coconala_engineer
2
620
We Built for Predictability; The Workloads Didn’t Care
stahnma
0
130
Featured
See All Featured
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
Prompt Engineering for Job Search
mfonobong
0
160
Become a Pro
speakerdeck
PRO
31
5.8k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.9k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
140
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.1k
The Cult of Friendly URLs
andyhume
79
6.8k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
450
Building Adaptive Systems
keathley
44
2.9k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
120
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
300
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