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:


Hi,

> 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.

Nick

--
SUSE Labs, Novell Inc.

Send instant messages to your online friends http://au.messenger.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/