From the course: Linux Performance Tuning

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Finding memory bottlenecks

Challenge: Finding memory bottlenecks - Linux Tutorial

From the course: Linux Performance Tuning

Start my 1-month free trial

Challenge: Finding memory bottlenecks

- [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…

Contents