ron
Member
Thanks Rob. I'd already seen that one (and several others, by the way).
Allocating swap doesn't mean that anything actually "gets" swapped -- it's just that the space in swap maps the whole virtual memory space so every process has to "own" a section of swap. But actual swapping would only happen when there is not enough physical memory to hold all currently active processes.
Yes -- as you say -- swapping doesn't happen at the level of a process, but at the level of a page -- but I was glossing over that. I was focusing on the essential bit.
I still think all running processes have to be mapped onto a block of virtual memory -- and that's in swap.
(Unfortunately all the articles I can find that try to explain virtual memory jump straight into so much detailed blaa that it's hard to get the gist of what they're trying to explain.
)
Allocating swap doesn't mean that anything actually "gets" swapped -- it's just that the space in swap maps the whole virtual memory space so every process has to "own" a section of swap. But actual swapping would only happen when there is not enough physical memory to hold all currently active processes.
Yes -- as you say -- swapping doesn't happen at the level of a process, but at the level of a page -- but I was glossing over that. I was focusing on the essential bit.
I still think all running processes have to be mapped onto a block of virtual memory -- and that's in swap.
(Unfortunately all the articles I can find that try to explain virtual memory jump straight into so much detailed blaa that it's hard to get the gist of what they're trying to explain.