Save this video free

ECE344 Fall 2026 (Sec 1) Lec 9 - Virtual Memory

Jon Eyolfson · 51:04 · Watch on YouTube

Part of University of Toronto ECE 344. See all 26 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Jon Eyolfson explains how virtual memory gives each process an isolated address space while the CPU’s memory management unit (MMU) translates virtual addresses into physical RAM addresses. He moves from variable-sized segmentation to fixed 4,096-byte pages, explains RISC-V Sv39 address fields and page-table entries, and works through address-translation examples before connecting per-process page tables to fork and copy-on-write.

Key takeaways

Chapters

0:00 Virtual Addresses Hide Physical RAM Locations
6:00 Process Isolation, the MMU, and Address-Translation Costs
11:00 Segmentation Maps Variable-Sized Regions
17:00 Why Modern Systems Prefer Fixed-Size Pages
21:00 4 KiB Pages, Frames, and MMU Permissions
24:00 Sv39 Address Fields and the Page-Table Array
33:00 RISC-V Page-Table Entries and Page Faults
37:00 Translate Virtual Addresses by Replacing the VPN
39:15 Work an 8-Bit Virtual Address Translation
49:00 Per-Process Page Tables Enable fork and Copy-on-Write

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:27 Alrighty, welcome back to operating systems. So, yay, week three, we finally get to start virtual memory and how that works. So, you've also been challenged by section two for understanding this and, you know, how well you can answer questions about it. So, they think they're pretty good, so let's see how we do. So, recall all the way back in lecture one, we discovered virtual memory is a thing and it's been kind of reinforced a whole bunch of time, especially with forking and having two processes that look exactly the same, same memory addresses and everything. That we have virtual memory, each process has its own virtual memory. So, processes, independent of each other, have their own virtual registers, or

1:14 just registers you can think of, and virtual memory, which is where the stack and the heap is and all the program's data is and all of that. And we know that is virtual. So, even before we knew about forking, lecture one, two copies of print global variable, that was just at the same address. Both of them count on their own, one didn't affect the other. This would be doubly true. We could have just forked it and then every single address would have been the same, no matter what, and they would have been independent at that point. So, the addresses your process uses are always virtual. The kernel decides what they mean. The bytes are somewhere in physical memory, the RAM in your machine that costs an obscene amount now.

2:04 So, the CPU has to translate every single virtual address your process uses to a physical address in order to actually function. And the your user process will never ever see that physical address. You will have no idea where it is. So,

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Jon Eyolfson.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.