Re: [PATCH v3] support madvise(MADV_FREE)

2014-04-08 Thread Minchan Kim
Hello Zhang, On Tue, Apr 08, 2014 at 01:35:25PM +0800, Zhang Yanfei wrote: > Hello Minchan, > > Nice work. It seems I forgot to reply your mail in the first RFC version > of the patch, so I just review this new one. > > On 04/07/2014 10:51 AM, Minchan Kim wrote: > > Linux doesn't have an

Re: [PATCH v3] support madvise(MADV_FREE)

2014-04-08 Thread Minchan Kim
Hello Zhang, On Tue, Apr 08, 2014 at 01:35:25PM +0800, Zhang Yanfei wrote: Hello Minchan, Nice work. It seems I forgot to reply your mail in the first RFC version of the patch, so I just review this new one. On 04/07/2014 10:51 AM, Minchan Kim wrote: Linux doesn't have an ability to

Re: [PATCH v3] support madvise(MADV_FREE)

2014-04-07 Thread Zhang Yanfei
Hello Minchan, Nice work. It seems I forgot to reply your mail in the first RFC version of the patch, so I just review this new one. On 04/07/2014 10:51 AM, Minchan Kim wrote: > Linux doesn't have an ability to free pages lazy while other OS > already have been supported that named by

Re: [PATCH v3] support madvise(MADV_FREE)

2014-04-07 Thread Zhang Yanfei
Hello Minchan, Nice work. It seems I forgot to reply your mail in the first RFC version of the patch, so I just review this new one. On 04/07/2014 10:51 AM, Minchan Kim wrote: Linux doesn't have an ability to free pages lazy while other OS already have been supported that named by

[PATCH v3] support madvise(MADV_FREE)

2014-04-06 Thread Minchan Kim
Linux doesn't have an ability to free pages lazy while other OS already have been supported that named by madvise(MADV_FREE). The gain is clear that kernel can discard freed pages rather than swapping out or OOM if memory pressure happens. Without memory pressure, freed pages would be reused by

[PATCH v3] support madvise(MADV_FREE)

2014-04-06 Thread Minchan Kim
Linux doesn't have an ability to free pages lazy while other OS already have been supported that named by madvise(MADV_FREE). The gain is clear that kernel can discard freed pages rather than swapping out or OOM if memory pressure happens. Without memory pressure, freed pages would be reused by