Demand Paging in Action: mmap, Page Faults, and RSS 0 ▲ Confessions of a Code Addict 37 minutes ago · Tech · hide · 0 comments In the previous video in our virtual memory series, we discussed demand paging. But that was mostly theoretical, explaining how demand paging works inside the Linux kernel and the mechanisms through which it handles page faults. In this follow-up video, we make it more concrete by learning to inspect the virtual memory of a running process to see demand paging in action. If you watch this video, you will learn a few cool things:What is demand paging (the compressed version; watch the previous video for a more in-depth explanation)What is the /proc file system in the Linux kernelHow to read /proc/<pid>/maps to inspect the VMAs of a live processHow to read /proc/<pid>/smaps to inspect which VMA is consuming how much physical memoryHow to use mmapHow to use getrusage to track the number of page faults of a processIf you are new to this series, it is based on my ebook called “Virtual Memory from First Principles”. It is available to read for free online and also available to purchase from… No comments yet. Log in to reply on the Fediverse. Comments will appear here.