今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Solution: Finding memory bottlenecks
- [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…
内容
-
-
-
-
-
(已锁定)
What is a memory leak?6 分钟 53 秒
-
(已锁定)
/proc/meminfo, free, and swap space4 分钟 34 秒
-
(已锁定)
top and htop for memory usage2 分钟 45 秒
-
(已锁定)
CPU caches and page caches6 分钟 27 秒
-
(已锁定)
Examples of filesystem caching6 分钟 15 秒
-
(已锁定)
Page sizes and page faults11 分钟 17 秒
-
(已锁定)
BPF and Memory bottlenecks and leaks4 分钟 42 秒
-
(已锁定)
Challenge: Finding memory bottlenecks2 分钟 19 秒
-
(已锁定)
Solution: Finding memory bottlenecks6 分钟 55 秒
-
(已锁定)
-
-