Re: [HELP] How to get task_struct from mm

2019-05-31 Thread Michal Hocko
On Fri 31-05-19 20:51:05, Yang Shi wrote: > > > On 5/30/19 11:41 PM, Michal Hocko wrote: > > On Thu 30-05-19 14:57:46, Yang Shi wrote: > > > Hi folks, > > > > > > > > > As what we discussed about page demotion for PMEM at LSF/MM, the demotion > > > should respect to the mempolicy and allowed me

Re: [HELP] How to get task_struct from mm

2019-05-31 Thread Yang Shi
On 5/30/19 11:41 PM, Michal Hocko wrote: On Thu 30-05-19 14:57:46, Yang Shi wrote: Hi folks, As what we discussed about page demotion for PMEM at LSF/MM, the demotion should respect to the mempolicy and allowed mems of the process which the page (anonymous page only for now) belongs to. cp

Re: [HELP] How to get task_struct from mm

2019-05-30 Thread Michal Hocko
On Thu 30-05-19 14:57:46, Yang Shi wrote: > Hi folks, > > > As what we discussed about page demotion for PMEM at LSF/MM, the demotion > should respect to the mempolicy and allowed mems of the process which the > page (anonymous page only for now) belongs to. cpusets memory mask (aka mems_allowed

Re: [HELP] How to get task_struct from mm

2019-05-30 Thread Yang Shi
On 5/30/19 2:57 PM, Yang Shi wrote: Hi folks, As what we discussed about page demotion for PMEM at LSF/MM, the demotion should respect to the mempolicy and allowed mems of the process which the page (anonymous page only for now) belongs to. The vma that the page is mapped to can be retr

[HELP] How to get task_struct from mm

2019-05-29 Thread Yang Shi
Hi folks, As what we discussed about page demotion for PMEM at LSF/MM, the demotion should respect to the mempolicy and allowed mems of the process which the page (anonymous page only for now) belongs to. The vma that the page is mapped to can be retrieved from rmap walk easily, but we nee