Linux Tutorials - Herong's Tutorial Examples - v5.45, by Herong Yang
/proc/{id}/smaps - Process Memory Map Details
This section describes the pseudo file '/proc/{id}/smaps' that represents virtual memory map of a given process with detailed information on each mapped area.
What Is /proc/{id}/smaps? - /proc/{id}/smaps is a pseudo file that contains the memory map of the process of the given id with detailed information on each mapped area.
Here is the memory map with details for the "sleep" process retrieved from the /proc/649848/smaps pseudo file.
herong$ sudo cat /proc/649848/smaps 56392fc85000-56392fc8c000 r-xp 00000000 fd:00 63570 /usr/bin/sleep Size: 28 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Rss: 28 kB Pss: 14 kB Shared_Clean: 28 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Referenced: 28 kB Anonymous: 0 kB LazyFree: 0 kB AnonHugePages: 0 kB ShmemPmdMapped: 0 kB FilePmdMapped: 0 kB Shared_Hugetlb: 0 kB Private_Hugetlb: 0 kB Swap: 0 kB SwapPss: 0 kB Locked: 0 kB THPeligible: 0 ProtectionKey: 0 VmFlags: rd ex mr mw me dw sd 56392fe8c000-56392fe8d000 r--p 00007000 fd:00 63570 /usr/bin/sleep Size: 4 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Rss: 4 kB Pss: 4 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 4 kB Referenced: 4 kB Anonymous: 4 kB ...
Table of Contents
Cockpit - Web Portal for Administrator
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
Virtual Memory Mapping and Page Table
"ps -o rss,drs,trs,vsz,sz" - Process Status Options
smem - Process Memory Usage Report
/proc/{id}/maps - Process Memory Map
►/proc/{id}/smaps - Process Memory Map Details
SELinux - Security-Enhanced Linux
SSH Protocol and ssh/scp Commands
Software Package Manager on CentOS - DNF and YUM
vsftpd - Very Secure FTP Daemon