Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3379837yba; Tue, 23 Apr 2019 02:47:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmcqMVApCQJfG11pFL1oAuNOjXqCBNuli8WclPQcNXY0WkRSH7fVJq22VS/c7sxngc+HcI X-Received: by 2002:a17:902:7b96:: with SMTP id w22mr25983590pll.28.1556012875012; Tue, 23 Apr 2019 02:47:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556012875; cv=none; d=google.com; s=arc-20160816; b=OH1smigyWXuy7Swd3rVEjgTFoNmmd2jiTjvp35B2QHv/K/MjCGtCPERBuZT8VOa7Eq FnLERqtto97TsEGXxjJ32XTzlBbAnQdaGl+BbgKOThSFH8XJougg5Rmd2VsmZoaorrgx 6pYCJUqZ4H1wEQRwYQJ5RUq27YjazyV/sMVlGvcvMzylA9mRpjrr5c0gA5p92bmbCQhE 0iIJILJyDpE/eeZntf9zIWyrEYz843BRlXCTtzwuJJK7LIp2mdEnouYnkxuLGqiK6kv1 MFmu2UkpNDPAt8MQ3vE9X5mprgjbwx43QUd/CYc3ckZJJRgY9eQLGwNof2Z9LFh0B5OD NFNQ== 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=ZDorSYmy5pifOTHN5/R3ArDCdlVxn3mnwyoVkmNtAtk=; b=Np5FSDHZTrThQul2LzUvGYM9x4VdJhxVOkX3W+KwjSP8/nsM/tsZeAjnaT6oRIIzr4 gMCNYg9Ah7z9MqtcqTGwFCSvcGwAqr7dgopCFjMty3wraNiXbGgQa3Dbx2n8QuZSfYuP xDrTXaGLVcCmCfmwRf9BmEuAnC7oauTExfnLx7siSPzqzURpkfQX/uYGyf7iDC2PMfd/ HgxiO6fIorVXpIhEXCQ8hBxm4JuF5XwF54KHJpRCOj9oJ62S3bAfWehPmXwPZVz9EWJx UG61crss5+JYw2bEOVGA/1DbdOGFAct9PTQcXAWZP58/TmSNmcl0otEBkvdFtmZGUILY xw+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=VhCDJgQB; 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 a6si398753pfi.72.2019.04.23.02.47.39; Tue, 23 Apr 2019 02:47:54 -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=VhCDJgQB; 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 S1727044AbfDWJqY (ORCPT + 99 others); Tue, 23 Apr 2019 05:46:24 -0400 Received: from merlin.infradead.org ([205.233.59.134]:47108 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbfDWJqY (ORCPT ); Tue, 23 Apr 2019 05:46:24 -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=ZDorSYmy5pifOTHN5/R3ArDCdlVxn3mnwyoVkmNtAtk=; b=VhCDJgQBiA236vNR4anmbsAMXL iKoz13puLU3Kc/59ZTI7P9DnUr9OHwD93GcjQh9E7uYv8wbd0wqaokjsOKy3vOOuUWmExvfTYAbT4 6vxpv6oPbmJ21DxtsSrcmPKLRZ+y7jBBaEhdJPeNSTbWD7z3aGOkwcyI8YRXdoapScIPbHdU/XXEk 1BPrb0+kAYTfnvJKEgbWV7hV6BLNeWCzHqaMdOcf7P761H3Csf+VD39hheTQ8GDXFNYbmlUOSPHsN 9Yx2NlSnYMVNsvSH6uieX/wAQBElNwObTUe5sQtnAyblmtpOfYK9NmQrAXyf3V9d89q84UF0RfFou 9hsFg8pQ==; 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.90_1 #2 (Red Hat Linux)) id 1hIs07-0001ze-Rv; Tue, 23 Apr 2019 09:46:08 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 75A5A29BB5057; Tue, 23 Apr 2019 11:46:06 +0200 (CEST) Date: Tue, 23 Apr 2019 11:46:06 +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 Subject: Re: [RFC PATCH 1/5] numa: introduce per-cgroup numa balancing locality, statistic Message-ID: <20190423094606.GK11158@hirez.programming.kicks-ass.net> References: <209d247e-c1b2-3235-2722-dd7c1f896483@linux.alibaba.com> <20190423084722.GD11158@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Tue, Apr 23, 2019 at 05:33:25PM +0800, 王贇 wrote: > > > On 2019/4/23 下午4:47, Peter Zijlstra wrote: > > On Mon, Apr 22, 2019 at 10:11:24AM +0800, 王贇 wrote: > >> + p->numa_faults_locality[mem_node == numa_node_id() ? 4 : 3] += pages; > > > > Possibly: 3 + !!(mem_node = numa_node_id()), generates better code. > > Sounds good~ will apply in next version. Well, check code gen first, of course.