Re: 答复: [PATCH] mm: extend reuse_swap_page range as much as possible

2017-11-02 Thread Michal Hocko
On Thu 02-11-17 13:22:23, Minchan Kim wrote: > On Thu, Nov 02, 2017 at 02:09:57AM +, zhouxianrong wrote: > > writes: > > > > > From: zhouxianrong > > > > > > origanlly reuse_swap_page requires that the sum of page's mapcount and > > >

Re: 答复: [PATCH] mm: extend reuse_swap_page range as much as possible

2017-11-02 Thread Michal Hocko
On Thu 02-11-17 13:22:23, Minchan Kim wrote: > On Thu, Nov 02, 2017 at 02:09:57AM +, zhouxianrong wrote: > > writes: > > > > > From: zhouxianrong > > > > > > origanlly reuse_swap_page requires that the sum of page's mapcount and > > > swapcount less than or equal to one. > > > in this case

Re: 答复: [PATCH] mm: extend reuse_swap_page range as much as possible

2017-11-01 Thread Minchan Kim
On Thu, Nov 02, 2017 at 02:09:57AM +, zhouxianrong wrote: > writes: > > > From: zhouxianrong > > > > origanlly reuse_swap_page requires that the sum of page's mapcount and > > swapcount less than or equal to one. > > in this case we can

Re: 答复: [PATCH] mm: extend reuse_swap_page range as much as possible

2017-11-01 Thread Minchan Kim
On Thu, Nov 02, 2017 at 02:09:57AM +, zhouxianrong wrote: > writes: > > > From: zhouxianrong > > > > origanlly reuse_swap_page requires that the sum of page's mapcount and > > swapcount less than or equal to one. > > in this case we can reuse this page and avoid COW currently. > > > > now

Re: [PATCH] mm: extend reuse_swap_page range as much as possible

2017-11-01 Thread Huang, Ying
writes: > From: zhouxianrong > > origanlly reuse_swap_page requires that the sum of page's > mapcount and swapcount less than or equal to one. > in this case we can reuse this page and avoid COW currently. > > now reuse_swap_page requires only

Re: [PATCH] mm: extend reuse_swap_page range as much as possible

2017-11-01 Thread Huang, Ying
writes: > From: zhouxianrong > > origanlly reuse_swap_page requires that the sum of page's > mapcount and swapcount less than or equal to one. > in this case we can reuse this page and avoid COW currently. > > now reuse_swap_page requires only that page's mapcount > less than or equal to one

[PATCH] mm: extend reuse_swap_page range as much as possible

2017-11-01 Thread zhouxianrong
From: zhouxianrong origanlly reuse_swap_page requires that the sum of page's mapcount and swapcount less than or equal to one. in this case we can reuse this page and avoid COW currently. now reuse_swap_page requires only that page's mapcount less than or equal to one

[PATCH] mm: extend reuse_swap_page range as much as possible

2017-11-01 Thread zhouxianrong
From: zhouxianrong origanlly reuse_swap_page requires that the sum of page's mapcount and swapcount less than or equal to one. in this case we can reuse this page and avoid COW currently. now reuse_swap_page requires only that page's mapcount less than or equal to one and the page is not dirty