Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2485631rwb; Thu, 29 Sep 2022 10:46:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Y8PnDSDcSrX1RstPi+IvNgvkyNl8g94RGwBcTVz9OAhEZKGJfv25y6TVP5wN57b4UWIEQ X-Received: by 2002:a17:90b:4c8f:b0:202:bcbb:1984 with SMTP id my15-20020a17090b4c8f00b00202bcbb1984mr17224374pjb.64.1664473590810; Thu, 29 Sep 2022 10:46:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664473590; cv=pass; d=google.com; s=arc-20160816; b=qMYg3pfSIpHoHYWf9aFxDqb5hIAHbn3U9rM4typoSctPmFgv5/zmoqzZFRuCYrBxLs Mv6lFBQmIVaps7+xLwj7mdSEb/EF/j0Q3R3A/p2R8RcoLBvbfHuwC5cQPItGClV57kQN AF2lSirleSANayFDAqVdNH0rmDXk0UC2it8C8zJA2xcQOU1i2glmFqJhtg6yBFKAulFf mr4D+E5576qaKL79g9GirgYC8Wc+tlnFoLidgJ5wF0Iwjk21p0ttItIgZSyGeCRPwBlh QJKva02vyvQzhFFq8H/9rm7qOXiEzFgH+MUKT6K1OXq7w8V/uW8V914y62cBiDDkk6RK wNOw== 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=lfiU9pWkv1C+YEzB+FI+gCwhM/K90Js4sP3DL42050s=; b=yETWArZX+QU+otxEnxKlKIuh/loUYthmxmNWlWBpXHY5q9cYh9/jCL5IGeIxzp0ZYn EBNpNuHSVXXHlH195VjJJPyTIgis7aaQIOZLv2FhtG8E9U6kwPFjFDSMlY3BeiEA5h4r vqEEuCIleVkfM2pRBcdLMe1jiBtmgG9tSqGv14TAiLeIq6ZrHGRkiCUeKRFY2hdxTlri X8Rc/CKQzU2DPO/vZ4TYB5S9vce/IGETYFay8vS5+EWOuMo8KEk/mW5FtKz1tpoCV2sr FQ1Cnw/NaTCpGqvY+J67AjXkIzi7TiANLUgBqICh696vZ9UIEKJvg/rEahQCLjHzs7yQ qQXg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=uZtSR5Qf; 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 e13-20020a056a001a8d00b0053abdfb0228si7444960pfv.338.2022.09.29.10.46.19; Thu, 29 Sep 2022 10:46:30 -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=uZtSR5Qf; 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 S234299AbiI2RfQ (ORCPT + 99 others); Thu, 29 Sep 2022 13:35:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230341AbiI2RfP (ORCPT ); Thu, 29 Sep 2022 13:35:15 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2086.outbound.protection.outlook.com [40.107.223.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94A9B7A52F for ; Thu, 29 Sep 2022 10:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GARE1IJqSzVGN4SfIySnpXimgvFQtZLEE3727bPgnctm7I2zCITuE9+hejbB5e3GtBhf6/NEvcheenFu3nW3g8ziCUKBD7kt0lFLXGTVTutMY3KFAyI4+OwIWKTUoTwjhmvewtXB/b0ddkT29EWZkV14QSs8OkzCIL5l8Xhs5uRvkEUc4R7SWKOOsT8Fppk8kMt+zJLOrwLLeAYwB3wa7VSiCiS59AqPTGCly9SnELwM3DN8GRHZXAc7L+TXlK0O5Dz7BZJTyiGNKaqM1U0JW4ZnRjujOg+4H5E8J+PABakjlA8YEJu45PvOVKtxU+JEGjEGvO7PQQi+XR9G/rDB9Q== 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=lfiU9pWkv1C+YEzB+FI+gCwhM/K90Js4sP3DL42050s=; b=Q6DmAly/B+ldK7fgsFL/+R2DeNv+rGhjS3Za+fJf1dRSJ0zp0LtZ+X08znlHZa6kK+wpCBABDVw2sFUrX+jWe67XIJBX9xjmCVKctgarIePmlotWtYDM9n8lHZLRNkvXHaagRPubaWcqSf3Z8AsL7GRf9vzmHXz843/dtFdiopoZHOJBWtEj5K3PcimUxTwE3Lannu/WJwNvGb5dYW2157UmzS5SmoYIuzvQAmygigJzLDhX1wwdooFdZaZYIbclbrKxeT3gNKSWpNxH3KwPiBeIOKHepiqquGTTukiwbqNhaqGb8/koSfPG3mbIHoNkr8dCNmChrCXPYaUxT9FumA== 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=lfiU9pWkv1C+YEzB+FI+gCwhM/K90Js4sP3DL42050s=; b=uZtSR5QfVxn3BZrjyYTGJjUKdLFBwMC9oJ2gq4Wlmrouc2ZK3kAXJsWDAtH/JD2RgNp+UXfZ5qnZdqHcxfa5fFk+gGML7i+YCeQPf2+aN4sjNTSg55E9gyshKX+oWm8tLh7DQ9/g0t89hjB4/fHM+wjwfqK4iFutLaCfHg4RjTk= 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 DM4PR12MB5374.namprd12.prod.outlook.com (2603:10b6:5:39a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.20; Thu, 29 Sep 2022 17:35:10 +0000 Received: from MW2PR12MB2379.namprd12.prod.outlook.com ([fe80::daa4:3ae4:39e3:61b5]) by MW2PR12MB2379.namprd12.prod.outlook.com ([fe80::daa4:3ae4:39e3:61b5%6]) with mapi id 15.20.5654.014; Thu, 29 Sep 2022 17:35:10 +0000 Message-ID: <2c50baa4-beef-54b9-74fe-1cbf6e8f8dbd@amd.com> Date: Thu, 29 Sep 2022 23:04:50 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [RFC PATCH] sched/fair: Choose the CPU where short task is running during wake up Content-Language: en-US To: Honglei Wang , Chen Yu Cc: Peter Zijlstra , Vincent Guittot , Tim Chen , Mel Gorman , Juri Lelli , Rik van Riel , Aaron Lu , Abel Wu , Yicong Yang , "Gautham R . Shenoy" , Ingo Molnar , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org References: From: K Prateek Nayak In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: PN3PR01CA0168.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:de::8) To MW2PR12MB2379.namprd12.prod.outlook.com (2603:10b6:907:9::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW2PR12MB2379:EE_|DM4PR12MB5374:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ed6d679-f5f0-435c-9158-08daa240f526 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9xOre2F1ZgZNFjYU6YnxRcGpzxhJh5KOlYpN9gSuCE/L8vUv8c/z41+S+CMCGUT85/kKNggSfB1GGEIHrXF6bvZDQjHBhJZHVnOpxsckJYsxvNbplDGe7XEFcvTih25Pl4qv24ifl0tLeMvvGBL+y1O5qvF3Og2Ez88KaLjqA0HAzEeVQW1KT3vQDjLp+UncYG0DjtuBhRRdvGneBakofStx+6bLBhvueaOpmzLonpqbO33LgDrRGJ3S3eZtj9cdEvgxgikrFhyGXhCPAFBZbp8sSEPPq5jfjDHNjw3JloFbQxC+WfRXKlbzYXYH2zC1S3VkC7p55aOAJFLw6cOpV4OVBIECiP+JER50JHPR2l76Q7u4YMFO0WvuFBaIoDQEi4LSuQalOp8xW8D7ykwN5jmbBkE7I2+FTszeQidI7CkC0RYEH7zFLrMP95zwNSjuZjextXZlOdXi3PQsmOrq9HKMvArnQ21FZGzQryMRqt1blrmFrERPHs8fSXyH26YnG2HPkUFlP9hCyfGPJh00Itb0p61+TMtgHaH5KY/OeSwzA67H7RdHvL0J0JxtOZbuAynB/ujygTreNnfZaNpthv9pphExBXzbprO0g1biau2FNxmdW30F2SsngqjkIala87dYooKaOWB/r0eTN8jbz8s2Q0V1jQTE93suQGOWQ7YnLAL/1Xz9ZNcPTLdZ3e+RoDLsgHLzVb9kfZxqBELkAfz8LCh6XKKF4bkjFvuGf3ZbZxOIPUZoJ0UQfZIGndQZMilJboV4zAMb4v4hPxKgE5r/fWRt3PhP0GzVBBP4yR0= 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:(13230022)(4636009)(376002)(136003)(396003)(39860400002)(346002)(366004)(451199015)(2906002)(41300700001)(6666004)(53546011)(6506007)(6512007)(26005)(36756003)(7416002)(4326008)(5660300002)(8676002)(38100700002)(66476007)(66556008)(66946007)(186003)(2616005)(8936002)(31686004)(86362001)(31696002)(66899015)(110136005)(6486002)(54906003)(478600001)(316002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TThwb1lidXo5VFNJNlZSbENSb2Nma2Y5ckdwSVhWV0RwVHppdG94c1BVZU1m?= =?utf-8?B?WFhYRlVsbGNrYWJJU3pMTGtJSDNxYjE5d1pXYXZQWWIrUTBoUXpSaUIrT0hp?= =?utf-8?B?M21nMlVJeWt0WFdaalRONlpjVW5pVk04dW4xcWVRZUV0R0xjZEJjdlcyTzJ6?= =?utf-8?B?OXNPNkJ6NnlXMG9pN29rNHBicjV0ZEdEYXJnNkhMblBNbitURTlpNlkxSTJk?= =?utf-8?B?YnhyeTB1K0dLR3d1ZlNHSWxTTjZFd0NsdDBtL1RYTnkrbUZIV2o1TSs0aVcz?= =?utf-8?B?Z2hoVFdYdkdDWTkwUnFPNTBWN0ZDRC90YnpER2ZCT2FubE04WDdzNmRObGhx?= =?utf-8?B?dmlaRG9LMVJEWXp3cmx4b0lBcG0vU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679-f5f0-435c-9158-08daa240f526 X-MS-Exchange-CrossTenant-AuthSource: MW2PR12MB2379.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2022 17:35:10.5273 (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: e822spZMd1VWuiCM723314xxXU4hlONFRQjhpRv8HHFDnuajcqTQVvh8DF0++EoT1VxbDALyzP9YBYGzNxS1pA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5374 X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 Honglei, Thank you for looking into this. On 9/29/2022 12:29 PM, Honglei Wang wrote: > > [..snip..] > >>>> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >>>> index 914096c5b1ae..7519ab5b911c 100644 >>>> --- a/kernel/sched/fair.c >>>> +++ b/kernel/sched/fair.c >>>> @@ -6020,6 +6020,19 @@ static int wake_wide(struct task_struct *p) >>>>       return 1; >>>>   } >>>>   +/* >>>> + * If a task switches in and then voluntarily relinquishes the >>>> + * CPU quickly, it is regarded as a short running task. >>>> + * sysctl_sched_min_granularity is chosen as the threshold, >>>> + * as this value is the minimal slice if there are too many >>>> + * runnable tasks, see __sched_period(). >>>> + */ >>>> +static int is_short_task(struct task_struct *p) >>>> +{ >>>> +    return (p->se.sum_exec_runtime <= >>>> +        (p->nvcsw * sysctl_sched_min_granularity)); >>>> +} >>>> + >>>>   /* >>>>    * The purpose of wake_affine() is to quickly determine on which CPU we can run >>>>    * soonest. For the purpose of speed we only consider the waking and previous >>>> @@ -6050,7 +6063,8 @@ wake_affine_idle(int this_cpu, int prev_cpu, int sync) >>>>       if (available_idle_cpu(this_cpu) && cpus_share_cache(this_cpu, prev_cpu)) >>>>           return available_idle_cpu(prev_cpu) ? prev_cpu : this_cpu; >>>>   -    if (sync && cpu_rq(this_cpu)->nr_running == 1) >>>> +    if ((sync && cpu_rq(this_cpu)->nr_running == 1) || >>>> +        is_short_task(cpu_curr(this_cpu))) > > Seems it a bit breaks idle (or will be idle) purpose of wake_affine_idle() here. Maybe we can do it something like this? > > if ((sync || is_short_task(cpu_curr(this_cpu))) && cpu_rq(this_cpu)->nr_running == 1) I believe this will still cause performance degradation on split-LLC system for Stream like workloads. Based on the logs below, we can have a situation as follows: stream-4135 [029] d..2. 353.580957: select_task_rq_fair: wake_affine_idle: Select this_cpu: sync(0) rq->nr_running(1) is_short_task(1) Where sync is 0 but is_short_task() may return 1 and the current_rq->nr_running is 1. This will lead to two Stream threads getting placed on same LLC during wakeup which will cause cache contention and performance degradation. > > Thanks, > Honglei > >>> >>> This change seems to optimize for affine wakeup which benefits >>> tasks with producer-consumer pattern but is not ideal for Stream. >>> Currently the logic ends will do an affine wakeup even if sync >>> flag is not set: >>> >>>            stream-4135    [029] d..2.   353.580953: sched_waking: comm=stream pid=4129 prio=120 target_cpu=082 >>>            stream-4135    [029] d..2.   353.580957: select_task_rq_fair: wake_affine_idle: Select this_cpu: sync(0) rq->nr_running(1) is_short_task(1) >>>            stream-4135    [029] d..2.   353.580960: sched_migrate_task: comm=stream pid=4129 prio=120 orig_cpu=82 dest_cpu=30 >>>            -0       [030] dNh2.   353.580993: sched_wakeup: comm=stream pid=4129 prio=120 target_cpu=030 This is the exact situation observed during our testing. >>> >>> [..snip..] >>> -- Thanks and Regards, Prateek