Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1277217rwl; Fri, 31 Mar 2023 08:57:46 -0700 (PDT) X-Google-Smtp-Source: AKy350a672mvbQqhknIaYVdLdTcTNg7NuqaPrFWlODVeoCPUqZ9kJH0o0O8UNXngF3ed0LWYUfwb X-Received: by 2002:a17:90a:284f:b0:237:47b0:30d3 with SMTP id p15-20020a17090a284f00b0023747b030d3mr6082430pjf.4.1680278265789; Fri, 31 Mar 2023 08:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680278265; cv=none; d=google.com; s=arc-20160816; b=btZAAb+4qnt62F3uKtcKbvz+kz75GszU0Odn85bEbTa69xufPU9l8QJXqswPIeLNxt q4hwwkhJosNb9GtUgwh0bC5ptuG4GJt5aqy++f2BL6aqmw6JxJU5PR9/wT3fNV2EMMJa jEiCVRU5RcpZAFCI5MUn56Ml66NfAFLVqoON8E3tXrql91oXORMQBvnNczCA5IsNhglg puB/JUCiI1+ziFd4zu0LK+woMcrGiZBP+06cQu824jFRu6El0fa0t3HMYLMDKV+Irifj eFX95uO31e+0vH9UU1KwUlW8QC4eiIEcfCOwAF2xI7tKQZQc79S5pJt3xuIEyfJ1U5WT Z11Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=wEQjSd0af3IMZDn5JmPInEPkKQDfcfCp5w5MiarbqiY=; b=XiSHgj9UO+mJSgOJZC4HLcncL+R9G9eUMhhevxDBShNbKqgo84MRsxzjs3ve2xL+7t VL6aCowZuXkmjFZKqCruUryGY2rHiOcgiLBFX1gytFqNp58/5V0CuVC9mTOV98n3vMSL gQu9riXJqIjGNfAN8ruF+6jQn8AV/DqBBpenURukSzXzpiHAx8xAK3GmWDkpqAn8q3up laOVSKsC1MuDeyClSrTA7LNL9RKcfxlvnTQb4Xq1Ca3TzVFtzizexQiRWs4KLa8i3hXg LBk6ShAZaSPgcyGus2ylmbSSQKmn94VKibw1ZamqW6tbyLDXcPFhVcNx1eQdJjKHzDAz 1bNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m17-20020a63ed51000000b00512fab2e9casi2725122pgk.463.2023.03.31.08.57.33; Fri, 31 Mar 2023 08:57:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232671AbjCaPsx (ORCPT + 99 others); Fri, 31 Mar 2023 11:48:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232901AbjCaPst (ORCPT ); Fri, 31 Mar 2023 11:48:49 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 00C692032D for ; Fri, 31 Mar 2023 08:48:24 -0700 (PDT) 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 A96A416F2; Fri, 31 Mar 2023 08:49:08 -0700 (PDT) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0D7083F6C4; Fri, 31 Mar 2023 08:48:21 -0700 (PDT) Message-ID: <7360f190-784c-8e49-7b3c-bea28e0456d9@arm.com> Date: Fri, 31 Mar 2023 17:48:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [RFC PATCH] sched/fair: Make tg->load_avg per node Content-Language: en-US To: Aaron Lu , Daniel Jordan Cc: Peter Zijlstra , Ingo Molnar , Juri Lelli , Vincent Guittot , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Tim Chen , Nitin Tekchandani , Waiman Long , Yu Chen , linux-kernel@vger.kernel.org References: <20230327053955.GA570404@ziqianlu-desk2> <943d44f7-1fa9-8545-dc1d-890e4dd20854@arm.com> <20230328125624.GA6130@ziqianlu-desk2> <76939bf6-1d9d-5f8f-f15c-f03b2322d684@arm.com> <20230329135455.GA108864@ziqianlu-desk2> <20230330174557.m6jsgb6hsni4mxwq@parnassus.localdomain> <20230330195157.afbqtusnnbnvtlyz@parnassus.localdomain> <20230331040609.GA184843@ziqianlu-desk2> From: Dietmar Eggemann In-Reply-To: <20230331040609.GA184843@ziqianlu-desk2> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/03/2023 06:06, Aaron Lu wrote: > Hi Daniel, > > Thanks for taking a look. > > On Thu, Mar 30, 2023 at 03:51:57PM -0400, Daniel Jordan wrote: >> On Thu, Mar 30, 2023 at 01:46:02PM -0400, Daniel Jordan wrote: >>> Hi Aaron, >>> >>> On Wed, Mar 29, 2023 at 09:54:55PM +0800, Aaron Lu wrote: >>>> On Wed, Mar 29, 2023 at 02:36:44PM +0200, Dietmar Eggemann wrote: >>>>> On 28/03/2023 14:56, Aaron Lu wrote: >>>>>> On Tue, Mar 28, 2023 at 02:09:39PM +0200, Dietmar Eggemann wrote: >>>>>>> On 27/03/2023 07:39, Aaron Lu wrote: [...] >>> AMD EPYC 7J13 64-Core Processor >>> 2 sockets * 64 cores * 2 threads = 256 CPUs > > I have a vague memory AMD machine has a smaller LLC and cpus belonging > to the same LLC is also not many, 8-16? > > I tend to think cpu number of LLC play a role here since that's the > domain where idle cpu is searched on task wake up time. > >>> >>> sysbench: nr_threads=256 >>> >>> All observability data was taken at one minute in and using one tool at >>> a time. >>> >>> @migrations[1]: 1113 >>> @migrations[0]: 6152 >>> @wakeups[1]: 8871744 >>> @wakeups[0]: 9773321 Just a thought: Could the different behaviour come from different CPU numbering schemes (consecutive/alternate)? (1) My Arm server: numactl -H available: 4 nodes (0-3) node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 node 1 cpus: 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 node 2 cpus: 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 node 3 cpus: 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 (2) Intel(R) Xeon(R) Silver 4314 $ numactl -H available: 2 nodes (0-1) node 0 cpus: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 node 1 cpus: 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 [...]