Re: [PATCH 4/5] mm: simplify reclaim path for MADV_FREE

2015-10-27 Thread yalin wang
> On Oct 27, 2015, at 16:52, yalin wang wrote: > > >> On Oct 27, 2015, at 16:10, Minchan Kim wrote: >> >> On Tue, Oct 27, 2015 at 03:39:16PM +0800, yalin wang wrote: >>> On Oct 27, 2015, at 15:09, Minchan Kim wrote: Hello Yalin, Sorry for missing you in Cc list. >

Re: [PATCH 4/5] mm: simplify reclaim path for MADV_FREE

2015-10-27 Thread yalin wang
> On Oct 27, 2015, at 16:10, Minchan Kim wrote: > > On Tue, Oct 27, 2015 at 03:39:16PM +0800, yalin wang wrote: >> >>> On Oct 27, 2015, at 15:09, Minchan Kim wrote: >>> >>> Hello Yalin, >>> >>> Sorry for missing you in Cc list. >>> IIRC, mails to send your previous mail address(yalin.w...@so

Re: [PATCH 4/5] mm: simplify reclaim path for MADV_FREE

2015-10-27 Thread Minchan Kim
On Tue, Oct 27, 2015 at 03:39:16PM +0800, yalin wang wrote: > > > On Oct 27, 2015, at 15:09, Minchan Kim wrote: > > > > Hello Yalin, > > > > Sorry for missing you in Cc list. > > IIRC, mails to send your previous mail address(yalin.w...@sonymobile.com) > > were returned. > > > > You added comm

Re: [PATCH 4/5] mm: simplify reclaim path for MADV_FREE

2015-10-27 Thread yalin wang
> On Oct 27, 2015, at 15:09, Minchan Kim wrote: > > Hello Yalin, > > Sorry for missing you in Cc list. > IIRC, mails to send your previous mail address(yalin.w...@sonymobile.com) > were returned. > > You added comment bottom line so I'm not sure what PageDirty you meant. > >> it is wrong here

Re: [PATCH 4/5] mm: simplify reclaim path for MADV_FREE

2015-10-27 Thread Minchan Kim
Hello Yalin, Sorry for missing you in Cc list. IIRC, mails to send your previous mail address(yalin.w...@sonymobile.com) were returned. On Tue, Oct 27, 2015 at 11:44:09AM +0800, yalin wang wrote: > > > On Oct 27, 2015, at 10:09, Hugh Dickins wrote: > > > > On Mon, 19 Oct 2015, Minchan Kim wrot

Re: [PATCH 4/5] mm: simplify reclaim path for MADV_FREE

2015-10-26 Thread Minchan Kim
On Mon, Oct 26, 2015 at 07:09:15PM -0700, Hugh Dickins wrote: > On Mon, 19 Oct 2015, Minchan Kim wrote: > > > I made reclaim path mess to check and free MADV_FREEed page. > > This patch simplify it with tweaking add_to_swap. > > > > So far, we mark page as PG_dirty when we add the page into > > s

Re: [PATCH 4/5] mm: simplify reclaim path for MADV_FREE

2015-10-26 Thread yalin wang
> On Oct 27, 2015, at 10:09, Hugh Dickins wrote: > > On Mon, 19 Oct 2015, Minchan Kim wrote: > >> I made reclaim path mess to check and free MADV_FREEed page. >> This patch simplify it with tweaking add_to_swap. >> >> So far, we mark page as PG_dirty when we add the page into >> swap cache(ie,

Re: [PATCH 4/5] mm: simplify reclaim path for MADV_FREE

2015-10-26 Thread Hugh Dickins
On Mon, 19 Oct 2015, Minchan Kim wrote: > I made reclaim path mess to check and free MADV_FREEed page. > This patch simplify it with tweaking add_to_swap. > > So far, we mark page as PG_dirty when we add the page into > swap cache(ie, add_to_swap) to page out to swap device but > this patch moves

[PATCH 4/5] mm: simplify reclaim path for MADV_FREE

2015-10-18 Thread Minchan Kim
I made reclaim path mess to check and free MADV_FREEed page. This patch simplify it with tweaking add_to_swap. So far, we mark page as PG_dirty when we add the page into swap cache(ie, add_to_swap) to page out to swap device but this patch moves PG_dirty marking under try_to_unmap_one when we deci