Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3334245yba; Tue, 23 Apr 2019 01:48:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwYgSJzWFCKrmuygbnL029O4Etp6chEGe1zs2NC9haq8lmokVazC/I76LY7M81WG0EK+cW X-Received: by 2002:a63:84c7:: with SMTP id k190mr23433589pgd.255.1556009339823; Tue, 23 Apr 2019 01:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556009339; cv=none; d=google.com; s=arc-20160816; b=lwrO5ZDGAVUwSR+o8YnSF1xnRc5FZBsstl5bTe1dVZRVGZ1kslJxUU+C9OLwJjEYsE Yo5cX61NE+CUmMxeNfNAujoohh6gONvqZyA+xl72L4h+nhIkYvo7xnu5YTiJedajagXt d63ZRvy5b4WsCdRPdsUQDWZEBUsdFJdXT2yjePbm+bd4ASrZbGcxeY8y4B6vLV66lPxh 7bPdaezezC11eDSs129cFyjsCHxiuBbUt/B4pgobHMJfKFL4k1rdqqURRJ14h66djvN6 OWF8ddQB3BSOkeRU8wocU23CRm1JIqQEVjFVlpRmDhFODixDbgj8M8O3wYNyRfpeM8v3 NOIA== 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=dynh9I705ZiILXgmyOl+SyaOHisQmGgJs3EbSjjJDvE=; b=a7hZ/PKr3K26s5ajkEzhdAm4MmdQQH2iUWct9BILE+ofQZktprJexD3LQcGh/AWEVZ eRdEikdDd4Qt7zMlF5zl6D9roRcucILqsHrLbQV/rcKBOa08DwIweJtuyDLg9vWwkalM OwY5iVUHID3tsn+qQsirTqGq+bMaZgc5NVPHQbdXup/gkOK2NpJLezHAIo8Gj1hxdgFX ERAJg7J9p5F7Aelc1eiYG33kg7AoUpgqO3F/HZoylZLVBMUDyVRUsDgn9gxc2tOHeyS3 tTLCX+iRqYDh41vfBUQ+c8unlGB07tQTGnUT/tVYOBkPpgH/8YX/caHgtSzixTXcl3g7 T1dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Bo0OHQoT; 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 b40si15634002pla.277.2019.04.23.01.48.44; Tue, 23 Apr 2019 01:48:59 -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=Bo0OHQoT; 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 S1726747AbfDWIr3 (ORCPT + 99 others); Tue, 23 Apr 2019 04:47:29 -0400 Received: from merlin.infradead.org ([205.233.59.134]:46458 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbfDWIr3 (ORCPT ); Tue, 23 Apr 2019 04:47:29 -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=dynh9I705ZiILXgmyOl+SyaOHisQmGgJs3EbSjjJDvE=; b=Bo0OHQoTLJzkglO2o5oz0h0Bbl x+cYSL2ncm4+gW92HkUi/vFcT8Ephg6JndFeHZ4jepBHL1I/i5XJzaHKyHRRWn74a4zMEY1JO1Xmg LygsMQDvpnE0rv9DJI0VZylMSzcLlLlMLL/KivEnDeY2tjAPbHSBGmMCyIltB/AL4PckF1ZIEC4iO LUPkxoyinn88R4YyIbdTmtRbcnnrGprnEWBMgq0jNfGn4UsWhyo1/ZeoR1w5TyzEx+qpdTZvknd44 btwBiylEjC2zRgoOEzthn8/ITQy5MpT8ovFl+YZiigLRlg/fF/rxDc5BMrg8kFo2o+ZtAtkrYK/YF DMGv5OdQ==; 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 1hIr5H-0001FZ-M5; Tue, 23 Apr 2019 08:47:24 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7277729B47DC9; Tue, 23 Apr 2019 10:47:22 +0200 (CEST) Date: Tue, 23 Apr 2019 10:47:22 +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: <20190423084722.GD11158@hirez.programming.kicks-ass.net> References: <209d247e-c1b2-3235-2722-dd7c1f896483@linux.alibaba.com> 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 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.