r/AskComputerScience • u/recyclops18505 • Apr 16 '26
Is this information correct?
I am studying and this excerpt from the study guide I was given isn't matching up with some of my other sources. Could someone please verify if any of this is correct/misleading? For instance, it says paging divides virtual memory and physical memory into pages, but isnt physical memory divided into frames?
Excerpt:
"Virtual RAM: also known as virtual memory, is a memory management technique used by operating systems to extend the apparent amount of RAM available to applications. This is done by using a portion of a computer's storage (such as an SSD or HDD) to simulate additional RAM.
Paging: The operating system divides physical memory and virtual memory into small fixed-sized blocks called pages. When the system runs out of physical RAM, it can swap inactive pages to the storage device, freeing up RAM for active processes.
Pagefile/Swap Space: On Windows systems, this is often referred to as a pagefile, while on Unix-like systems, it is called swap space. This file or partition on the storage device is used to store pages that are moved out of physical RAM.
Address Translation: The CPU uses a memory management unit (MMU) to translate virtual addresses (used by programs) into physical addresses (used by the hardware). This allows applications to use more memory than is physically available."
View all comments
5
u/Doctor_Perceptron Ph.D CS, CS Pro (20+) Apr 16 '26 edited Apr 17 '26
It looks like it was written by a non-expert and you're better off studying from something else. It's OK to say "page" instead of "frame" because people know what you mean, and we can talk about DRAM pages, but it's kind of imprecise. I don't like how they make it sound like virtual memory is just a DRAM cache. The benefits of virtual memory go far beyond appearing to extend the capacity of the memory. Having per-page permissions, providing isolation to processes, and eliminating the effects of fragmentation in memory are all huge software engineering benefits that have nothing to do with the disk.