Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Unit 4: Overview

Lesson 27 of 32 in the free Design of Unix Operating System notes on Siksha Sarovar, written by Rohit Jangra.

Unit 4: Memory Management — Swapping & Demand Paging

This unit covers the two major memory management strategies used by the UNIX kernel: Swapping and Demand Paging. Swapping moves entire processes between main memory and disk, while demand paging moves individual pages on demand. We study the data structures, algorithms, and kernel processes involved in each approach.

Key Topics:

  1. Swapping: Data Structures — Swap map, process table fields, swap device.
  2. Swapping In Processes — How the swapper brings processes back into memory.
  3. Swapping Out Processes — How the swapper selects and moves processes to disk.
  4. Demand Paging: Data Structures — Page table entries, page frame data table (pfdata), disk block descriptors.
  5. Page Stealer Process — The kernel daemon that frees memory pages using a clock/two-handed clock algorithm.
  6. Page Fault Handler — How the kernel handles page faults (validity and protection faults).

Visual Overview

Above is the visual overview of Unit 4. Please refer to this for a structural understanding before proceeding to the detailed modules.