Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5373509rwb; Mon, 21 Nov 2022 22:00:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf58QWRtX+D/vfPFWGXTV2KpmexgtgPeIG3hEAWnf8lA0XGrVQwYR7MNbDDbYixmHzzcacsP X-Received: by 2002:a17:907:8d02:b0:7ad:f43a:cb07 with SMTP id tc2-20020a1709078d0200b007adf43acb07mr6138202ejc.562.1669096811371; Mon, 21 Nov 2022 22:00:11 -0800 (PST) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr19-20020a170906d55300b00732fcbcfedesi13696512ejc.623.2022.11.21.21.59.48; Mon, 21 Nov 2022 22:00:11 -0800 (PST) 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=@intel.com header.s=Intel header.b=I128HqLb; arc=fail (signature failed); 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232283AbiKVF44 (ORCPT + 91 others); Tue, 22 Nov 2022 00:56:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231895AbiKVF4T (ORCPT ); Tue, 22 Nov 2022 00:56:19 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 911E427FF5 for ; Mon, 21 Nov 2022 21:56:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669096576; x=1700632576; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=iuYY/B8rtcOWnpAjdKuIf47VXRK38SuJ+gp0gGy3uNA=; b=I128HqLb3YVOKxQwR3xySGD7oSh0/po1ijl5fnGJQ/Tr5c8/Y2wC9F4l kGMDjdxwD3y/TNebnSG/phT5mrX0xNJ7g3/CN5UdfxCt7CJgkAwTdPlye W3mKuOO4TjJjJVKtjOHA+Ty0LY1NqigpXXfFrbIEUNk3iONCbdImNSU8U 9E4PYEB3uGN0bSQVnLKfcM0GrJNGK8Npl+cv7Da6AI00JDjUvpjqcVbOU 7QCEX3U2+BboC7IivpyV0LwKOyUo5qE1AW3DMTwcmEfzYAEK7CxWsrjfl 7uRIoOlIOxXsZ/MQf865XvGk2vsLc6AU//vRUU81WRIzMQEjJk5cN+kFT A==; X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="313770057" X-IronPort-AV: E=Sophos;i="5.96,183,1665471600"; d="scan'208";a="313770057" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 21:56:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="886400719" X-IronPort-AV: E=Sophos;i="5.96,183,1665471600"; d="scan'208";a="886400719" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga006.fm.intel.com with ESMTP; 21 Nov 2022 21:56:15 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 21 Nov 2022 21:56:15 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 21 Nov 2022 21:56:14 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Mon, 21 Nov 2022 21:56:14 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.107) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Mon, 21 Nov 2022 21:56:14 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KePthGXk3B13MIDVFfVtA/xemdl9NdL7uM1D7sE71NQstFO6wgEPoElZc1INOgYEjTHbZBVKGoKcBFs2N63zxsN8WOm5TTqld5vtTIIPjxkyl2ZHi3Hx7dQ1EnSPxyGafMLmIx1TjZ23+txUjvhz1bnjfjm5oUv04wxEGXg2ESZVXWrYd/ErSDc0w2rdRVTzf3QeAlkUa64bxdnH98e2CysbNlMA+kJMMDIRbkhI7nUsxtwzWFSDcOdivspz7JHMyQHHkJJ83Bgkn6845u8fOUntVUFfhwxbNx9OUHdh2DjQ6NsM6UncOnPWxXWL3g9pz0WQpKEWXSlZEF4ymk7qCg== 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=LF6qPXaKqxhGSXqh3AWtACQPDPbyowwg6Brpzydxj8g=; b=mEVTkhIeJu6YQiB2ZaCzBGTrYB9eqzTNiIwnSecD7b8SivjNNs20kfxQFYTsNzFfXpzP++IGjQZH6oNZxlTPfkEcMlrWg16tG/mua2CGKqWRBAV6EdjOQSxWiOyJU/8w2YdvftNl6f3NmJ0i1+w/2yszi3R+JoRcbXllhSF6e9bamV5Fa6GrNfdHOWBifM/Po788xCb7Nv5r2fJW8cqIdBYbjM2p3JaTP9GfvuIBwLaJFImodsXPCdnV9CHqXDBWvchzdyjII9Jg60VH+t1e7bJmF39whXx4C+AxfYEQ1EffoqLnmSKd1Aup4WryB/dTnWBF4NVKV4f6Y1tnIpyvWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from BYAPR11MB3062.namprd11.prod.outlook.com (2603:10b6:a03:92::18) by PH0PR11MB4808.namprd11.prod.outlook.com (2603:10b6:510:39::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.15; Tue, 22 Nov 2022 05:56:08 +0000 Received: from BYAPR11MB3062.namprd11.prod.outlook.com ([fe80::d3d0:e250:56:26a0]) by BYAPR11MB3062.namprd11.prod.outlook.com ([fe80::d3d0:e250:56:26a0%3]) with mapi id 15.20.5834.015; Tue, 22 Nov 2022 05:56:08 +0000 Date: Tue, 22 Nov 2022 13:55:53 +0800 From: Aaron Lu To: Josh Don CC: Peter Zijlstra , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , "Mel Gorman" , Daniel Bristot de Oliveira , Valentin Schneider , , Tejun Heo , Michal =?iso-8859-1?Q?Koutn=FD?= , Christian Brauner , Zefan Li Subject: Re: [PATCH v3] sched: async unthrottling for cfs bandwidth Message-ID: References: <20221117005418.3499691-1-joshdon@google.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: SI1PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:1f5::16) To BYAPR11MB3062.namprd11.prod.outlook.com (2603:10b6:a03:92::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR11MB3062:EE_|PH0PR11MB4808:EE_ X-MS-Office365-Filtering-Correlation-Id: 2861938e-334a-4bf2-3039-08dacc4e4014 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YsahsCQ3CDHTbyIl3xLxr2X+uacudDbAqn0t45ptxW725O1XsB9rhUB5iabXh81oAY2Hf2vd6dI6vSR0xQBWSLjK7RyYdcnze9VKzuQY44JxM3IfFxMC8NY+tTzH2tKVEAG1YUwSwiCKbF3GgufUVTCfeswgjt00F8vLXLylvaiKezS1jCHXL3tKaSIgJBBDP97sEcU5l7liLAGGL1zq5LRSQIezNgqRYNm9/x3v/NWAmKKFkLi2b/OVyHL7yLPvlgd/sJ3xoaJFqQTyrPlVYi3aUVj86jVOx59b4+a2U0ULbuxStioTYu7byJdWa7iY7PTPMne2HAqc626RwIGEtjBKmBDi2MzxpGoeuxvcc6uk3cEQEIPng44sTRW7pEUhDXX8vqm8XcPJisx0pbBWCyYOKy+4enfcyfFbcL/MNJWc3fltAqBQA506Wz9bIl6td3KBpnrX6IIrz52NQawTRbdAMkEElun0y97g9YqKtTTMUOR8OBdZMP32BtLg1hP3k5Ka/njZ4xq6lWrv9N+qDHqeWomf/+UsJYVyJQRqfE7RqRFJKqC90iq/T3enluV39bmDct9HBZmzUzu6QN7jfLFCpo/14pLP9bse5x5JsM1iTA3IVS6ZNpO13fO4eysF362KrV7rWTABpIJd9NXHOKxIpeqIG2a9qACWyG0+If8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB3062.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(7916004)(376002)(346002)(366004)(39860400002)(136003)(396003)(451199015)(86362001)(38100700002)(26005)(33716001)(82960400001)(186003)(83380400001)(6916009)(4744005)(9686003)(44832011)(2906002)(54906003)(6512007)(8936002)(5660300002)(6666004)(7416002)(6486002)(6506007)(478600001)(966005)(66476007)(41300700001)(316002)(4326008)(66556008)(66946007)(8676002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?/yLbo6dUcrQMpi2ZdJir3FMtUSBCvvXK7qBVMEYbFUWIhfzQ2JFs2u0AV+BS?= =?us-ascii?Q?570grBEkPRx7UmoFMtgbwkbaRDbroIg2BGLefnQpXssLgN9oRJUM2wD0DR00?= =?us-ascii?Q?mJGoRWaJoqlQN1J9IwFtsEuPYErPfRcYGOakb3C0xsKOboyxG4gTkJmyWgX/?= =?us-ascii?Q?G3ZC0NxmnCdceHI0ilkDhN9or/yOZjF57uYzN3WG4SDFA14tj3YE/dP2bc8F?= =?us-ascii?Q?qUN3keLDXD0PpboT13RyiVbNGzriQgB66sTTvZS8VfS1inZYaneHfe6Su6dz?= =?us-ascii?Q?5krTP5FcRcNDUEr9nmLJTYock6oyU41lrcha2r6L6bDEGpGSMXrveBzJSH31?= =?us-ascii?Q?DbnWeGRajg3tFKslJAnFw3WdF+vdeJ2v8J0F62LYhk2zerPJ3Su3oFRXScjd?= =?us-ascii?Q?XlPXMEAZd6ijZ1/abIbnGRXMtjSEiPyw+koUxx6Xu+T8RerivOZY31KOI3Y0?= =?us-ascii?Q?XIJpgJzKlX1cXAi61LpHjdxq8a42BIpT9cAVuf0h4ucIwL59y8hbXCna4Ktb?= =?us-ascii?Q?/dZjYZWMfLeCvrGwctkkVY/9GaewN9V1++/0b+gCPq9VTzh9KM9mcLuoP/zV?= =?us-ascii?Q?KexZPA81sjfhza8KWH8snsRLRIDbAb/EfsFkvGp4gOr0MQiImjUB6CuxQrlr?= =?us-ascii?Q?L7iNSmxmqqX87/GY03s7rM5CsE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1sBJi0Y0KHb5z7eD9h6fj8HwfWtC?= X-MS-Exchange-CrossTenant-Network-Message-Id: 2861938e-334a-4bf2-3039-08dacc4e4014 X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3062.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2022 05:56:08.4207 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iNdewDzTcS4CQrCn0R9CZEuNapxhdzQ+1yhBYGirGDm/GpkBD7n4zcRV8jnjtw1cdUxOxryJoo9PkVdPIycGiA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4808 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 On Mon, Nov 21, 2022 at 11:31:20AM -0800, Josh Don wrote: > > Please test the final version as found here: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?h=sched/core&id=4e3c1b7b489e218dfa576cd6af0680b975b8743e > > Thanks Peter, the patch looks good to me and continues to work > correctly. Note that I needed to make two edits to get it to build > though on sched/core: > > - local_cfq_rq doesn't match variable name used in function (local_unthrottle) > - rq_lock_irqrestore -> rq_unlock_irqrestore I also tested it on a desktop bare metal with 800 cgroups under 2 cgroups that have quota set. Before this patch, the majority of durations for sched_cfs_period_timer() are in the range of 512us-1ms, with outliers in the range of 1ms-4ms; after this patch, the majority are in the range of 128us-512us with no outliers above 512us.