Can overwriting 0 still keep copy-on-write?

114 Views Asked by At

In a copy on write system, reading does not increase memory, while writing data brings in new pages. And OS also has zero pages, mmap memory addresses would have 0 provided by zero page, and reading 0 from them does not increase memory until we write. But overwriting 0 on those mmap-ed addresses increases memory. Is it possible to still keep copy-on-write and use zero pages after overwriting 0?

0

There are 0 best solutions below