From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with SMTP id F1E0D6B005A for ; Mon, 20 Jul 2009 14:32:10 -0400 (EDT) Message-ID: <4A64B820.3090009@redhat.com> Date: Mon, 20 Jul 2009 14:32:00 -0400 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH 06/10] ksm: identify PageKsm pages References: <1247851850-4298-1-git-send-email-ieidus@redhat.com> <1247851850-4298-2-git-send-email-ieidus@redhat.com> <1247851850-4298-3-git-send-email-ieidus@redhat.com> <1247851850-4298-4-git-send-email-ieidus@redhat.com> <1247851850-4298-5-git-send-email-ieidus@redhat.com> <1247851850-4298-6-git-send-email-ieidus@redhat.com> <1247851850-4298-7-git-send-email-ieidus@redhat.com> In-Reply-To: <1247851850-4298-7-git-send-email-ieidus@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Izik Eidus Cc: akpm@linux-foundation.org, hugh.dickins@tiscali.co.uk, aarcange@redhat.com, chrisw@redhat.com, avi@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, nickpiggin@yahoo.com.au, Wu Fengguang List-ID: Izik Eidus wrote: > From: Hugh Dickins > > 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 -- All rights reversed. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org