Re: [PATCH 3/4] MADV_VOLATILE: Add purged page detection on setting memory non-volatile

2014-05-08 Thread Minchan Kim
On Thu, May 08, 2014 at 02:45:27PM -0700, John Stultz wrote: > On 05/07/2014 06:51 PM, Minchan Kim wrote: > > On Tue, Apr 29, 2014 at 02:21:22PM -0700, John Stultz wrote: > >> +/** > >> + * mvolatile_check_purged_pte - Checks ptes for purged pages > >> + * @pmd: pmd to walk > >> + * @addr:

Re: [PATCH 3/4] MADV_VOLATILE: Add purged page detection on setting memory non-volatile

2014-05-08 Thread John Stultz
On 05/07/2014 06:51 PM, Minchan Kim wrote: > On Tue, Apr 29, 2014 at 02:21:22PM -0700, John Stultz wrote: >> +/** >> + * mvolatile_check_purged_pte - Checks ptes for purged pages >> + * @pmd: pmd to walk >> + * @addr: starting address >> + * @end: end address >> + * @walk: mm_walk ptr (contains

Re: [PATCH 3/4] MADV_VOLATILE: Add purged page detection on setting memory non-volatile

2014-05-08 Thread John Stultz
On 05/07/2014 06:51 PM, Minchan Kim wrote: On Tue, Apr 29, 2014 at 02:21:22PM -0700, John Stultz wrote: +/** + * mvolatile_check_purged_pte - Checks ptes for purged pages + * @pmd: pmd to walk + * @addr: starting address + * @end: end address + * @walk: mm_walk ptr (contains ptr to

Re: [PATCH 3/4] MADV_VOLATILE: Add purged page detection on setting memory non-volatile

2014-05-08 Thread Minchan Kim
On Thu, May 08, 2014 at 02:45:27PM -0700, John Stultz wrote: On 05/07/2014 06:51 PM, Minchan Kim wrote: On Tue, Apr 29, 2014 at 02:21:22PM -0700, John Stultz wrote: +/** + * mvolatile_check_purged_pte - Checks ptes for purged pages + * @pmd: pmd to walk + * @addr: starting address + *

Re: [PATCH 3/4] MADV_VOLATILE: Add purged page detection on setting memory non-volatile

2014-05-07 Thread Minchan Kim
On Tue, Apr 29, 2014 at 02:21:22PM -0700, John Stultz wrote: > Users of volatile ranges will need to know if memory was discarded. > This patch adds the purged state tracking required to inform userland > when it marks memory as non-volatile that some memory in that range > was purged and needs to

Re: [PATCH 3/4] MADV_VOLATILE: Add purged page detection on setting memory non-volatile

2014-05-07 Thread Minchan Kim
On Tue, Apr 29, 2014 at 02:21:22PM -0700, John Stultz wrote: Users of volatile ranges will need to know if memory was discarded. This patch adds the purged state tracking required to inform userland when it marks memory as non-volatile that some memory in that range was purged and needs to be

[PATCH 3/4] MADV_VOLATILE: Add purged page detection on setting memory non-volatile

2014-04-29 Thread John Stultz
Users of volatile ranges will need to know if memory was discarded. This patch adds the purged state tracking required to inform userland when it marks memory as non-volatile that some memory in that range was purged and needs to be regenerated. This simplified implementation which uses some of

[PATCH 3/4] MADV_VOLATILE: Add purged page detection on setting memory non-volatile

2014-04-29 Thread John Stultz
Users of volatile ranges will need to know if memory was discarded. This patch adds the purged state tracking required to inform userland when it marks memory as non-volatile that some memory in that range was purged and needs to be regenerated. This simplified implementation which uses some of