Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-02-01 Thread Anshuman Khandual
On 02/01/2018 02:02 AM, Michal Hocko wrote: > On Wed 31-01-18 12:12:17, Andrew Morton wrote: >> On Wed, 31 Jan 2018 08:58:52 +0100 Michal Hocko wrote: >> >>> On Wed 31-01-18 07:55:05, Anshuman Khandual wrote: On 01/30/2018 01:29 PM, Michal Hocko wrote: > On Tue 30-01-18 08:37:14, Anshuman

Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-01-31 Thread Michal Hocko
On Wed 31-01-18 12:12:17, Andrew Morton wrote: > On Wed, 31 Jan 2018 08:58:52 +0100 Michal Hocko wrote: > > > On Wed 31-01-18 07:55:05, Anshuman Khandual wrote: > > > On 01/30/2018 01:29 PM, Michal Hocko wrote: > > > > On Tue 30-01-18 08:37:14, Anshuman Khandual wrote: > > > >> alloc_contig_range

Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-01-31 Thread Andrew Morton
On Wed, 31 Jan 2018 08:58:52 +0100 Michal Hocko wrote: > On Wed 31-01-18 07:55:05, Anshuman Khandual wrote: > > On 01/30/2018 01:29 PM, Michal Hocko wrote: > > > On Tue 30-01-18 08:37:14, Anshuman Khandual wrote: > > >> alloc_contig_range() initiates compaction and eventual migration for > > >> t

Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-01-30 Thread Michal Hocko
On Wed 31-01-18 07:55:05, Anshuman Khandual wrote: > On 01/30/2018 01:29 PM, Michal Hocko wrote: > > On Tue 30-01-18 08:37:14, Anshuman Khandual wrote: > >> alloc_contig_range() initiates compaction and eventual migration for > >> the purpose of either CMA or HugeTLB allocation. At present, reason

Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-01-30 Thread Mike Kravetz
On 01/30/2018 06:25 PM, Anshuman Khandual wrote: > On 01/30/2018 01:29 PM, Michal Hocko wrote: >> On Tue 30-01-18 08:37:14, Anshuman Khandual wrote: >>> alloc_contig_range() initiates compaction and eventual migration for >>> the purpose of either CMA or HugeTLB allocation. At present, reason >>> c

Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-01-30 Thread Anshuman Khandual
On 01/30/2018 01:29 PM, Michal Hocko wrote: > On Tue 30-01-18 08:37:14, Anshuman Khandual wrote: >> alloc_contig_range() initiates compaction and eventual migration for >> the purpose of either CMA or HugeTLB allocation. At present, reason >> code remains the same MR_CMA for either of those cases.

Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-01-30 Thread Michal Hocko
On Tue 30-01-18 08:37:14, Anshuman Khandual wrote: > alloc_contig_range() initiates compaction and eventual migration for > the purpose of either CMA or HugeTLB allocation. At present, reason > code remains the same MR_CMA for either of those cases. Lets add a > new reason code which will different

Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-01-29 Thread Anshuman Khandual
On 01/30/2018 08:37 AM, Anshuman Khandual wrote: > @@ -7621,8 +7622,13 @@ static int __alloc_contig_migrate_range(struct > compact_control *cc, > &cc->migratepages); > cc->nr_migratepages -= nr_reclaimed; > > + if (m