

Linux Performance Analysis in 60s (video)
source link: http://www.brendangregg.com/blog/2015-12-03/linux-perf-60s-video.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Linux Performance Analysis in 60s (video)
03 Dec 2015
On the Netflix Tech Blog I recently published Linux Performance Analysis in 60,000 Milliseconds, showing the commands we use in the first 60 seconds of a performance investigation. Most of the time we don't get this far, since we solve most issues using the Atlas and Vector open source GUIs. But this should be useful to share anyway, since it involves standard Linux commands that you can easily try out.
I just made a short video to show this command sequence in action (youtube):
It's not just about what the commands find, but also what they don't find, which directs follow-up investigation. In that video, this is what I learned:
- Load appeared steady
- No unusual system errors (dmesg)
- Heavy user-mode CPU time, evenly distributed at over 90% on all CPUs, and still some idle
- Main memory availability looked fine
- Network throughput looked low, and unlikely to be near any limits
- TCP retransmits were zero
- There was a rate of active connections
If I'm investigating a performance issue, my leads from these findings would be:
- Profile CPU usage using Linux perf and flame graphs
- Check those active connections: who it's for, and latency
I wouldn't dig deeper on memory usage, disk, or file system I/O, until I'd taken a good look at those two.
As a follow-on to the first 60 seconds, you can check out my 90 minute Linux Performance Tools tutorial from Velocity 2015, which has the video online. It's the best and most complete summary I've given on the topic.
Recommend
-
6
328 Comments Sort by Add a public comment... My Dad had a Telex machine at his offi...
-
13
0:00 / 11:38 ...
-
7
We’re all familiar with top, a real-time system monitor. Some prefer htop and previously, I ment...
-
6
7 tools for analyzing performance in Linux with bcc/BPF Look deeply into your Linux code with these Berkeley Packet Filter (B...
-
9
Java Performance Analysis on Linux with Flame Graphs 1. Sep 2016 Java Performance Analysis on Linux with Flame Graphs Brendan Gregg Senior Performanc...
-
3
60s Seconds Left - New Year Movie Countdown请于12月31日23:58:51准时播放此视频! 此视频来自 YouTube Channel:
-
5
Microsoft as 60s IBM or 80s IBM?Jack Hughes2008-04-09GeneralJust where the heck are Microsoft on the cloud computing thing? Ten...
-
7
Linux Performance Analysis in 60s May 15, 2018 uptime/w...
-
6
Could learning algebra in my 60s make me smarter?...
-
8
’60s Patterns and Backgrounds for Authentic Retro Designs ByBrooke Arnold PublishedAugust 9, 2022August 9, 2022 Vandelay Design may receiv...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK