Re: [PATCH 06/10] ksm: identify PageKsm pages

From: Rik van Riel
Date: Mon Jul 20 2009 - 14:32:18 EST


Izik Eidus wrote:
From: Hugh Dickins <hugh.dickins@xxxxxxxxxxxxx>

KSM will need to identify its kernel merged pages unambiguously,
and /proc/kpageflags will probably like to do so too.

Since KSM will only be substituting anonymous pages, statistics are
best preserved by making a PageKsm page a special PageAnon page:
one with no anon_vma.

But KSM then needs its own page_add_ksm_rmap() - keep it in ksm.h near
PageKsm; and do_wp_page() must COW them, unlike singly mapped PageAnons.

Acked-by: Rik van Riel <riel@xxxxxxxxxx>

--
All rights reversed.
--
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/