Re: [PATCH v8 0/4] introduce memory hinting API for external process

2020-06-23 Thread Minchan Kim
Hi Oleksandr, On Tue, Jun 23, 2020 at 11:07:21AM +0200, Oleksandr Natalenko wrote: > On Mon, Jun 22, 2020 at 12:28:56PM -0700, Minchan Kim wrote: > > Now, we have MADV_PAGEOUT and MADV_COLD as madvise hinting API. With that, > > application could give hints to kernel what memory range are

Re: [PATCH v8 0/4] introduce memory hinting API for external process

2020-06-23 Thread Oleksandr Natalenko
On Mon, Jun 22, 2020 at 12:28:56PM -0700, Minchan Kim wrote: > Now, we have MADV_PAGEOUT and MADV_COLD as madvise hinting API. With that, > application could give hints to kernel what memory range are preferred to be > reclaimed. However, in some platform(e.g., Android), the information > required

Re: [PATCH v8 0/4] introduce memory hinting API for external process

2020-06-23 Thread Oleksandr Natalenko
Hello. On Mon, Jun 22, 2020 at 12:36:35PM -0700, Minchan Kim wrote: > On Mon, Jun 22, 2020 at 12:28:56PM -0700, Minchan Kim wrote: > > Now, we have MADV_PAGEOUT and MADV_COLD as madvise hinting API. With that, > > application could give hints to kernel what memory range are preferred to be > >

Re: [PATCH v8 0/4] introduce memory hinting API for external process

2020-06-22 Thread Minchan Kim
On Mon, Jun 22, 2020 at 12:28:56PM -0700, Minchan Kim wrote: > Now, we have MADV_PAGEOUT and MADV_COLD as madvise hinting API. With that, > application could give hints to kernel what memory range are preferred to be > reclaimed. However, in some platform(e.g., Android), the information > required

[PATCH v8 0/4] introduce memory hinting API for external process

2020-06-22 Thread Minchan Kim
Now, we have MADV_PAGEOUT and MADV_COLD as madvise hinting API. With that, application could give hints to kernel what memory range are preferred to be reclaimed. However, in some platform(e.g., Android), the information required to make the hinting decision is not known to the app. Instead, it is