Artwork

Content provided by Hussein Nasser. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Hussein Nasser or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

CPU and Kernel Page Faults

48:37
 
Share
 

Manage episode 521045405 series 1954062
Content provided by Hussein Nasser. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Hussein Nasser or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

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

  continue reading

535 episodes

Artwork
iconShare
 
Manage episode 521045405 series 1954062
Content provided by Hussein Nasser. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Hussein Nasser or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://player.fm/legal.

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

  continue reading

535 episodes

All episodes

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Quick Reference Guide

Copyright 2025 | Privacy Policy | Terms of Service | | Copyright
Listen to this show while you explore
Play