Re: [PATCH v1 4/4] mm: introduce MADV_PAGEOUT

2019-06-04 Thread Christopher Lameter
On Mon, 3 Jun 2019, Minchan Kim wrote: > @@ -415,6 +416,128 @@ static long madvise_cold(struct vm_area_struct *vma, > return 0; > } > > +static int madvise_pageout_pte_range(pmd_t *pmd, unsigned long addr, > + unsigned long end, struct mm_walk *walk) > +{ > +

Re: [PATCH v1 4/4] mm: introduce MADV_PAGEOUT

2019-06-03 Thread Minchan Kim
On Mon, Jun 03, 2019 at 04:39:11PM -0400, Johannes Weiner wrote: > On Mon, Jun 03, 2019 at 02:36:55PM +0900, Minchan Kim wrote: > > When a process expects no accesses to a certain memory range > > for a long time, it could hint kernel that the pages can be > > reclaimed instantly but data should be

Re: [PATCH v1 4/4] mm: introduce MADV_PAGEOUT

2019-06-03 Thread Johannes Weiner
On Mon, Jun 03, 2019 at 02:36:55PM +0900, Minchan Kim wrote: > When a process expects no accesses to a certain memory range > for a long time, it could hint kernel that the pages can be > reclaimed instantly but data should be preserved for future use. > This could reduce workingset eviction so it

[PATCH v1 4/4] mm: introduce MADV_PAGEOUT

2019-06-02 Thread Minchan Kim
When a process expects no accesses to a certain memory range for a long time, it could hint kernel that the pages can be reclaimed instantly but data should be preserved for future use. This could reduce workingset eviction so it ends up increasing performance. This patch introduces the new MADV_P