๐ Virtual memory location on hard-disk
๐ก Newskategorie: Linux Tipps
๐ Quelle: reddit.com
I was reading about paging and swap-space and I'm a little confused about how much space (and where) on the hard-disk is used to page out / swap-out frames. Let's think of the following scenario :
- We have a single process which progressively uses newer pages in virtual memory. Each time for a new page, we allocate a frame in physical memory.
- But after a while, frames in the physical memory get exhausted and we choose a victim frame to be removed from RAM.
I have the following doubts :
- Does the victim frame get swapped out to the swap space or paged out to some different location (apart from swap-space) on the hard-disk?
- From what I've seen, swap space is usually around 1-2x size of RAM, so does this mean a process can use only RAM + swap-space amount of memory in total? Or would it be more than that and limited by the size of virtual memory?
[link] [comments] ...