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
CPUとLinux
Search
Satoru Takeuchi
PRO
May 29, 2020
Technology
760
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CPUとLinux
下記動画のテキストです。
https://www.youtube.com/watch?v=etZrDmrD5Q0
Satoru Takeuchi
PRO
May 29, 2020
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
119-多機能ファイルシステムBtrfs_のコピー.pdf
sat
PRO
1
80
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
110
あなたの知らないバージョン命名規則
sat
PRO
3
930
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
77
Machine Check Exception
sat
PRO
2
72
バイナリダンプの模様を読む
sat
PRO
0
120
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
110
114-ファイルのshallow_copy.pdf
sat
PRO
2
65
113-Btrfsのスナップショット.pdf
sat
PRO
0
48
Other Decks in Technology
See All in Technology
Flutter Widget Previewerで始めるUIプレビューとVRTの自動化
sakusaku3939
0
120
シンプルな設定ファイルで実現する AWS IAM Identity Center の ユーザー管理Terraformフレームワークを公開しました / Simplifying AWS IAM Identity Center User Management: An Open-Source Terraform Framework
yamaguchitk333
1
330
CSS2026:OWS研究会・招待講演「世界観を、実装する」
atsush1_sada
2
340
AIコーディングエージェント開発_全体像
happysamurai294
0
110
"計画的無茶振り"を通してAIネイティブ世代の新人を育てる
subroh0508
1
110
Agent × Maestro で始める モバイル E2E 端末準備からテスト実行・結果確認まで
sansantech
PRO
0
220
これだけは抑えておきたい!後悔しない re:Invent の過ごし方 / AWS re:Invent 2026 prestudy
kinunori
2
460
Agent 活用環境の構築・運用のための AWS サービスのご紹介/agentcore-for-building-and-operating-agents
ren8k
1
210
DevelopersIO 2026 Tokyo 現時点の衛星通信サービスの現状を整理してみる
maroon1st
0
320
Vue.jsのGitHubから学ぶ意思決定
yut0naga1_fa
1
320
デザインレビューは自動化できるのか?─ Flutter × Figma で UI 品質保証を考える
techiro
0
190
日本AIベンチャーレポート2026
kentarofujii
0
250
Featured
See All Featured
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
Tell your own story through comics
letsgokoyo
1
1.1k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Accessibility Awareness
sabderemane
1
260
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
580
How GitHub (no longer) Works
holman
316
150k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
340
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
580
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
510
Transcript
CPUとLinux May 29th, 2020 Satoru Takeuchi Twitter: satoru_takeuchi
目的 1. LinuxからCPUの情報を得る方法 2. プログラムがCPUを使うとLinuxからはどのように見えるのか 3. プログラムを特定CPU上で動かす方法 4. Linuxが認識するCPUの数を減らす方法
目的 1. LinuxからCPUの情報を得る方法 2. プログラムがCPUを使うとLinuxからはどのように見えるのか 3. プログラムを特定CPU上で動かす方法 4. Linuxが認識するCPUの数を減らす方法
実験 • 環境 ◦ CPU ▪ AMD Ryzen 5 Pro
2400GE ▪ 4コア2スレッド • やること ◦ CPUの情報を得る: /proc/cpuinfoコマンド ◦ CPUの数を数える: nprocコマンド
目的 1. LinuxからCPUの情報を得る方法 2. プログラムがCPUを使うとLinuxからはどのように見えるのか 3. プログラムを特定CPU上で動かす方法 4. Linuxが認識するCPUの数を減らす方法
実験 • 使うプログラム ◦ CPUの使用状況を調べる topというプログラム ◦ 単なる無限ループをする ”loop”という名前のプログラム ▪
動かすと死ぬまでひたすら CPUを使い続ける • やること ◦ loopコマンドとtopコマンドを使ってCPUの使用状況を確認する
目的 1. LinuxからCPUの情報を得る方法 2. プログラムがCPUを使うとLinuxからはどのように見えるのか 3. プログラムを特定CPU上で動かす方法 4. Linuxが認識するCPUの数を減らす方法
実験 • 実験プログラム ◦ topコマンド ◦ loopプログラム ◦ あるプログラムを特定の CPU上で実行するtasksetプログラム
• やること ◦ tasksetを使って実行したloopが特定CPU上で動作することを確認
目的 1. LinuxからCPUの情報を得る方法 2. プログラムがCPUを使うとLinuxからはどのように見えるのか 3. プログラムを特定CPU上で動かす方法 4. Linuxが認識するCPUの数を減らす方法
実験 • つかうもの ◦ /sys/devices/system/cpu/cpu<CPU番号>/onlineファイル • やること ◦ 起動中のLinuxからCPUを減らしたり元に戻したりする
まとめ • CPUの情報を得る ◦ /proc/cpuinfoファイル、nprocプログラム • CPUを使うとLinuxからはどのように見えるのか ◦ Topプログラム •
プログラムを特定CPU上で動かす方法 ◦ Tasksetプログラム • Linuxが認識するCPUの数を減らす方法 ◦ /sys/devices/system/cpu/cpu<CPU番号>/onlineファイルを操作