[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aa26006e-eec7-73f1-e111-6e2c2090d244@linux.alibaba.com>
Date: Thu, 30 May 2019 15:26:44 +0800
From: Yang Shi <yang.shi@...ux.alibaba.com>
To: Mel Gorman <mgorman@...hsingularity.net>,
Michal Hocko <mhocko@...e.com>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: "linux-mm@...ck.org" <linux-mm@...ck.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [HELP] How to get task_struct from mm
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 retrieved from rmap walk
> easily, but we need know the task_struct that the vma belongs to. It
> looks there is not such API, and container_of seems not work with
> pointer member.
>
>
> Any suggestion?
mm->owner is defined for CONFIG_MEMCG only, I'm wondering whether we can
extend this to !CONFIG_MEMCG case or not?
>
>
> Thanks,
>
> Yang
>
Powered by blists - more mailing lists