--- title: Virtual Memory and Linux description: --- # Virtual Memory and Linux ###### tags: `Interview` > [intro_virtual memory](https://elinux.org/images/b/b0/Introduction_to_Memory_Management_in_Linux.pdf) ## Virtual Memory 優點 * 每個process可以有自己的`memory space`. * Process之間是隔離的. * Built-in memory proctection. * User是無法碰觸到`kernel space`的 * Memory可以被移動 (以page為單位) * 可以被`swap`到`disk` * 實體記憶體可以被`mapping`到多個`process` * Shared memory * `Memory regions`可以有`access permisions` * Read, write, execute