...
/VAX/VMS Virtual Memory: Other Neat Tricks
VAX/VMS Virtual Memory: Other Neat Tricks
Let's look at some other neat tricks such as demand zeroing and copy-on-write employed by VAX/VMS.
We'll cover the following...
Demand zeroing
VMS had two other now-standard tricks: demand zeroing and copy-on-write. We now describe these lazy optimizations. One form of laziness in VMS (and most modern systems) is demand zeroing of pages. To understand this better, let’s consider the example of adding a page to your address space, say in your heap. In a naive implementation, the OS responds to a request to add a page to your heap by finding a page in physical memory, zeroing it (required for security; otherwise you’d be able to see what was on the page from when some other process used it!), and then mapping it into your address space (i.e., setting up the page table to refer to that physical page as desired). But the naive implementation can be costly, particularly if the page does not get used by the process.
With demand zeroing, the OS instead does very little work when the page is added to your address space; ...