Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3369679yba; Tue, 23 Apr 2019 02:34:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMNyrh5hyvJU5rySlgv3JU2Jz6icVs+Ln38Jib+8cvJv/a7DJuWtDdZpxhXwlQ/YC9Q7Hn X-Received: by 2002:aa7:9888:: with SMTP id r8mr25801337pfl.116.1556012092079; Tue, 23 Apr 2019 02:34:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556012092; cv=none; d=google.com; s=arc-20160816; b=y0F6xBtr11Yx1zQ+jBxn+A2tXNg1mVfl6HtdsWyQWRLeHoYK1uvpeQLBcPm18n0OHg 2Zx7gywAuAwp+aYHB346GymlGrIp+554lv62x4BNJKI7UeaOsKI2qeGrB1G8AdO4zOVO hmOI62zlKyaySKM7McuTiFFnV+e53QQ7FQLyRqbOL6/2/KyWNZ3TWHDX8hrMxzfwjAMg K6uNsKWLmUdoaxrpHCjZXyjJcPky/XjWVIkO5m78/jhGj9L/dfuFgKgaUXy//CtuVgIE 5pH8rDlwdv9cAXdsjf/5xyfQwc69z0pGJTVu0/0DVu5sM7MafvyGKTrJzRtZ0b3XwT4T dcGg== 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=axIop/PBPeP77k19mIr6V6k1tBKULWGYmjGtcNmtJVQ=; b=bS4fDGWsbMy9crgNKe3CTf+Fpgw+0519/iczeYt3tG+SZUl+QHxEQk5kCE3f5SQFg2 zZfc9mEO2RfYPM6EFpycmyIeSv2oP1/WduA+hCEQk1yR9PQlHqnSOgIfY86lqK1/9JN8 6pONuguVBYYx39Ud9Uc9oMaEs/5TougJ7VetPgNfNxr/+iac5+dtls1bWTTKUFJdG038 ZfKSD1Bn8X52IoaJBXhpNyuA9CW6KSD1N7UsNqDWlModZdiaUUKClp9Ad1+yDfggMXxk oAxZ/Lq7XiHLvblzui7NUq0l6JEe7Pj67KDWYdeEzxaAl04Zw4zSA2WYQT+OKVVvlDHD 94Eg== 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 z25si13926474pgv.442.2019.04.23.02.34.36; Tue, 23 Apr 2019 02:34:52 -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 S1727030AbfDWJd3 (ORCPT + 99 others); Tue, 23 Apr 2019 05:33:29 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:58341 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbfDWJd2 (ORCPT ); Tue, 23 Apr 2019 05:33:28 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04391;MF=yun.wang@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0TQ1iRYv_1556012005; Received: from testdeMacBook-Pro.local(mailfrom:yun.wang@linux.alibaba.com fp:SMTPD_---0TQ1iRYv_1556012005) by smtp.aliyun-inc.com(127.0.0.1); Tue, 23 Apr 2019 17:33:26 +0800 Subject: Re: [RFC PATCH 1/5] 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 References: <209d247e-c1b2-3235-2722-dd7c1f896483@linux.alibaba.com> <20190423084722.GD11158@hirez.programming.kicks-ass.net> From: =?UTF-8?B?546L6LSH?= Message-ID: Date: Tue, 23 Apr 2019 17:33:25 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190423084722.GD11158@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/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. Regards, Michael Wang >