Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp909908pxb; Fri, 22 Jan 2021 02:15:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuPLkFV2C8w/h/90VPEcusRzBr6XufsUKHzeabZAFpHUizGADBGvfDC50CSuUDTKftVdXm X-Received: by 2002:a17:906:9616:: with SMTP id s22mr2525620ejx.270.1611310541214; Fri, 22 Jan 2021 02:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611310541; cv=none; d=google.com; s=arc-20160816; b=omC4ONMv8scH9Vv89Vxf0VEVLRifRssnfSWUXlQmwElBjd9IXI7wPLJy6bQQKYsPcF OmqS2ozUJPNcNEC+1y7rTrH2astGC085Xdx00Qxlg77TjNXos5BxMhw2aOT0rDgnXW0F hSVuKnkPrbYoETuHuF7QrmCBfpKh4cltVmq65BNwy1nBRgC27kkBkzxPmVszFhcvmYZQ Ow0oYQWBpZUhSSfASbVo0w0mN6gVY9vmBdc0Jfk4kTtsZ8CiqAEOC5f5WCkjn8dB3P4Q av1KHNV7f/FGkzVcT2kNR6fm9uKa9gJDf85kanVVeMq316yXa9eci29xRI7xWlTM/bzI i5Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=JVX19QHSzf/sMQ1vFcKwbx11LQc+zU7f9gUxs9EnuD0=; b=NOb+ybG7EIpnvZ1mqRfb5etr3byE9w4TSzDiOnUWsKPK8w3SnYJ9ijcwF0ppnswa/x qQbafw0qiTP1CvJzdlqxuWsiNccHGAW0ict3gKC2Mm0DJ0VVVpDU9mj3QKLOT80S4zWz W2nl1oPM443gNkyAYe7rNWT+RChNXOCMQSGvatZAWSKKe9TyhedjQtcIC7KHKsdwqrs3 nLn39APLI64FvY5r82fQmTpj+iVhnson9Q7J/tABVFCrdOSY6Lh52b++wwdabesIOSHu rAkppHQIrpE+g+nEM6vDwLWwad14Weg162gycF7Pqj/m3ygT5xAODlHroIF3lWQlXnAn VZog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si3383537edq.123.2021.01.22.02.15.16; Fri, 22 Jan 2021 02:15:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727821AbhAVKMO (ORCPT + 99 others); Fri, 22 Jan 2021 05:12:14 -0500 Received: from foss.arm.com ([217.140.110.172]:39312 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727226AbhAVKG3 (ORCPT ); Fri, 22 Jan 2021 05:06:29 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 46FE111D4; Fri, 22 Jan 2021 02:05:30 -0800 (PST) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C4A2B3F719; Fri, 22 Jan 2021 02:05:28 -0800 (PST) Subject: Re: 5.11-rc4+git: Shortest NUMA path spans too many nodes To: "Song Bao Hua (Barry Song)" , Valentin Schneider , Meelis Roos , LKML Cc: Peter Zijlstra , Vincent Guittot , Mel Gorman References: <3ec17983-7959-eccd-af25-400056a5877d@linux.ee> <8797fd78-4367-bc5c-3a35-43c544c745e4@linux.ee> <353d255769b6463c862993e2329a9a8d@hisilicon.com> From: Dietmar Eggemann Message-ID: <99ecee86-8d96-c1e2-5b38-8f3dfcc38bd1@arm.com> Date: Fri, 22 Jan 2021 11:05:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <353d255769b6463c862993e2329a9a8d@hisilicon.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/01/2021 22:17, Song Bao Hua (Barry Song) wrote: > > >> -----Original Message----- >> From: Dietmar Eggemann [mailto:dietmar.eggemann@arm.com] >> Sent: Friday, January 22, 2021 7:54 AM >> To: Valentin Schneider ; Meelis Roos >> ; LKML >> Cc: Peter Zijlstra ; Vincent Guittot >> ; Song Bao Hua (Barry Song) >> ; Mel Gorman >> Subject: Re: 5.11-rc4+git: Shortest NUMA path spans too many nodes >> >> On 21/01/2021 19:21, Valentin Schneider wrote: >>> On 21/01/21 19:39, Meelis Roos wrote: [...] >> # cat /sys/devices/system/node/node*/distance >> 10 12 12 14 14 14 14 16 >> 12 10 14 12 14 14 12 14 >> 12 14 10 14 12 12 14 14 >> 14 12 14 10 12 12 14 14 >> 14 14 12 12 10 14 12 14 >> 14 14 12 12 14 10 14 12 >> 14 12 14 14 12 14 10 12 >> 16 14 14 14 14 12 12 10 >> >> The '16' seems to be the culprit. How does such a topo look like? Maybe like this: _________ | | .-6 0 4-. | \ / \ / | | 1 2 | | \ \ | --7 3----5 | | |____|_| |_______| > > Once we get a topology like this: > > > +------+ +------+ +-------+ +------+ > | node | |node | | node | |node | > | +---------+ +--------+ +-------+ | > +------+ +------+ +-------+ +------+ > > We can reproduce this issue. > For example, every cpu with the below numa_distance can have > "groups don't span domain->span": > node 0 1 2 3 > 0: 10 12 20 22 > 1: 12 10 22 24 > 2: 20 22 10 12 > 3: 22 24 12 10 2 20 2 So this should look like: 1 --- 0 ---- 2 --- 3