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
sysfs
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Satoru Takeuchi
PRO
July 26, 2022
220
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
sysfs
以下動画のテキストです
https://youtu.be/lsp-2Y9BrHE
Satoru Takeuchi
PRO
July 26, 2022
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
43
Machine Check Exception
sat
PRO
2
51
バイナリダンプの模様を読む
sat
PRO
0
71
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
58
114-ファイルのshallow_copy.pdf
sat
PRO
2
43
113-Btrfsのスナップショット.pdf
sat
PRO
0
23
システム強制終了時にファイルシステムの整合性を保つ~ コピーオンライト編 ~
sat
PRO
0
63
システム強制終了時に ファイルシステムの整合性を保つ ~ ジャーナリング編 ~
sat
PRO
2
69
ファイルシステムの整合性を回復するfsck
sat
PRO
1
75
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
1.1k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
119
120k
Discover your Explorer Soul
emna__ayadi
2
1.2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Tell your own story through comics
letsgokoyo
1
1k
Being A Developer After 40
akosma
91
590k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.3k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
950
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
250
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
2
3.7k
Transcript
sysfs Jul. 26th, 2022 Satoru Takeuchi twitter: satoru_takeuchi
sysfsとは • Linuxカーネルがシステムの情報をユーザに見せるインタフェース • メモリ上に存在するファイルシステム • 通常/sys/以下にマウントされる • 過去動画(5回目)で説明したprocfsと似ているが役割が異なる •
面白そうなものをいくつか紹介 ext4, XFS procfs disk プロセスの情報 プロセス以外の情報 sysfs
見られる情報の例 • システムのコアコンポーネント(CPUやメモリなど) ◦ /sys/devices/system/{cpu,memory} • 周辺機器(ディスクやNICなど) ◦ /sys/bus/{pci,usb,scsi} •
ファームウェア ◦ /sys/firmware/{efi,acpi} • カーネルモジュール ◦ /sys/module/<モジュール名>
まとめ • sysfsはLinuxカーネルがシステムの情報をユーザに見せるインタフェース ◦ 通常/sys以下にマウントされるメモリベースのファイルシステム • procfsとは似て非なるもの ◦ procfs: プロセス関連情報
◦ sysfs: プロセス以外の情報 • 見られる情報の例 ◦ CPUやメモリ ◦ 周辺機器 ◦ ファームウェア ◦ モジュール