r/AskComputerScience • • 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."

2 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/vanderZwan Apr 17 '26

you're better off studying from something else

I personally found https://pages.cs.wisc.edu/~remzi/OSTEP/ very accessible and introducing the various concepts in a sensible order. Virtualization happens to be the first book too,

1

u/recyclops18505 Apr 17 '26

Thank you!

1

u/vanderZwan Apr 17 '26

You're welcome! What I found really nice about it is that it actually builds a sense for how all the puzzle pieces fit together, which for me helped a ton with understanding the individual pieces too.

Plus having that integrated understanding will help you be a better computer scientist/developer, even in the case that you'll never end up working at with any of the topics directly.