linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* gigantic hugepages vs. movable zones
@ 2017-07-26 10:50 Michal Hocko
  2017-07-27  2:22 ` Aneesh Kumar K.V
  2017-07-28 20:48 ` Mike Kravetz
  0 siblings, 2 replies; 9+ messages in thread
From: Michal Hocko @ 2017-07-26 10:50 UTC (permalink / raw)
  To: Luiz Capitulino, Mike Kravetz; +Cc: linux-mm, LKML

Hi,
I've just noticed that alloc_gigantic_page ignores movability of the
gigantic page and it uses any existing zone. Considering that
hugepage_migration_supported only supports 2MB and pgd level hugepages
then 1GB pages are not migratable and as such allocating them from a
movable zone will break the basic expectation of this zone. Standard
hugetlb allocations try to avoid that by using htlb_alloc_mask and I
believe we should do the same for gigantic pages as well.

I suspect this behavior is not intentional. What do you think about the
following untested patch?
---

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-07-31  6:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-26 10:50 gigantic hugepages vs. movable zones Michal Hocko
2017-07-27  2:22 ` Aneesh Kumar K.V
2017-07-27  7:28   ` Michal Hocko
2017-07-27  8:00     ` Aneesh Kumar K.V
2017-07-27  8:12       ` Michal Hocko
2017-07-27  8:22         ` Michal Hocko
2017-07-27 11:56           ` Vlastimil Babka
2017-07-28 20:48 ` Mike Kravetz
2017-07-31  6:47   ` Michal Hocko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox