狠狠撸
Submit Search
Linux Process Snapper Introduction
Dec 21, 2020
Download as pptx, pdf
0 likes
573 views
Yohei Azekatsu
Linux Process Snapper の紹介
Software
Read more
1 of 19
Download now
Download to read offline
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
More Related Content
Featured
(20)
PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
?
PDF
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
?
PDF
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
?
PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
?
PDF
2024 State of Marketing Report – by Hubspot
Marius Sescu
?
PDF
Everything You Need To Know About ChatGPT
Expeed Software
?
PDF
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
?
PDF
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
?
PDF
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
?
PDF
Skeleton Culture Code
Skeleton Technologies
?
PDF
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
?
PDF
Content Methodology: A Best Practices Report (Webinar)
contently
?
PPTX
How to Prepare For a Successful Job Search for 2024
Albert Qian
?
PDF
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
?
PDF
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
?
PDF
5 Public speaking tips from TED - Visualized summary
SpeakerHub
?
PDF
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
?
PDF
Getting into the tech field. what next
Tessa Mero
?
PDF
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
?
PDF
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
?
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
?
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
?
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
?
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
?
2024 State of Marketing Report – by Hubspot
Marius Sescu
?
Everything You Need To Know About ChatGPT
Expeed Software
?
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
?
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
?
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
?
Skeleton Culture Code
Skeleton Technologies
?
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
?
Content Methodology: A Best Practices Report (Webinar)
contently
?
How to Prepare For a Successful Job Search for 2024
Albert Qian
?
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
?
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
?
5 Public speaking tips from TED - Visualized summary
SpeakerHub
?
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
?
Getting into the tech field. what next
Tessa Mero
?
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
?
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
?
Linux Process Snapper Introduction
1.
Linux Process Snapper
の紹介 Dec, 2020 Twitter: yoheia@
2.
Linux Process Snapper
の作者 https://speakerdeck.com/tanelpoder/troubleshooting-linux-activity-with-task-state-sampling?slide=2
3.
Tanel Poder db tech
showcase で何度か来日したことも
4.
Linux Process Snapper
のコンセプト https://speakerdeck.com/tanelpoder/troubleshooting-linux-activity-with-task-state-sampling?slide=4
5.
pSnapper は Python
スクリプト https://speakerdeck.com/tanelpoder/troubleshooting-linux-activity-with-task-state-sampling?slide=14
6.
pSnapper は 0x.tools
のツール群の一つ https://0x.tools/
7.
pSnapper は Thread
State Analysis Snapper pSnapper Performance Insights Oracle ASH など https://speakerdeck.com/tanelpoder/troubleshooting-linux-activity-with-task-state-sampling?slide=5
8.
Thread State とは https://speakerdeck.com/tanelpoder/troubleshooting-linux-activity-with-task-state-sampling?slide=11
9.
Thread State Analysis
に使うツール https://speakerdeck.com/tanelpoder/troubleshooting-linux-activity-with-task-state-sampling?slide=6
10.
B.Gregg の Thread
State Analysis Method http://www.brendangregg.com/tsamethod.html Brendan Gregg ? Netflix の Sr. Performance Architect ? Sun->Oracle->Joyent->Netflix
11.
Performance Insights は
TSA の発展型の ASH /yoheiazekatsu/awrexcel/8 https://docs.aws.amazon.com/ja_jp/AmazonRDS/latest/UserGuide/USER_PerfInsights.UsingDashboard.html Kyle Hailey Oracle、AWS や他にも様々なプロダクトで ASH のコンセプトを実装 スレッド(セッション)の状態をサンプリングし、 その履歴を可視化。スレッドの状態より細やかに Wait Event ベースで状態をサンプリング。 *ASH: Active Session History
12.
ps で Thread
State Analysis してみる https://speakerdeck.com/tanelpoder/troubleshooting-linux-activity-with-task-state-sampling?slide=9
13.
pSnapper の実行例 https://speakerdeck.com/tanelpoder/troubleshooting-linux-activity-with-task-state-sampling?slide=16
14.
ビジュアライズする機能もリリース予定? https://youtu.be/YEWp3O7Kem8?t=2767
15.
デモ # pgbench で
PostgeSQL にクエリ実行 $ pgbench -r -c 8 -j 8 -t 100000 -U postgres -h localhost -d postgres -p 5432 > /dev/null 2>&1 & # pSnapper でサンプリングする $ sudo psn -G syscall,wchan
16.
実行例 # dd を実行 $
sudo sh -c "echo 3 > /proc/sys/vm/drop_caches" $ sudo dd if=/dev/xvda1 of=/dev/null bs=1M count=10000 & # pSnapper でサンプリングする $ sudo psn -G syscall,wchan,kstack
17.
まとめ
18.
まとめ ? Linux Process
Snapper はアドホックなトラブルシューティングツール ? Python スクリプトおくだけで動く ? Thread State Analysis (サンプリング&集計)ができる ? 情報ソースは /proc ? 機能追加される計画なので、今後も期待
19.
Appendix. 参考情報 ? Linux
Performance Analysis in 15 minutes ? /yoheiazekatsu/linux-performance-analysis-in-15-minutes ? Modern Linux Performance Tools for Application Troubleshooting ? /tanelp/modern-linux-performance-tools-for-application-troubleshooting ? Profiling Linux Activity for Performance and Troubleshooting ? https://www.youtube.com/watch?v=YEWp3O7Kem8 ? 0x.tools ? https://0x.tools/ ? tanelpoder - 0xtools (Github) ? https://github.com/tanelpoder/0xtools
Editor's Notes
#3:
B.Gregg と並んでリスペクトしているトラブルシューター B.Gregg 同様に理論と実践を持ち合わせ、体系化してシステマチックなノウハウを提供してくれている
#11:
最近、Systems Performance の2nd Edition を出した、B.Gregg のサイトや書籍でも TSA の解説がある。
#12:
K
#13:
K
#14:
K
#15:
K
#16:
K
#17:
K
Download