From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?546L6LSH?= Subject: Re: [PATCH 1/4] numa: introduce per-cgroup numa balancing locality, statistic Date: Fri, 12 Jul 2019 18:10:24 +0800 Message-ID: References: <209d247e-c1b2-3235-2722-dd7c1f896483@linux.alibaba.com> <60b59306-5e36-e587-9145-e90657daec41@linux.alibaba.com> <3ac9b43a-cc80-01be-0079-df008a71ce4b@linux.alibaba.com> <20190711134754.GD3402@hirez.programming.kicks-ass.net> <20190712075815.GN3402@hirez.programming.kicks-ass.net> <37474414-1a54-8e3a-60df-eb7e5e1cc1ed@linux.alibaba.com> <20190712094214.GR3402@hirez.programming.kicks-ass.net> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20190712094214.GR3402@hirez.programming.kicks-ass.net> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="utf-8" To: Peter Zijlstra Cc: hannes@cmpxchg.org, mhocko@kernel.org, vdavydov.dev@gmail.com, Ingo Molnar , linux-kernel@vger.kernel.org, linux-mm@kvack.org, mcgrof@kernel.org, keescook@chromium.org, linux-fsdevel@vger.kernel.org, cgroups@vger.kernel.org, Mel Gorman , riel@surriel.com On 2019/7/12 下午5:42, Peter Zijlstra wrote: > On Fri, Jul 12, 2019 at 05:11:25PM +0800, 王贇 wrote: >> >> >> On 2019/7/12 下午3:58, Peter Zijlstra wrote: >> [snip] >>>>> >>>>> Then our task t1 should be accounted to B (as you do), but also to A and >>>>> R. >>>> >>>> I get the point but not quite sure about this... >>>> >>>> Not like pages there are no hierarchical limitation on locality, also tasks >>> >>> You can use cpusets to affect that. >> >> Could you please give more detail on this? > > Documentation/cgroup-v1/cpusets.txt > > Look for mems_allowed. This is the attribute belong to cpuset cgroup isn't it? Forgive me but I have no idea on how to combined this with memory cgroup's locality hierarchical update... parent memory cgroup do not have influence on mems_allowed to it's children, correct? What about we just account the locality status of child memory group into it's ancestors? Regards, Michael Wang >