Look at the information available from the kernel about current memory usage using the proc file meminfo and the command free. Also, see how to turn off and on swap space and see an example where swap space is essential.
- [Instructor] Let's look at /proc/meminfo.…Meminfo is a handy proc file.…It's maybe 46 lines of information, a lot of stuff in there.…Remember since it's a proc file,…it's always up-to-date, fresh information.…Whenever you cat it, you're asking the kernel…to generate the contents of it right then.…One thing that confuses a lot of folks is MemFree.…And you see MemFree and it's a small number…and you kind of freak out.…
But really you want it to be kind of small,…because you want the kernel to be…making use of your RAM for caching.…So it's really MemAvailable that's more important.…MemAvailable is an estimate of how much is available…for programs, without resorting to swapping,…which of course is a bad thing.…So don't worry about MemFree, worry about MemAvailable.…We see at the top MemTotal is the total amount…of RAM on your system.…And on this little system I've got about eight gig.…
And the free is kind of small, but that's okay,…but there's quite a bit available.…I'm not really running much right now.…And we see other sorts of things including,…
- Timing techniques
- Packages for performance
- Identifying and optimizing CPU bottlenecks
- Finding memory bottlenecks
- Diagnosing disk bottlenecks
Skill Level Intermediate
Learning Linux Shell Scriptingwith 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.