Explore skipping around in memory vs. sequential access and the CPU cache and watching the growth of a process's resident set size.
- [Instructor] Hey now we've got some challenges for you…having to do with cache and pages.…So for the first challenge…what you should do is run the CPU cache program,…but give it the cache size…that corresponds to the size of your L2 cache…for your processor.…So, you got to remember how to find out…the size of your L2 cache,…and figure out how to run the program.…And then you want to run it twice,…once where it goes through memory sequentially,…and the second time when it skips around,…that situation we ran it before.…
For the second challenge,…it turns out the perf command…has a sub-command stat,…and if you run perf stat minus d twice,…it gives you some good information about cache misses.…So we want you to run your CPU cache program again.…This time use a cache size of four megabytes,…and skip or not.…But when you run it,…run it with the perf stat -d -d.…
So that'll be perf stat -d -d ./cpucache…cache size zero run it again with one.…Then for your third challenge we want you…to have two versions of the memleak program.…
- Timing techniques
- Packages for performance
- Identifying and optimizing CPU bottlenecks
- Finding memory bottlenecks
- Diagnosing disk bottlenecks
Skill Level Intermediate
Learning Linux Shell Scripting (2017)with Sarath Lakshman8h 19m Intermediate
1. Performance Overview
2. CPU Bottlenecks
3. Memory Bottlenecks
4. Disk Bottlenecks
- 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.Cancel
Take 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.