Re: gigantic hugepages vs. movable zones

2017-07-30 Thread Michal Hocko
On Fri 28-07-17 13:48:28, Mike Kravetz wrote: > On 07/26/2017 03:50 AM, Michal Hocko wrote: > > 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 l

Re: gigantic hugepages vs. movable zones

2017-07-28 Thread Mike Kravetz
On 07/26/2017 03:50 AM, Michal Hocko wrote: > 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 a

Re: gigantic hugepages vs. movable zones

2017-07-27 Thread Vlastimil Babka
On 07/27/2017 10:22 AM, Michal Hocko wrote: > [CC for real] > > On Thu 27-07-17 10:12:36, Michal Hocko wrote: >> On Thu 27-07-17 13:30:31, Aneesh Kumar K.V wrote: >>> >>> >>> On 07/27/2017 12:58 PM, Michal Hocko wrote: On Thu 27-07-17 07:52:08, Aneesh Kumar K.V wrote: > Michal Hocko writ

Re: gigantic hugepages vs. movable zones

2017-07-27 Thread Michal Hocko
[CC for real] On Thu 27-07-17 10:12:36, Michal Hocko wrote: > On Thu 27-07-17 13:30:31, Aneesh Kumar K.V wrote: > > > > > > On 07/27/2017 12:58 PM, Michal Hocko wrote: > > >On Thu 27-07-17 07:52:08, Aneesh Kumar K.V wrote: > > >>Michal Hocko writes: > > >> > > >>>Hi, > > >>>I've just noticed th

Re: gigantic hugepages vs. movable zones

2017-07-27 Thread Michal Hocko
On Thu 27-07-17 13:30:31, Aneesh Kumar K.V wrote: > > > On 07/27/2017 12:58 PM, Michal Hocko wrote: > >On Thu 27-07-17 07:52:08, Aneesh Kumar K.V wrote: > >>Michal Hocko writes: > >> > >>>Hi, > >>>I've just noticed that alloc_gigantic_page ignores movability of the > >>>gigantic page and it uses

Re: gigantic hugepages vs. movable zones

2017-07-27 Thread Aneesh Kumar K.V
On 07/27/2017 12:58 PM, Michal Hocko wrote: On Thu 27-07-17 07:52:08, Aneesh Kumar K.V wrote: Michal Hocko writes: 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 support

Re: gigantic hugepages vs. movable zones

2017-07-27 Thread Michal Hocko
On Thu 27-07-17 07:52:08, Aneesh Kumar K.V wrote: > Michal Hocko writes: > > > 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

Re: gigantic hugepages vs. movable zones

2017-07-26 Thread Aneesh Kumar K.V
Michal Hocko writes: > 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 the

gigantic hugepages vs. movable zones

2017-07-26 Thread Michal Hocko
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