Learn how to run programs to experiment with memory access patterns and get CPU cache and resident set size information.
- [Instructor] Okay, solutions to the challenges.…First of all, on the slide, I'll give you some hints…after we go through the slide here.…You can pause it and try some more if you didn't finish,…or you can keep listening and I'll show you how…I actually solve the challenges.…So for the first question, what we want to do is…use the size of your L2 cache.…So the tricky thing there might be to find the size…of your L2 cache.…
Well the key is the command lscpu.…Maybe you had to install it on your system,…you didn't have it, and then just look for the line…that says L2 cache, and then use that…when you run our cpucache program.…For the second question, it's how to use this perf command.…So you'd run it twice "perf stat -d -d"…and our cpucache giving it the size there,…maybe that's your L2 size,…or the 4 meg is what we're talking about,…and you run it once with the zero, once with the one,…(mumbles) skip it around or not,…and we want to grep the output of the perf command,…the line that says dcache-load-misses,…and I think you'll find there's…
Author
Released
2/15/2018- Timing techniques
- Packages for performance
- Identifying and optimizing CPU bottlenecks
- Finding memory bottlenecks
- Diagnosing disk bottlenecks
Skill Level Advanced
Duration
Views
Related Courses
-
DevOps Foundations
with Ernest Mueller2h 47m Beginner -
Linux: Web Services
with Scott Simpson1h 18m Intermediate
-
Introduction
-
Welcome32s
-
-
1. Performance Overview
-
Timing techniques14m 16s
-
Timing techniques solution3m 21s
-
The proc filesystem7m 58s
-
Packages for performance6m 8s
-
Performance Co-Pilot and Tuna10m 23s
-
2. CPU Bottlenecks
-
top for CPU usage1m 43s
-
sar for CPU2m 59s
-
/proc/cpuinfo2m 18s
-
Throughput vs. response time4m 17s
-
-
3. Memory Bottlenecks
-
What is a memory leak?6m 53s
-
CPU caches and page caches12m 43s
-
Page sizes and page faults11m 17s
-
-
4. Disk Bottlenecks
-
Hard disks and SSD behavior7m 21s
-
Filesystem types and performance10m 16s
-
Solution: Disk bottlenecks3m 49s
-
-
Conclusion
-
Next steps40s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Solution: Finding memory bottlenecks