Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp668305ybi; Fri, 12 Jul 2019 02:44:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxh/phKZThSoJ9MtTvpCT8MJxe/rXWuVLBUpW3rFYUkxHf9fT4jkhFekGMozXGW88oCbx5r X-Received: by 2002:a63:1e0b:: with SMTP id e11mr9031796pge.402.1562924677656; Fri, 12 Jul 2019 02:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562924677; cv=none; d=google.com; s=arc-20160816; b=ZQhJuCzhGUQAUS6i+oUFpy3IQXQkYX0Kra90s4QaD5Plvb/xN/Kez/Rs6q2B4DPCks TmGYMRsZhK3lyyP1uNSXX55EyrVyz8OZX/+QP8/HOo+c34+eOrLgbYVvaRp+h5re3lQu olifvYjs0DTDRFRd1YJ/IrlW0gaRJ9sxhFO/803S9Q3KKBvreDRuehES52F5tKF4y7lO GV2ILETB3bRO98xeHP9d8PbUH0bMAYHIdAGDM7LJ+keOg3D6nqc+rZiS6E01kb0BmFsf 4kGWrLihIlWT4OROvS1SRODLNj5TVM0rYxyN2OKulwZIms2q41bC7W1/gqbehz2rtKne eBZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8/S1+jX16TzxOOIxU/bRAzwTmHAX9u5kySICahCztRc=; b=HDkhJRMsrrx2zYTF7eaWd5CuNFX3gsLtUBxq/+WRP91EFqflA9JjMjoRSOJwznhr3c ImY06r1zykv5PrrA9iN67EKuqBPpSxP8l97wJgENEzw9NhSz6zk3wDknP1OskOiULsX1 jsbohu070PjMJ8lOJvMNE3b2LN8szFEYjeIO9UBhtd9qNQrJ460KpQG9n1uaIjLL0WZv +6Kvmt9AuChqDP5IVhYo2xRGcoo9YejPgJZpm507kFx9uNTieTRnbBLElkbRezGCJHf3 fx2un6/zP+4ddPdNTQ1N0ehav8ZIX0AlhUcGWK8ugjioIVNSrZaRk65plNPBFhTMS5VH S4lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=mSrNEGpr; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9si8175229pgt.473.2019.07.12.02.44.22; Fri, 12 Jul 2019 02:44:37 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=mSrNEGpr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726685AbfGLJma (ORCPT + 99 others); Fri, 12 Jul 2019 05:42:30 -0400 Received: from merlin.infradead.org ([205.233.59.134]:32904 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726025AbfGLJma (ORCPT ); Fri, 12 Jul 2019 05:42:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8/S1+jX16TzxOOIxU/bRAzwTmHAX9u5kySICahCztRc=; b=mSrNEGprNQlxAb5b94YQqMyPMz kO0qgKwAjdYbQbt4ZLUYljy7WNvo98DtdOjLMkwQcC+18PUw+zCus/8lHAlhzfenlvKk3/Z2vY4/9 poGaxdm1lKQXL+ObIt2v7JWeRaLtiqVQcLZdQ1GMpReUW8AmwLtxny/yVm2355jnSfECJcJqkElr0 efFJMK0rpeOmHiLR4LtJhRb00cGecEEyJHgZct4gLmv1Qhuko/MvaUi4iuh7hx96d+cEh7LTSKMrR vq7hEteI36agAuTFdorAWUAocaMJg+9QtIMY2HCGkgtIpARgexlahUx3JF76qIbmqIXKBArIUAa4D 0F/wsyBQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hls4F-0004Df-KT; Fri, 12 Jul 2019 09:42:15 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4236020120CB1; Fri, 12 Jul 2019 11:42:14 +0200 (CEST) Date: Fri, 12 Jul 2019 11:42:14 +0200 From: Peter Zijlstra To: =?utf-8?B?546L6LSH?= 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 Subject: Re: [PATCH 1/4] numa: introduce per-cgroup numa balancing locality, statistic Message-ID: <20190712094214.GR3402@hirez.programming.kicks-ass.net> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <37474414-1a54-8e3a-60df-eb7e5e1cc1ed@linux.alibaba.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.