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
Satoru Takeuchi
PRO
July 26, 2022
0
200
sysfs
以下動画のテキストです
https://youtu.be/lsp-2Y9BrHE
Satoru Takeuchi
PRO
July 26, 2022
Tweet
Share
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
「Linux」という言葉が指すもの
sat
PRO
3
95
APIとABIの違い
sat
PRO
5
62
ファイルシステムへのアクセス方法
sat
PRO
0
26
ファイルシステム
sat
PRO
1
34
低レイヤソフトウェア技術者が YouTuberとして食っていこうとした話
sat
PRO
7
6.1k
ポーリングと割り込み
sat
PRO
1
80
Rook: Intro and Deep Dive With Ceph
sat
PRO
1
140
会社員しながら本を書いてきた知見の共有
sat
PRO
3
880
デバイスにアクセスするデバイスファイル
sat
PRO
1
62
Featured
See All Featured
Faster Mobile Websites
deanohume
309
31k
GraphQLの誤解/rethinking-graphql
sonatard
72
11k
Git: the NoSQL Database
bkeepers
PRO
431
66k
Embracing the Ebb and Flow
colly
87
4.8k
Navigating Team Friction
lara
189
15k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
The Power of CSS Pseudo Elements
geoffreycrofte
77
6k
Producing Creativity
orderedlist
PRO
347
40k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
Visualization
eitanlees
148
16k
[RailsConf 2023] Rails as a piece of cake
palkan
57
5.8k
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やメモリ ◦ 周辺機器 ◦ ファームウェア ◦ モジュール