Re:Is virtual memory becoming obsolete?
Posted: Thu Jun 01, 2006 11:54 am
Hi,
I'm not too convinced by the flexibility argument though. IMHO the only reasonable place for flexibility in a VMM is in the code that decides which page/s are swapped out. For e.g. a mostly inflexible VMM with default "select a page to swap out" code, where software that cares can use it's own policy for choosing pages to swap out.
Of course I haven't thought about this much - I guess my goal is help you to find and clearly define your "why"...
Cheers,
Brendan
You could seperate policy from the low level code and implement the low level code (functions to map a page, allocate/free a physical page, send a page to swap, etc) and a "default" policy in the kernel. That way software that cares can use it's own policy and the kernel's low level code, software that doesn't care can use the default policy, and the kernel itself can use it's own internal code for IPC, etc.Colonel Kernel wrote:The flexibility to implement different VMM policies for different apps in the same system. I guess you could characterize this as one of the main goals of an exokernel, but not necessarily of a microkernel. As I said myself recently, flexibility is only an end in itself if you're a gymnast.So the question is, what would you gain by shifting the VMM into user space?
I'm not too convinced by the flexibility argument though. IMHO the only reasonable place for flexibility in a VMM is in the code that decides which page/s are swapped out. For e.g. a mostly inflexible VMM with default "select a page to swap out" code, where software that cares can use it's own policy for choosing pages to swap out.
Of course I haven't thought about this much - I guess my goal is help you to find and clearly define your "why"...
Cheers,
Brendan