From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755153AbcH0Kb3 (ORCPT ); Sat, 27 Aug 2016 06:31:29 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:27721 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752533AbcH0Kb1 (ORCPT ); Sat, 27 Aug 2016 06:31:27 -0400 Subject: Re: [PATCH v7 10/14] arm64/numa: define numa_distance as array to simplify code To: Will Deacon References: <1472024693-12912-1-git-send-email-thunder.leizhen@huawei.com> <1472024693-12912-11-git-send-email-thunder.leizhen@huawei.com> <20160826152915.GH30302@arm.com> CC: Catalin Marinas , linux-arm-kernel , linux-kernel , Rob Herring , "Frank Rowand" , devicetree , Zefan Li , Xinwei Hu , Tianhong Ding , Hanjun Guo From: "Leizhen (ThunderTown)" Message-ID: <57C16B88.7080500@huawei.com> Date: Sat, 27 Aug 2016 18:29:28 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160826152915.GH30302@arm.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.23.164] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020202.57C16B91.0088,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 0539c96d4c02a53570aa59f279d438d1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016/8/26 23:29, Will Deacon wrote: > On Wed, Aug 24, 2016 at 03:44:49PM +0800, Zhen Lei wrote: >> 1. MAX_NUMNODES is base on CONFIG_NODES_SHIFT, the default value of the >> latter is very small now. >> 2. Suppose the default value of MAX_NUMNODES is enlarged to 64, so the >> size of numa_distance is 4K, it's still acceptable if run the Image >> on other processors. >> 3. It will make function __node_distance quicker than before. >> >> Signed-off-by: Zhen Lei >> --- >> arch/arm64/include/asm/numa.h | 1 - >> arch/arm64/mm/numa.c | 74 +++---------------------------------------- >> 2 files changed, 5 insertions(+), 70 deletions(-) > > I fail to see the advantages of this patch. Do you have some compelling > performance figures or something? We can only put numa_distance_cnt on one node, so for the cpus of other nodes to access it should spend more time. I have not tested how many can be improved yet. I will try to get some data next week. > > Will > > . >