Загрузка...

What is a Page Fault

A page fault is a type of exception generated by the processor when a program tries to access a portion of memory that is not currently loaded into physical RAM.

SUMMARY
In modern operating systems that use virtual memory, data is organized into fixed-size blocks called pages, which can be stored either in RAM or on disk. To access data, it must be loaded into RAM. So when a required page is not in RAM, the processor triggers a page fault to bring the requested page from disk.
There are two types of page faults:
• Minor (Soft) Page Fault: The accessed data is already in RAM but hasn’t yet been mapped into the virtual memory space of the process.
• Major (Hard) Page Faults: The requested data is not in RAM and must be loaded from disk before the process can continue.
If a program tries to access invalid memory (the address isn’t mapped in its virtual address space and isn’t found in either RAM or on disk), the page fault handler typically asks the operating system to terminate the offending program with the infamous “Segmentation Fault” error.

LINKS
📚 Computer Memory and Architecture E-Book Collection: https://buymeacoffee.com/bitlemonsoftware/e/427972
📚 Inside the Core: How the CPU Works (E-Book): https://buymeacoffee.com/bitlemonsoftware/e/467679
📚 Interrupts in Modern Computer Systems (E-Book): https://buymeacoffee.com/bitlemonsoftware/e/420320
📚 The Anatomy of Virtual Memory (E-Book): https://buymeacoffee.com/bitlemonsoftware/e/400638
📚 Beginner's Guide to CPU Caches (E-Book): https://buymeacoffee.com/bitlemonsoftware/e/362123
❤ Support my work: https://buymeacoffee.com/bitlemonsoftware

SOURCES
The information in this video is based on my own book - "The Anatomy of Virtual Memory".

TABLE OF CONTENTS
00:00 What is a page fault?
00:27 Page fault handling (ISR)
00:51 Minor (soft) page faults
01:37 Major (hard) page faults
02:04 Accessing invalid memory
02:22 The Anatomy of Virtual Memory (e-book)

ATTRIBUTION
Some of the elements in the video were designed by vectorpocket / macrovector / rawpixel.com / Freepik at freepik.com.

#computerscience #memorymanagement #virtualmemory #operatingsystem #pagetables #pagefault

Видео What is a Page Fault канала BitLemon
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять