Re: [PATCH v1] mm: help the ALLOC_HARDER allocation pass the watermarki when CMA on

2018-04-05 Thread Joonsoo Kim
On Wed, Apr 04, 2018 at 03:37:03PM -0700, Andrew Morton wrote: > On Wed, 4 Apr 2018 09:31:10 +0900 Joonsoo Kim wrote: > > > On Fri, Mar 23, 2018 at 01:04:08PM -0700, Andrew Morton wrote: > > > On Fri, 23 Mar 2018 10:33:27 +0100 Michal Hocko wrote: > > > > > > > On Fri 23-03-18 17:19:26, Zhaoyan

Re: [PATCH v1] mm: help the ALLOC_HARDER allocation pass the watermarki when CMA on

2018-04-04 Thread Andrew Morton
On Wed, 4 Apr 2018 09:31:10 +0900 Joonsoo Kim wrote: > On Fri, Mar 23, 2018 at 01:04:08PM -0700, Andrew Morton wrote: > > On Fri, 23 Mar 2018 10:33:27 +0100 Michal Hocko wrote: > > > > > On Fri 23-03-18 17:19:26, Zhaoyang Huang wrote: > > > > On Fri, Mar 23, 2018 at 4:38 PM, Michal Hocko wrote

Re: [PATCH v1] mm: help the ALLOC_HARDER allocation pass the watermarki when CMA on

2018-04-03 Thread Joonsoo Kim
On Fri, Mar 23, 2018 at 01:04:08PM -0700, Andrew Morton wrote: > On Fri, 23 Mar 2018 10:33:27 +0100 Michal Hocko wrote: > > > On Fri 23-03-18 17:19:26, Zhaoyang Huang wrote: > > > On Fri, Mar 23, 2018 at 4:38 PM, Michal Hocko wrote: > > > > On Fri 23-03-18 15:57:32, Zhaoyang Huang wrote: > > > >

Re: [PATCH v1] mm: help the ALLOC_HARDER allocation pass the watermarki when CMA on

2018-03-23 Thread Andrew Morton
On Fri, 23 Mar 2018 10:33:27 +0100 Michal Hocko wrote: > On Fri 23-03-18 17:19:26, Zhaoyang Huang wrote: > > On Fri, Mar 23, 2018 at 4:38 PM, Michal Hocko wrote: > > > On Fri 23-03-18 15:57:32, Zhaoyang Huang wrote: > > >> For the type of 'ALLOC_HARDER' page allocation, there is an express > > >

Re: [PATCH v1] mm: help the ALLOC_HARDER allocation pass the watermarki when CMA on

2018-03-23 Thread Michal Hocko
On Fri 23-03-18 17:19:26, Zhaoyang Huang wrote: > On Fri, Mar 23, 2018 at 4:38 PM, Michal Hocko wrote: > > On Fri 23-03-18 15:57:32, Zhaoyang Huang wrote: > >> For the type of 'ALLOC_HARDER' page allocation, there is an express > >> highway for the whole process which lead the allocation reach __r

Re: [PATCH v1] mm: help the ALLOC_HARDER allocation pass the watermarki when CMA on

2018-03-23 Thread Zhaoyang Huang
On Fri, Mar 23, 2018 at 4:38 PM, Michal Hocko wrote: > On Fri 23-03-18 15:57:32, Zhaoyang Huang wrote: >> For the type of 'ALLOC_HARDER' page allocation, there is an express >> highway for the whole process which lead the allocation reach __rmqueue_xxx >> easier than other type. >> However, when C

Re: [PATCH v1] mm: help the ALLOC_HARDER allocation pass the watermarki when CMA on

2018-03-23 Thread Michal Hocko
On Fri 23-03-18 15:57:32, Zhaoyang Huang wrote: > For the type of 'ALLOC_HARDER' page allocation, there is an express > highway for the whole process which lead the allocation reach __rmqueue_xxx > easier than other type. > However, when CMA is enabled, the free_page within zone_watermark_ok() will

[PATCH v1] mm: help the ALLOC_HARDER allocation pass the watermarki when CMA on

2018-03-23 Thread Zhaoyang Huang
For the type of 'ALLOC_HARDER' page allocation, there is an express highway for the whole process which lead the allocation reach __rmqueue_xxx easier than other type. However, when CMA is enabled, the free_page within zone_watermark_ok() will be deducted for number the pages in CMA type, which may