Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp695486ybi; Fri, 12 Jul 2019 03:11:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOCXbzWy0OVdoUQBYa7C1wSSExRY+RBSPgqe/vuTwjn/9WedKGauL/Wq58KDUcil6yDC1p X-Received: by 2002:a63:4b02:: with SMTP id y2mr9707060pga.135.1562926300050; Fri, 12 Jul 2019 03:11:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562926300; cv=none; d=google.com; s=arc-20160816; b=Cc0m8ilXpV5wesA+g2wEq58cXPB0MqSv1HHfZ1Wn55Chg3k0NW07AyLpOSVFs2hsK+ vW0BEFX5EOmlNcIBV1OZzJwZF0ojWP3dkaFttjks6AcRBueElUz8tu9R3CS4bL2qRfCo DCdq1NW5PnYsODYTMZnrRxslRvficIBCCE1tKXI1LSMgJGr8BhM0whTItesVDE2KLkay PEui9YUl+Ce4zpiqSRTXXmV1kb2YOcoS6A4MDHLMeu1RihQ5d/1Y6OO/xZSiaEYP3K/z A28ObWp9ASDHY5wd5LMyQ7D9fxBmBqrb4Lrad84HmcosUMHDDVmejAMgYs1NLfcAu9js IerQ== 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=REBvcJprToXHI3qdYqpmAjiRWd8w6Kmc0McC5wngh0E=; b=aXXFFj3eTpPstzARaQ3BIvH3xdYF3V0EvSDevimBS7uswnXt4T1MNwi6rjFKfetrAq dbTDlEoRwYRyFqq9ZRgcLzTskWvxSkBOF80eHG5JQxxi3qk1xblGxh6Gb6wlAXlWHvQB KzOwkNZTLA4Ck449mWs0KV75ftAivY081BnhqYKRBHPEipwwXLBGAB6qCHpbXy88YGjM O8Mmd85U0LjetEW78wfbF5TFbe64A01nUkD42PkOic8LwcP4/9pjrePZWPjGl4i7rT7y i0UPoWBkeEkftM6rZWmUhq95GFNx8DKU3mFFlyncoQk53rSqaIvHhip51ND/0SovcTbR +Gcw== 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 x13si7912705pgo.182.2019.07.12.03.11.24; Fri, 12 Jul 2019 03:11:40 -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 S1726710AbfGLKKd (ORCPT + 99 others); Fri, 12 Jul 2019 06:10:33 -0400 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:34277 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbfGLKKd (ORCPT ); Fri, 12 Jul 2019 06:10:33 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R681e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07486;MF=yun.wang@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0TWhPUDd_1562926224; Received: from testdeMacBook-Pro.local(mailfrom:yun.wang@linux.alibaba.com fp:SMTPD_---0TWhPUDd_1562926224) by smtp.aliyun-inc.com(127.0.0.1); Fri, 12 Jul 2019 18:10:25 +0800 Subject: Re: [PATCH 1/4] numa: introduce per-cgroup numa balancing locality, statistic 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 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> From: =?UTF-8?B?546L6LSH?= Message-ID: Date: Fri, 12 Jul 2019 18:10:24 +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: <20190712094214.GR3402@hirez.programming.kicks-ass.net> 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 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 >