The Backend Engineering Show with Hussein Nasser

CPU and Kernel Page Faults


Listen Later

Page faults occurs when the process tries to access a memory that isn’t backed by a physical page kernel raises a fault which loads a page. It happens on first access, stack expansion, COW, swap and much more. However it comes with a cost. 


In this episode of the backend engineering show I dissect the need and the cost page faults in the kernel. 


  • 0:00 Intro 
  • 4:00 Virtual memory
    • Abstraction of physical memory
    • Memory sharing
    • Allow more processes to run , unused go to disk
    • Numa, kernel can place memory near the cpu
  • 12:00 VMA areas
    • Text/code 
    • Data 
    • BSS
    • Heap
    • Stack
  • 19:50 Kernel mode
  • 25:30 What is a Page fault?
  • 30:30 First access page fault
  • 33:00 Stack Expansion page fault
  • 34:30 CoW page fault
  • 38:00 Swap page fault
  • 39:39 File backed page fault
  • 40:29 Permission page fault 
  • 45:30 Summary



...more
View all episodesView all episodes
Download on the App Store

The Backend Engineering Show with Hussein NasserBy Hussein Nasser

  • 4.9
  • 4.9
  • 4.9
  • 4.9
  • 4.9

4.9

40 ratings


More shows like The Backend Engineering Show with Hussein Nasser

View all
Freakonomics Radio by Freakonomics Radio + Stitcher

Freakonomics Radio

32,245 Listeners

Software Engineering Radio - the podcast for professional software developers by team@se-radio.net (SE-Radio Team)

Software Engineering Radio - the podcast for professional software developers

273 Listeners

Risky Business by Patrick Gray

Risky Business

374 Listeners

Science Vs by Spotify Studios

Science Vs

12,172 Listeners

Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Syntax - Tasty Web Development Treats

987 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,107 Listeners

Practical AI by Practical AI LLC

Practical AI

210 Listeners

Within Reason by Alex J O'Connor

Within Reason

1,658 Listeners

All-In with Chamath, Jason, Sacks & Friedberg by All-In Podcast, LLC

All-In with Chamath, Jason, Sacks & Friedberg

10,228 Listeners

Dwarkesh Podcast by Dwarkesh Patel

Dwarkesh Podcast

541 Listeners

Big Technology Podcast by Alex Kantrowitz

Big Technology Podcast

513 Listeners

Hard Fork by The New York Times

Hard Fork

5,548 Listeners

The AI Daily Brief: Artificial Intelligence News and Analysis by Nathaniel Whittemore

The AI Daily Brief: Artificial Intelligence News and Analysis

655 Listeners

Prof G Markets by Vox Media Podcast Network

Prof G Markets

1,474 Listeners

The Pragmatic Engineer by Gergely Orosz

The Pragmatic Engineer

74 Listeners