今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
top and htop for memory usage
- [Instructor] Let's look at our memleak.c file, and we see it loops 30 times, mallocing 100 meg each time, with a sleep in between, so it's going to run something over 30 seconds. And we're going to run that, and while it's running, we're going to look at top and htop. And to make sure we have enough time, I'm just going to run it in a loop. So while true do memleak done. All right, so that's running in this window. I'll switch over to another window and I'll run top, and top is now sorting by percent CPU and memleak doesn't seem to be using a lot of CPU there. So we're going to switch to percent memory so we do a little f and we get the list, down arrow brings us brings us to percent mem, and if you read the little list on top of directions we see we need to do a right arrow to select, then a left arrow to commit, than as S to say we want to sort on that, and then an escape. Now we're sorting on percent mem and memleak's…
内容
-
-
-
-
-
(已锁定)
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 秒
-
(已锁定)
-
-