Re: COW userspace memory mapping question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 10 Mar 2011 13:13:02 -0600 (CST), Christoph Lameter <cl@xxxxxxxxx>
wrote:
> Its probably more an issue of us understanding what you want.

Okay. I've posted the message from within the CET. It was
approximately 1 am and I am not a native speaker. So, once again
sorry and thanks a lot for your help. :-)

Now to the question.

> Ok let say you have a memory range in the address space from which you
> want to take a snapshot. How is that snapshot data visible? To another
> process? Via a file?

As I understand that, before a process forks, all of it's private memory
pages are somehow magically marked. When a process with access to such
page attempts to modify it, the page is duplicated and the copy replaces
the shared page for this process. Then the actual modification is
carried on.

What I am interested in is a hypothetical system call

  void *mcopy(void *dst, void *src, size_t len, int flags);

which would make src pages marked in the same way and mapped *also* to
the dst. Afterwards, any modification to either mapping would not
influence the other.

Now, is there something like that?

Best regards,
    Jan Dvorak

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]