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
170
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
5
64
シェルのジョブ
sat
PRO
1
20
常駐サービスを実現するデーモンプロセス
sat
PRO
0
24
絶対殺すSIGKILLシグナルと絶対死なないプロセス
sat
PRO
3
81
シェルのセッション
sat
PRO
2
31
RubyでKubernetesプログラミング
sat
PRO
4
180
プロセスの生成 exec編
sat
PRO
1
41
プロセスの生成 fork&exec編
sat
PRO
0
36
プロセスの生成 コピーオンライトを使ったfork編
sat
PRO
0
35
Featured
See All Featured
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.3k
Building a Scalable Design System with Sketch
lauravandoore
461
33k
Agile that works and the tools we love
rasmusluckow
328
21k
Bash Introduction
62gerente
611
210k
The Invisible Side of Design
smashingmag
299
50k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.2k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
The Pragmatic Product Professional
lauravandoore
32
6.4k
Designing for humans not robots
tammielis
250
25k
Mobile First: as difficult as doing things right
swwweet
223
9.4k
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やメモリ ◦ 周辺機器 ◦ ファームウェア ◦ モジュール