3 ms·
Do we even need virtual memory? I think there should be an easy opt-out from virtual memory for user selected programs.
by sesm 3y ago
Do we even need virtual memory? I think there should be an easy opt-out from virtual memory for user selected programs.
- xxs 3y agovirtually memory you need, the latter has nothing to do w/ swapping.
- mrob 3y agoWe need virtual memory to avoid the consequences of memory fragmentation. If every process shares the same address space, you might be unable to start a process despite having plenty of free ram, because that ram is scattered all over the address space. Virtual memory allows the process to see a contiguous range of free memory even when the physical memory is fragmented.
- sesm 3y agoYou make assumptions that programs start and stop often and allocate memory multiple times at runtime. Both assumptions are not true for server software and programs that allocate one big chunk and manage memory on their own, like JVM.