Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2110783rwb; Sun, 15 Jan 2023 09:20:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXvx5MLdvssmF7ag9/DtH5n/w/2Y8FolzymgSFvitydE00XrwqwRUKUP3mDt7u7nTEKT1+oq X-Received: by 2002:a17:90b:914:b0:229:7110:712d with SMTP id bo20-20020a17090b091400b002297110712dmr1457130pjb.45.1673803230089; Sun, 15 Jan 2023 09:20:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673803230; cv=none; d=google.com; s=arc-20160816; b=LOxrJCr56e9dT2k+Nt9JvwGqu0ZgCa48fOKeCuqXH2k9AkG1hA8Uj7f34Q4uM9xeYu ksicZFEzF7knAlCOhu2kAU00OafbHbJ3GYEkBEm6CADAfqacrEfVeqZ53v6Sgm1JsNGz Fxa422caUkHUVpk+hSiQq3iSdorxcvVVu6qbnq3gm0GKHL0ZfJxgBlKkXneroSLFTAkL 2HhJBrBl8WxBZmtBJE5DuZzBe2R/c+6D13LXPVsMNYoBAiCQKCWqlyTIrGecHQbJX2PU LOAT1xKr6LOeVGRuMKEaon5VGF9Fv7U3ajpE+X2b0imaRBYMKQQr2fmWOfd0PB+LfiHZ h4JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wyXeq2MEr1J+e0QY6nAt4hvGGGXhRFe/SJyt1uQjd+M=; b=OPobxtxMLwggqURiO3RP45ztKNQGQXP45rYd7Ju7dd9d3SgL+yRfTsyuW377z9eWxK GAeJl5elyHnfpFiF8xplrSC4aOrvPRRPPIHWL3+6gisCMPzoc3+yICA/yoEmaQ83mxxc YusGB3pVNcou6vLjOZ2bpw3EvDFNVQr8sEiowQOCAc8nLs6MRKz3REVvbu7Gknb3iJsy td6wBEtLc3fAbjT4rGLO1blGaNEPp0UNuZkTm1hyPbG1LVzrqE4qBikULeXRQFxiGN/E 5SY1hxd8FbUvAsqtD8O5GE1GTqKr7Eh1K/5EZKV4YeKQnc0xH7J1gp1o/9wytq1FDWjG Bn8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@layalina-io.20210112.gappssmtp.com header.s=20210112 header.b="HVKsp/vf"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nl8-20020a17090b384800b00225d7a1847esi29217311pjb.91.2023.01.15.09.20.22; Sun, 15 Jan 2023 09:20:29 -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=@layalina-io.20210112.gappssmtp.com header.s=20210112 header.b="HVKsp/vf"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231271AbjAOQly (ORCPT + 54 others); Sun, 15 Jan 2023 11:41:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231181AbjAOQlw (ORCPT ); Sun, 15 Jan 2023 11:41:52 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 903AB8A57 for ; Sun, 15 Jan 2023 08:41:51 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id k22-20020a05600c1c9600b003d1ee3a6289so20579361wms.2 for ; Sun, 15 Jan 2023 08:41:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=wyXeq2MEr1J+e0QY6nAt4hvGGGXhRFe/SJyt1uQjd+M=; b=HVKsp/vf0AVRuU856/IGt6skrRZgxXhP5I4Y/qoLNwpTmzYThPiVRxsVlvJJmA2Hg8 tV7IHYq1EnC+YIpW7nqTWWsd259d0i6s++jbssfomjbxGF0jqnK5YIE9DH/SkAO3JLxM uS3s6sDNNElol4/q/sxBwK4HKwEwolb4mt0ZDnNTvQYzoD6hXCHFYV8wQWFiWwjYg7Rl uoYg9AkFXmyKNC4d7x4HjFxlkLF43etPXh1w5UD9EU9MiBBJ1CV7f6PikjHHNpIaCbMk Hgh+DGvyf19Jvt03Vhtv6xgnvLiGGsToOPXr97ilY6D6nQjhYAwKouUCVxcIeq3VXDwf A3bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wyXeq2MEr1J+e0QY6nAt4hvGGGXhRFe/SJyt1uQjd+M=; b=VrMc5yGBNZqh5OMm/t8d0nXBU0gzww7aj4EvgLwLgZYXswaVj31DFVQ0dGebQLe9U1 TREfHiHBDDqM+bLbQ92aGWrPivsI+/5ksWnmvfZyhkqRCzMdgVJe1wWCbIi7wdntk90n pEZgA6UzZXOhe6BLV4OXuw+u6QZ5dX1xWP+sz/s+Rbd6t6vhQoB9/Qc5i0QDLksrk69z rNGU8noE8Gj5D5IYPrZ8XlhmEJ9WPdONnFF4WgQh3aUf/NuVktnXBakGxXU7JSbx8fQf xn6En0YSmWa5vZQs0gV7AnQdPvCceoNSKLs5bK1AolwctnlVXXnGv0xXs5BPsPA1JD6B feGw== X-Gm-Message-State: AFqh2kogmzbSvYF/X802VsZyB6lNwjJ0krscD+pZmChqufHYARNofCV2 F7am164vhwuh4/ADdhdlg/Ne2Q== X-Received: by 2002:a05:600c:34d3:b0:3c6:e61e:ae74 with SMTP id d19-20020a05600c34d300b003c6e61eae74mr76812959wmq.4.1673800910197; Sun, 15 Jan 2023 08:41:50 -0800 (PST) Received: from airbuntu (host86-130-134-87.range86-130.btcentralplus.com. [86.130.134.87]) by smtp.gmail.com with ESMTPSA id j18-20020a05600c191200b003d9dee823a3sm34029777wmq.5.2023.01.15.08.41.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Jan 2023 08:41:49 -0800 (PST) Date: Sun, 15 Jan 2023 16:41:48 +0000 From: Qais Yousef To: Vincent Guittot Cc: Juri Lelli , peterz@infradead.org, mingo@redhat.com, rostedt@goodmis.org, tj@kernel.org, linux-kernel@vger.kernel.org, luca.abeni@santannapisa.it, claudio@evidence.eu.com, tommaso.cucinotta@santannapisa.it, bristot@redhat.com, mathieu.poirier@linaro.org, lizefan@huawei.com, longman@redhat.com, dietmar.eggemann@arm.com, cgroups@vger.kernel.org, Wei Wang , Rick Yiu , Quentin Perret Subject: Re: [PATCH v9 3/8] cpuset: Rebuild root domain deadline accounting information Message-ID: <20230115164148.lnoqfpg7em334ts3@airbuntu> References: <20190719140000.31694-1-juri.lelli@redhat.com> <20190719140000.31694-4-juri.lelli@redhat.com> <20221216233501.gh6m75e7s66dmjgo@airbuntu> <20221220114309.coi2o4ewosgouy6o@airbuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221220114309.coi2o4ewosgouy6o@airbuntu> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 On 12/20/22 11:43, Qais Yousef wrote: > On 12/19/22 09:07, Vincent Guittot wrote: > > On Sat, 17 Dec 2022 at 00:35, Qais Yousef wrote: > > > > > > Hi > > > > > > On 07/19/19 15:59, Juri Lelli wrote: > > > > When the topology of root domains is modified by CPUset or CPUhotplug > > > > operations information about the current deadline bandwidth held in the > > > > root domain is lost. > > > > > > > > This patch addresses the issue by recalculating the lost deadline > > > > bandwidth information by circling through the deadline tasks held in > > > > CPUsets and adding their current load to the root domain they are > > > > associated with. > > > > > > > > Signed-off-by: Mathieu Poirier > > > > Signed-off-by: Juri Lelli > > > > --- > > > > > > We see that rebuild_root_domain() can take 10+ ms (I get a max of 20ms quite > > > consistently) on suspend/resume. > > > > > > Do we actually need to rebuild_root_domain() if we're going through > > > a suspend/resume cycle? > > > > During suspend to ram, there are cpus hotplug operation but If you use > > suspend to idle, you will skip cpus hotplug operation and its > > associated rebuild. > > Thanks Vincent. I'll check on that - but if we want to keep suspend to ram? > Do we really to incur this hit? Using s2idle is not an option actually. I'll prepare v2 to address Waiman comment if I don't get more feedback in the next few days. Thanks! -- Qais Yousef