3 ms·
Yet, copy-on-write works well in Unix fork/exec() models and helps reduce memory pressure. Presumably, the kernel has a mechanism which presents as logistically
by ggm 5y ago
Yet, copy-on-write works well in Unix fork/exec() models and helps reduce memory pressure. Presumably, the kernel has a mechanism which presents as logistically simple "copy" but takes care of page/pointer/vm necessity.
- bzbarsky 5y agoPosition-dependent code can be copied in _physical_ memory as long as the _virtual_ addresses (which is what you observe) don't change. So yes, the mechanism you posit exists, and its the virtual memory manager.