[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161129075006.GA15582@hori1.linux.bs1.fc.nec.co.jp>
Date: Tue, 29 Nov 2016 07:50:06 +0000
From: Naoya Horiguchi <n-horiguchi@...jp.nec.com>
To: Michal Hocko <mhocko@...nel.org>
CC: "linux-mm@...ck.org" <linux-mm@...ck.org>,
"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>,
Hugh Dickins <hughd@...gle.com>,
"Andrew Morton" <akpm@...ux-foundation.org>,
Dave Hansen <dave.hansen@...el.com>,
Andrea Arcangeli <aarcange@...hat.com>,
Mel Gorman <mgorman@...hsingularity.net>,
Vlastimil Babka <vbabka@...e.cz>,
"Pavel Emelyanov" <xemul@...allels.com>,
Zi Yan <zi.yan@...rutgers.edu>,
Balbir Singh <bsingharora@...il.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Naoya Horiguchi <nao.horiguchi@...il.com>
Subject: Re: [PATCH v2 04/12] mm: thp: introduce
CONFIG_ARCH_ENABLE_THP_MIGRATION
On Mon, Nov 28, 2016 at 03:21:54PM +0100, Michal Hocko wrote:
> On Tue 08-11-16 08:31:49, Naoya Horiguchi wrote:
> > Introduces CONFIG_ARCH_ENABLE_THP_MIGRATION to limit thp migration
> > functionality to x86_64, which should be safer at the first step.
>
> Please make sure to describe why this has to be arch specific and what
> are arches supposed to provide in order to enable this option.
OK, the below will be added in the future version:
Thp migration is an arch-specific feature because it depends on the
arch-dependent behavior of non-present format of page table entry.
What you need to enable this option in other archs are:
- to define arch-specific transformation functions like __pmd_to_swp_entry()
and __swp_entry_to_pmd(),
- to make sure that arch-specific page table walking code can properly handle
!pmd_present case (gup_pmd_range() is a good example),
- (if your archs enables CONFIG_HAVE_ARCH_SOFT_DIRTY,) to define soft dirty
routines like pmd_swp_mksoft_dirty.
Thanks,
Naoya Horiguchi
Powered by blists - more mailing lists