Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp229905ybi; Mon, 15 Jul 2019 19:53:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcFz3rllAgr60wLShiBzkybtnu2VvBOumJjYN6xr1fDFdanUCNnpH/F22OnzUenEd54mPt X-Received: by 2002:a63:1908:: with SMTP id z8mr29759545pgl.433.1563245586147; Mon, 15 Jul 2019 19:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563245586; cv=none; d=google.com; s=arc-20160816; b=UTJnGZhRbtAB9Wi5+9Cs7bAoHiGmyf25ZJufgYblw7K5SI2pMijgmD31rZK5LjALqD mrRC6m6bQJ19Y9bpTWyyggHgtmrGzfBnRdRIDz/MqPN6VyFXBtzHtzHQ6Ej/xedlZWIc 2QtUaVrPYoE0hhcecvd4IueHrvj13/+s5kco8eLD5mCQfZBy8ULYXdEicTEOXzOMTgwi EvoHTZkJxHotozzkY+RGaL2fD8dLP0TH9SnRRQ9qNLnVvN9fJkFsta454WVumt7w3Je9 8rkiSTG/J/tgBSGA9zAsmQbkQNzypVHtFelTLNErJKmEVUOQDSAprR8yYKLGkksHTuxM XYnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ji+RxCiqfOwJBxPZnDmtI1jJJX/5nQve591xbmY/5l0=; b=YlRxAplNP5ubk0gzLrKGj7hk2maQNMsKEBwOA7HceoStH3ivPbkp8Vbby4tTBolpZ2 NPp899Zqkj2gwzMbXOQl+eLsrV3jiwlK7BBblIJC7Z7qBUwlllc8+o7z4J1ZdSvDKvHy XFB8jJiE2jjJ23GaDG/tZYpB8bVOeNOG36RSoDvJ4iCDom6SGeAabWmP9Di5v1K7d2ZI t/Yw3+30RoZROkAJViTh9Kk4weHT5Mw3tBZVSmwiWcdOyD4nL2hXzAsBpQ0EqBJ/J0Cy 8j3j9HHvmX67sRli7LklhW60vmcCVfsZ+eaZ/ZICFdRfMLcqe//tVQROM+SFV8MwBysn 9pcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l143si2925867pfd.162.2019.07.15.19.52.15; Mon, 15 Jul 2019 19:53:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730877AbfGPCln (ORCPT + 99 others); Mon, 15 Jul 2019 22:41:43 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:35228 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729512AbfGPClm (ORCPT ); Mon, 15 Jul 2019 22:41:42 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R881e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=yun.wang@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0TX1EVd9_1563244897; Received: from testdeMacBook-Pro.local(mailfrom:yun.wang@linux.alibaba.com fp:SMTPD_---0TX1EVd9_1563244897) by smtp.aliyun-inc.com(127.0.0.1); Tue, 16 Jul 2019 10:41:37 +0800 Subject: Re: [PATCH 1/4] numa: introduce per-cgroup numa balancing locality, statistic To: =?UTF-8?Q?Michal_Koutn=c3=bd?= Cc: Peter Zijlstra , keescook@chromium.org, hannes@cmpxchg.org, vdavydov.dev@gmail.com, mcgrof@kernel.org, mhocko@kernel.org, linux-mm@kvack.org, Ingo Molnar , riel@surriel.com, Mel Gorman , cgroups@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org 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> <20190715121025.GN9035@blackbody.suse.cz> From: =?UTF-8?B?546L6LSH?= Message-ID: Date: Tue, 16 Jul 2019 10:41:36 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190715121025.GN9035@blackbody.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michal, Thx for the comments :-) On 2019/7/15 下午8:10, Michal Koutný wrote: > Hello Yun. > > On Fri, Jul 12, 2019 at 06:10:24PM +0800, 王贇 wrote: >> 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? > I'd recommend to look at the v2 of the cpuset controller that implements > the hierarchical behavior among configured memory node sets. Actually whatever the memory node sets or cpu allow sets is, it will take effect on task's behavior regarding memory location and cpu location, while the locality only care about the results rather than the sets. For example if we bind tasks to cpus of node 0 and memory allow only the node 1, by cgroup controller or madvise, then they will running on node 0 with all the memory on node 1, on each PF for numa balancing, the task will access page on node 1 from node 0 remotely, so the locality will always be 0. > > (My comment would better fit to > [PATCH 3/4] numa: introduce numa group per task group > IIUC, you could use cpuset controller to constraint memory nodes.) > > For the second part (accessing numa statistics, i.e. this patch), I > wonder wheter this information wouldn't be better presented under the > cpuset controller too. Yeah, we realized the cpu cgroup could be a better place to hold these new statistics, both locality and exectime are task's running behavior, related to memory location but not the memory behavior, will apply in next version. Regards, Michael Wang > > HTH, > Michal >