Linux-mm Archive on
 help / color / Atom feed
From: "Li Xinhai" <>
To: mhocko <>
Cc: "" <>,
	 akpm <>,
	 "Mike Kravetz" <>
Subject: Re: [PATCH v4] mm/mempolicy,hugetlb: Checking hstate for hugetlbfs page in vma_migratable
Date: Thu, 16 Jan 2020 23:38:20 +0800
Message-ID: <> (raw)
In-Reply-To: <>

On 2020-01-16 at 23:18 Michal Hocko wrote:
>On Thu 16-01-20 21:50:34, Li Xinhai wrote:
>> On 2020-01-16 at 17:56 Michal Hocko wrote:
>> >On Thu 16-01-20 04:11:25, Li Xinhai wrote:
>> >> Checking hstate at early phase when isolating page, instead of during
>> >> unmap and move phase, to avoid useless isolation.
>> >
>> >Could you be more specific what you mean by isolation and why does it
>> >matter? The patch description should really explain _why_ the change is
>> >needed or desirable.
>> The changelog can be improved:
>> vma_migratable() is called to check if pages in vma can be migrated
>> before go ahead to isolate, unmap and move pages. For hugetlb pages,
>> hugepage_migration_supported(struct hstate *h) is one factor which
>> decide if migration is supported. In current code, this function is called
>> from unmap_and_move_huge_page(), after isolating page has
>> completed.
>> This patch checks hstate from vma_migratable() and avoids isolating pages
>> which are not supported.
>This still explains what but not why this is relevant. If by isolating
>pages you mean isolate_lru_page then this really a noop for hugetlb
>pages. Or do I still misread your changelog? 

I mean isolate_huge_page will queue pages for moving, and
unmap_and_move_huge_page will call
hugepage_migration_supported then refuse moving.

>Michal Hocko
>SUSE Labs

  reply index

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-16  4:11 Li Xinhai
2020-01-16  9:56 ` Michal Hocko
2020-01-16 13:50   ` Li Xinhai
2020-01-16 15:18     ` Michal Hocko
2020-01-16 15:38       ` Li Xinhai [this message]
2020-01-17  3:16         ` Li Xinhai
2020-01-18  3:11           ` Li Xinhai

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-mm Archive on

Archives are clonable:
	git clone --mirror linux-mm/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mm linux-mm/ \
	public-inbox-index linux-mm

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone