Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1531346 > unrolled thread

Re: [PATCH v2 04/12] mm: thp: introduce CONFIG_ARCH_ENABLE_THP_MIGRATION

Started byMichal Hocko <mhocko@kernel.org>
First post2016-11-28 15:30 +0100
Last post2016-11-29 09:50 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2 04/12] mm: thp: introduce  CONFIG_ARCH_ENABLE_THP_MIGRATION Michal Hocko <mhocko@kernel.org> - 2016-11-28 15:30 +0100
    Re: [PATCH v2 04/12] mm: thp: introduce  CONFIG_ARCH_ENABLE_THP_MIGRATION Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> - 2016-11-29 09:00 +0100
      Re: [PATCH v2 04/12] mm: thp: introduce  CONFIG_ARCH_ENABLE_THP_MIGRATION Michal Hocko <mhocko@kernel.org> - 2016-11-29 09:50 +0100

#1531346 — Re: [PATCH v2 04/12] mm: thp: introduce CONFIG_ARCH_ENABLE_THP_MIGRATION

FromMichal Hocko <mhocko@kernel.org>
Date2016-11-28 15:30 +0100
SubjectRe: [PATCH v2 04/12] mm: thp: introduce CONFIG_ARCH_ENABLE_THP_MIGRATION
Message-ID<sIv6p-3fu-15@gated-at.bofh.it>
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.
-- 
Michal Hocko
SUSE Labs

[toc] | [next] | [standalone]


#1531979

FromNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Date2016-11-29 09:00 +0100
Message-ID<sILuy-5oV-23@gated-at.bofh.it>
In reply to#1531346
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

[toc] | [prev] | [next] | [standalone]


#1531997

FromMichal Hocko <mhocko@kernel.org>
Date2016-11-29 09:50 +0100
Message-ID<sIMgV-5Y2-1@gated-at.bofh.it>
In reply to#1531979
On Tue 29-11-16 07:50:06, Naoya Horiguchi wrote:
> 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 this is _much_ better!
-- 
Michal Hocko
SUSE Labs

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web