[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <df6110a09cacc80ee1cbe905a71273a5f3953e16.camel@linux.intel.com>
Date: Thu, 07 Apr 2022 16:11:06 -0700
From: Tim Chen <tim.c.chen@...ux.intel.com>
To: Wei Xu <weixugc@...gle.com>
Cc: "Huang, Ying" <ying.huang@...el.com>,
Michal Hocko <mhocko@...e.com>,
Yosry Ahmed <yosryahmed@...gle.com>,
Johannes Weiner <hannes@...xchg.org>,
Shakeel Butt <shakeelb@...gle.com>,
Andrew Morton <akpm@...ux-foundation.org>,
David Rientjes <rientjes@...gle.com>,
Tejun Heo <tj@...nel.org>, Zefan Li <lizefan.x@...edance.com>,
Roman Gushchin <roman.gushchin@...ux.dev>,
Cgroups <cgroups@...r.kernel.org>,
"open list:DOCUMENTATION" <linux-doc@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux MM <linux-mm@...ck.org>,
Jonathan Corbet <corbet@....net>, Yu Zhao <yuzhao@...gle.com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Greg Thelen <gthelen@...gle.com>
Subject: Re: [PATCH resend] memcg: introduce per-memcg reclaim interface
On Thu, 2022-04-07 at 15:12 -0700, Wei Xu wrote:
>
> (resending in plain-text, sorry).
>
> memory.demote can work with any level of memory tiers if a nodemask
> argument (or a tier argument if there is a more-explicitly defined,
> userspace visible tiering representation) is provided. The semantics
> can be to demote X bytes from these nodes to their next tier.
>
We do need some kind of userspace visible tiering representation.
Will be nice if I can tell the memory type, nodemask of nodes in tier Y with
cat memory.tier_Y
> memory_dram/memory_pmem assumes the hardware for a particular memory
> tier, which is undesirable. For example, it is entirely possible that
> a slow memory tier is implemented by a lower-cost/lower-performance
> DDR device connected via CXL.mem, not by PMEM. It is better for this
> interface to speak in either the NUMA node abstraction or a new tier
> abstraction.
Just from the perspective of memory.reclaim and memory.demote, I think
they could work with nodemask. For ease of management,
some kind of abstraction of tier information like nodemask, memory type
and expected performance should be readily accessible by user space.
Tim
>
> It is also desirable to make this interface stateless, i.e. not to
> require the setting of memory_dram.reclaim_policy. Any policy can be
> specified as arguments to the request itself and should only affect
> that particular request.
>
> Wei
Powered by blists - more mailing lists