课程: Linux Performance Tuning

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Challenge: Finding memory bottlenecks

Challenge: Finding memory bottlenecks - Linux教程

课程: Linux Performance Tuning

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…

内容