4 ms·
Virtual memory works even without swap enabled. Since the mapped file is the binary, and code is never changed after loading, the OS can simply take pages backi
by innagadadavida 7y ago
Virtual memory works even without swap enabled. Since the mapped file is the binary, and code is never changed after loading, the OS can simply take pages backing the memory. But when there is a page fault, it will be bought back in.
- bryan_w 7y agoYeah, but why go through all that trouble when you can just add more memory? It's not 1996, machines can have more than 1GB of ram
- naniwaduni 7y agoYou haven't added memory yet because you didn't know your memory requirements before running your prod workload.