Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1960495rwd; Fri, 2 Jun 2023 02:45:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NewrpefXR3dI7X6Z/HcW3DnGmnQt48tM+8yy6l4R3jmxa9pJUPlb9D+Kvjan1XoKZdQ5R X-Received: by 2002:a05:6a00:856:b0:64b:f03b:2642 with SMTP id q22-20020a056a00085600b0064bf03b2642mr14359169pfk.23.1685699113414; Fri, 02 Jun 2023 02:45:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685699113; cv=pass; d=google.com; s=arc-20160816; b=Z5ceVyYFfDlP9OfVxlGZ+nustuCLZliLdeZMkowPkOhHaKSs4vKFowYn0QBgAf0Ebd XEjDWTQpl6o0zrj+GmR06KXruzciD/+Gxc2qks6K9ac8krEj9xXacy3yhMk5JwhrAWAo /j+Mh/1JdmCf+FRoboC5prmerFzZcW8GsOYsNPip60fHJG0PV4rYHJifq93YzH+pu+ih KFeeaaM2E1XCHTkASONp1bN81MT9aE/5/9HGBgJZckBa9HoXTwB4uMf6oVGCbtz5QO9E ozEo8S0LYpsf2HkAtFGtl6ARKgjgickATUNKVbmqylZJeiYjYjHCM8tggZscuDMbfItG UbqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=R88IspOr4eaHIRYKxaCHdLZUMFmAHWJWLHEd1TrtsnU=; b=K9Fu2P/izEndqo4SAldd7pAGD/2yZwuhajcacJFoaHnUYrc4sqo5ytXTtgx2Mo09+9 SVJXh03O0QMsuLAANvykQ8kzbp+wgImSq+EuCq4ZAwHTjszghmw9ODK5oVEEWYzy91kM lOgPBoN7rq8yCja0R7SAlzqQ9db8Sndobd02Uk5t5rigsK997/F2QhfTgmojB+oleImC Gz3ft+6L7Bsw0BRVTMj/ItzdJsb7MK+vR2nq9HQNRsKKvgqU2dkruFcXZELLIn4yQJjA msyNXbpcJv6iK5dvGS/inOtEGOcTkDPYfvYghW2VFj2yYxZK7Gaj3pSwKGZM+SDKafBV 8i7w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=dIOyv9Kh; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x18-20020aa78f12000000b0064d7336c80dsi432710pfr.385.2023.06.02.02.45.01; Fri, 02 Jun 2023 02:45:13 -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; dkim=pass header.i=@amd.com header.s=selector1 header.b=dIOyv9Kh; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234762AbjFBJWk (ORCPT + 99 others); Fri, 2 Jun 2023 05:22:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234682AbjFBJWD (ORCPT ); Fri, 2 Jun 2023 05:22:03 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on20613.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e88::613]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 027D818D; Fri, 2 Jun 2023 02:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SGv9JACjypeQo4ma3PZaGyuGns48z7qeHsFWTV2ySiQm1tq3ee8dhjb98Wu33LGKxxoROJKz1O6xJ2r5Qw4qy6XqAeSnBOkCg5Px/zTPxFGIOACxQbIlL+AhsSIl6HnFW2zBnRhmSPyJXmL3+trMXfpOQPEUAVSfoRpgZMos4UB3HjxgxroP99FUHZRvlxQu77XYGgChNfuBx14kAI8yBGozljgpVa1ZhL1LF4F78aciWPEHQNG9ZwJUJxUm1v+7lhYxDACWMwEJoVcvRZdeIl1vaSsqqGnz+yQ9pIFGpL8C1X8/O2kEGGyZleRMeCyCAjMeuFHaND7foTauv6bIgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=R88IspOr4eaHIRYKxaCHdLZUMFmAHWJWLHEd1TrtsnU=; b=Jn6kKzJPRyjCaF6yUKyY9mVCDPKvnpV3C6/HcWewVRPBeHFaHgXiHeXa1WBIevl8cRSEr6uUhsffqbUQh4t23eG6tsOa5K4VhIRUKDdXDqvgLCZl+dsKBs91GJTy+/B6RLCEJqVJj4OspAriCWEJlRDLnxtZZrw+b2tFlvrax6/j0DYV1dAuBnQkcAnR67x1oiu8/Mkoo65bhRBF+GOKkcIGGsdY++jSISJbMLPFDxaM4KRB/67AGW05EFsP0qPowYM70cm7udC9a71VmjE19uDVKiTdDCx7w331j9yKwCwEJP9MgWOTDDKiTK92TwpDfqne5Ox+Dd1JpKas71B8JA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=R88IspOr4eaHIRYKxaCHdLZUMFmAHWJWLHEd1TrtsnU=; b=dIOyv9KhkAs3yucQvWG4EfUpyDouyGfhi+VFPNp+hY1LdpifhMMMifD5k4qRX2DHLYwsmkZGRFZljDKLSI5ZrecvB6gA/Xg2s1GyJtpJoBhk/KLJWQ+dabdf4IrPZ/IfUO365HnZ5XwjoTPxcd470lv7eZ9GL7/XH7qjk4a3kAA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MW2PR12MB2379.namprd12.prod.outlook.com (2603:10b6:907:9::24) by MN2PR12MB4456.namprd12.prod.outlook.com (2603:10b6:208:266::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.23; Fri, 2 Jun 2023 09:20:05 +0000 Received: from MW2PR12MB2379.namprd12.prod.outlook.com ([fe80::b197:512:a4ca:6e9c]) by MW2PR12MB2379.namprd12.prod.outlook.com ([fe80::b197:512:a4ca:6e9c%4]) with mapi id 15.20.6433.022; Fri, 2 Jun 2023 09:20:05 +0000 Message-ID: <8b8b3b52-be6b-3978-4a4c-b72323cf2bd8@amd.com> Date: Fri, 2 Jun 2023 14:49:56 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [tip: sched/core] sched/fair: Multi-LLC select_idle_sibling() Content-Language: en-US To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, Tejun Heo , x86@kernel.org, Gautham Shenoy References: <168553468754.404.2298362895524875073.tip-bot2@tip-bot2> <3de5c24f-6437-f21b-ed61-76b86a199e8c@amd.com> <20230601111326.GV4253@hirez.programming.kicks-ass.net> <20230601115643.GX4253@hirez.programming.kicks-ass.net> <20230601120001.GJ38236@hirez.programming.kicks-ass.net> <20230601144706.GA559454@hirez.programming.kicks-ass.net> <7bee9860-2d2a-067b-adea-04012516095c@amd.com> <20230602065438.GB620383@hirez.programming.kicks-ass.net> From: K Prateek Nayak In-Reply-To: <20230602065438.GB620383@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN3PR01CA0116.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:96::6) To MW2PR12MB2379.namprd12.prod.outlook.com (2603:10b6:907:9::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW2PR12MB2379:EE_|MN2PR12MB4456:EE_ X-MS-Office365-Filtering-Correlation-Id: 6842006d-9881-46aa-c7cf-08db634a8d28 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jWSezlL63Xbnb0zwXOvSAlEPXbBPBQw4TcxfmAcapQzthbIGh8Uho8pI5E2NZRbe8oxL6GIhE8n9eL0Z8PSLG/KFAhWEd3+Lh61H0GvjUGVqaif2QNmSMkvmt3EoccTO0COLtFci1YNXb6qaBzfptEsdc5McBAnR5zlUryQFffcfpy9+q5po6kJoSTyEQHhn8eP+h4uPGzaqQkjefTvLS7ECw/5OR7F2VLhD6igpMSP6Omu6zeT3Vnj/9uLIjmMWVOiSVjaRB7ekCi1jB9zGvge1E7f2lH13SfwJ9+3YJ4KWHwOPzNenCrXpWJ0FJBtUNyF4rsXh4Vv7TQE9pPgS5cYkKUyLav/jykCuW7hlZsHXap9aRnEIs+o0q+/id4uGsTJ+WinqwRCNvA/9kDYtFkU4ZpL3b/7kzFxQroJNNbEM90TXSCswuoqobx8LeIZY23RC9grJLIhvySfbGh+HZrCNpgf/qtJbUJKAJz5Nb7IzbRtLmHC4qDaPtzhMOTyN6pyQ9K+cm8JdyQFcOyUW+UpEuEwqdDbzhcXhDrjo4ADWbsaHjX6gYGNO0bAhmXDoEczwVU8o39HCISVLeqp0/dD8jAYq0TTnIcx5Nk5dPFPdUV6Obv+/0CUIx2sqeP1IqbcNRPbHJ5ONmZzTHn7WiA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW2PR12MB2379.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(136003)(376002)(366004)(39860400002)(396003)(451199021)(66946007)(2616005)(83380400001)(186003)(66556008)(4326008)(6916009)(66476007)(6486002)(316002)(478600001)(6666004)(54906003)(8676002)(2906002)(6512007)(6506007)(53546011)(5660300002)(26005)(8936002)(41300700001)(38100700002)(36756003)(31696002)(86362001)(66899021)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?R2hSMEo0Y05UZEcwdWJ5Wlc3dlBsemtsZFBWeEpUZ2hGamxsdzNMOUxpRVZD?= =?utf-8?B?aVpsSlhoWWZrRlFPTnV3em53TWp5YzhlR2o1RWRFWHhvb0ZGWWhseXNOS3VE?= =?utf-8?B?Tk5UbzkzVk03RHUzRklST092RW93amhrR0s2dVRIS2I3RHZXQ1VBYVJLZ1Bk?= =?utf-8?B?V2h5N3BvWk4wTkowU1FvZVIrdnl5RjF5ZWJwSmxNbFdDS0RlbU1wNU9uVXNX?= =?utf-8?B?TWt1VGtGSWI1RDRXdUZKaEtmbDltMGlTQ0RJRkhyZnR0V0VnR3VBbDJKSmxi?= =?utf-8?B?MGJoYmRLYjdvWlI1ekRRY05qZ0lRbHpKVXpObXBWdDAxSmVOeENQTU16MGZP?= =?utf-8?B?T2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g: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6842006d-9881-46aa-c7cf-08db634a8d28 X-MS-Exchange-CrossTenant-AuthSource: MW2PR12MB2379.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2023 09:20:05.3477 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mt1WK1WFGOn9mFT4lyaTbvP//3AY9pwXM3++pnxAlV7adraG0dd2OyTKgr1b5QA/6Jku0K+vlXnAdaxIYSg1kg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4456 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 Hello Peter, On 6/2/2023 12:24 PM, Peter Zijlstra wrote: > On Fri, Jun 02, 2023 at 10:43:37AM +0530, K Prateek Nayak wrote: >> Grouping near-CCX for the offerings that do not have 2CCX per CCD will >> prevent degenration and limit the search scope yes. Here is what I'll >> do, let me check if limiting search scope helps first, and then start >> fiddling with the topology. How does that sound? > > So my preference would be the topology based solution, I agree that is much cleaner but workloads rarely like clean solutions nowadays :) > since the search > limit is random magic numbers that happen to work for 'your' machine but > who knows what it'll do for some other poor architecture that happens to > trip this. > > That said; verifying the limit helps at all is of course a good start, > because if it doesn't then the topology thing will likely also not help > much. Queued some tests on NPS2/4, and also with the "nr = 4" heuristic. I'll share the results once they finish. -- Thanks and Regards, Prateek