Memory Management

This chapter provides introductions and tutorial notes on memory management. Topics include memory layers and access speed; cache memory levels; virtual memory and physical memory mapping; page table; buffers, caches and swap spaces; memory usage reporting tools: free, ps, smem, pmap, /proc/meminfo, /proc/{id}/maps, and /proc/{id}/smaps.

Layers of Memory and Access Speed

List CPU Caches and Their Sizes

Virtual Memory vs. Physical Memory

Buffer Memory and Cache Memory

Verify Cache Memory with "cp" Command

What Is Swap Space

Virtual Memory Mapping and Page Table

"ps -o rss,drs,trs,vsz,sz" - Process Status Options

smem - Process Memory Usage Report

pmap - Process Memory Map

/proc/{id}/maps - Process Memory Map

/proc/{id}/smaps - Process Memory Map Details

Takeaways:

Table of Contents

 About This Book

 Introduction to Linux Systems

 Cockpit - Web Portal for Administrator

 Process Management

Memory Management

 Files and Directories

 Users and Groups

 File Systems

 Block Devices and Partitions

 LVM (Logical Volume Manager)

 Installing CentOS

 SELinux - Security-Enhanced Linux

 Network Connection on CentOS

 Internet Networking Tools

 SSH Protocol and ssh/scp Commands

 Software Package Manager on CentOS - DNF and YUM

 vsftpd - Very Secure FTP Daemon

 LDAP (Lightweight Directory Access Protocol)

 Administrative Tasks

 References

 Full Version in PDF/EPUB