Re: [PATCH v10 1/7] mm: support madvise(MADV_FREE)

2014-07-07 Thread Minchan Kim
Hello Zhang, On Tue, Jul 08, 2014 at 11:54:12AM +0800, Zhang Yanfei wrote: > Hi Minchan, > > On 07/07/2014 08:53 AM, Minchan Kim wrote: > > 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

Re: [PATCH v10 1/7] mm: support madvise(MADV_FREE)

2014-07-07 Thread Zhang Yanfei
Hi Minchan, On 07/07/2014 08:53 AM, Minchan Kim wrote: > 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

Re: [PATCH v10 1/7] mm: support madvise(MADV_FREE)

2014-07-07 Thread Minchan Kim
On Mon, Jul 07, 2014 at 01:41:37PM +0300, Kirill A. Shutemov wrote: > On Mon, Jul 07, 2014 at 09:53:52AM +0900, Minchan Kim wrote: > > 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

Re: [PATCH v10 1/7] mm: support madvise(MADV_FREE)

2014-07-07 Thread Kirill A. Shutemov
On Mon, Jul 07, 2014 at 09:53:52AM +0900, Minchan Kim wrote: > 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

Re: [PATCH v10 1/7] mm: support madvise(MADV_FREE)

2014-07-07 Thread Kirill A. Shutemov
On Mon, Jul 07, 2014 at 09:53:52AM +0900, Minchan Kim wrote: 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

Re: [PATCH v10 1/7] mm: support madvise(MADV_FREE)

2014-07-07 Thread Minchan Kim
On Mon, Jul 07, 2014 at 01:41:37PM +0300, Kirill A. Shutemov wrote: On Mon, Jul 07, 2014 at 09:53:52AM +0900, Minchan Kim wrote: 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

Re: [PATCH v10 1/7] mm: support madvise(MADV_FREE)

2014-07-07 Thread Zhang Yanfei
Hi Minchan, On 07/07/2014 08:53 AM, Minchan Kim wrote: 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

Re: [PATCH v10 1/7] mm: support madvise(MADV_FREE)

2014-07-07 Thread Minchan Kim
Hello Zhang, On Tue, Jul 08, 2014 at 11:54:12AM +0800, Zhang Yanfei wrote: Hi Minchan, On 07/07/2014 08:53 AM, Minchan Kim wrote: 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

[PATCH v10 1/7] mm: support madvise(MADV_FREE)

2014-07-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 v10 1/7] mm: support madvise(MADV_FREE)

2014-07-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