Re: How to identify cow (copy-on-write) pages during kernelexecution?

From: Nick Piggin
Date: Mon Jun 20 2005 - 01:35:17 EST

On Mon, 2005-06-20 at 01:45 -0400, Mauricio Lin wrote:


> So when a page struct is considered a cow in the
> kernel and its count variable is updated? Certainly
> the counter page (page->_count) is updated when a page
> is shared because of copy-on-write feature.
> How can I identify cow pages when it becomes cow? Is
> there any feasible way to perform that?

Look in mm/memory.c at how the page fault handler decides
it is dealing with a COW page.


SUSE Labs, Novell Inc.

Send instant messages to your online friends
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at