Re: [PATCH v5 1/5] mm: introduce MADV_COLD

2019-07-22 Thread Minchan Kim
On Wed, Jul 17, 2019 at 03:14:57PM -0700, Suren Baghdasaryan wrote: > Hi Minchan, > Couple comments inline. > Thanks! > > On Sun, Jul 14, 2019 at 4:34 PM Minchan Kim wrote: > > > > When a process expects no accesses to a certain memory range, it could > > give a hint to kernel that the pages can

Re: [PATCH v5 1/5] mm: introduce MADV_COLD

2019-07-17 Thread Suren Baghdasaryan
Hi Minchan, Couple comments inline. Thanks! On Sun, Jul 14, 2019 at 4:34 PM Minchan Kim wrote: > > When a process expects no accesses to a certain memory range, it could > give a hint to kernel that the pages can be reclaimed when memory pressure > happens but data should be preserved for future

[PATCH v5 1/5] mm: introduce MADV_COLD

2019-07-14 Thread Minchan Kim
When a process expects no accesses to a certain memory range, it could give a hint to kernel that the pages can be reclaimed when memory pressure happens but data should be preserved for future use. This could reduce workingset eviction so it ends up increasing performance. This patch introduces