Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1940558rdb; Tue, 3 Oct 2023 06:02:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGb3AvQjmMUUUFFEm4LjEYxrXNq8ArAZqF7B5X8jtgzMN5FNxcRcJG/bb2rlp7LP9gbUwX2 X-Received: by 2002:a17:902:da86:b0:1c6:bb3:29e6 with SMTP id j6-20020a170902da8600b001c60bb329e6mr14493946plx.16.1696338140561; Tue, 03 Oct 2023 06:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696338140; cv=none; d=google.com; s=arc-20160816; b=jC5OskvXmHBqojWPmzFoczTMdKSMwnTk07wxO6oZtP5wjCDeVMyhAVYQaM6ptypwft iAW+6XyQOv2EcAY5stc42nuiu9PrZZtz5du0AmpQSQADm4wHjsBgEG0fyHkH6oT4Gv9/ NnZ0N75ul4BWpjfsbcC7glH7SsFwha4Fb1k9buZUMakOow4CJenQnZswCrEcm3QXpfl0 IzzTw62pNjwX6twJy9MnEMlhHdjtZqyti16r9ag9lbR3q8hh/Q/OrRKh3WrJkKnlFxug mpVXuwqRVXhMVIZZKYVBcHFrNLZ5EXLLUq1KbXVflB2AndnQeiJHF9ht6iTyQnQNhJHN OQXg== 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:sender:dkim-signature; bh=BUm4k8YFZsdrzLTC0JYCtRb9Jw4K2/14b8pIJen40pU=; fh=bVQav+w0Fwa063jiogkD0tMlT8/LR7MHJAmd+iKKYZI=; b=Jm/PAzOGypVEG3htRfhptpuTX6096JQjjNOk0tM41BfPsyNiwLOYB6pT221GfLdgok MnKagm/ETQkRHvnTraCbphmbZ/81sEAqQ8CChelJEqXPBlnDqeKhZtau4at/kLxCL2XH tcgFFH3NaRBEag2xkklCqKJl43UvpAGnHqfKlH4t+mbW00fNm6u7Vc8cQw7CG/jETddx 9yYi33fkTM2wxp1IGN6CjHWoxOPiioBwswUriKdfAeS7nXiW28rljI8DUcarqUyvkjv5 xT56sAvo8/BdFrIUTEBA4+kbBxH3DcxK+PoQpv6jXhJEjyRh59YlVh6PpUAROUQTTPRU Akww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dQOeC0io; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id t21-20020a170902d15500b001bbc80a2a3asi1295235plt.299.2023.10.03.06.02.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 06:02:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dQOeC0io; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 262E48115446; Tue, 3 Oct 2023 06:02:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232549AbjJCNCG (ORCPT + 99 others); Tue, 3 Oct 2023 09:02:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232503AbjJCNCD (ORCPT ); Tue, 3 Oct 2023 09:02:03 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39060CE; Tue, 3 Oct 2023 06:02:00 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5333fb34be3so1509719a12.1; Tue, 03 Oct 2023 06:02:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696338118; x=1696942918; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=BUm4k8YFZsdrzLTC0JYCtRb9Jw4K2/14b8pIJen40pU=; b=dQOeC0ioQNCumsXXTQz4yukLx1YDy8k2bZYlVENBr+SXwP/mi9Tkjbt5Q25Wwkcd+l o1RkLEA325eHOEkW+1COYdr62bJeEuMcxZQSAzsIJq4G+i7juJWzLLoukRHal9HEDGsU 3TKfmyFWmJV680/NKgaZPmUHrGNPDILbG2djgSVCqjRUU0hbM7oFw7amFhkiDIRM6oRG 2qat3qFBYjh6v0LZO8sOw82z9UIRZ4TJpguTcnXzSA3z/vNEd4Clm/KobuV2oEPvOYem WtDjvnu833V7SRpj49s3B3ghxBn3dN00vXsxa+rlE6an9ilqgEALyzWLtd5BlkSuc2Wh b05g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696338118; x=1696942918; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BUm4k8YFZsdrzLTC0JYCtRb9Jw4K2/14b8pIJen40pU=; b=ThPYCanO0yb9a4cDCqaGMrzHbRe6nmt76cO+/EtpQf+8cpL4+02Pw/EAA/aSgHAuND 885FA8kyUUhYyEM1X2hZo6qEeNFERd3xyzIJ0nogyH/Z8EOcVom5iAnTym1z2R3cM6Yo fLtO+SySyFkIS4zP/FvDRcpygohrKzVLePIevv8e5HraSilnNWpZCAJgGNvjDbuMqKpg YnDgLNckGzKvKVvhvYBMWMtA4cD2JWbDVxRFJ3gFSzKertkv15GcwVwfOSjHrpRvaOqv A4HQNSIWrcVnO8YzTraytHX61duIIId/D1ly4LRJRPLqyIa94wlk3NvTE902gnilGFz5 vYDQ== X-Gm-Message-State: AOJu0YwOvx3DqfxTLadhBXsX3jx8YNN92P0dO3HJPWXk2Z459hV+tyS+ ZC44J5d96YtTnajdhHTGzCA= X-Received: by 2002:a05:6402:610:b0:522:ca6b:ad7d with SMTP id n16-20020a056402061000b00522ca6bad7dmr12698274edv.9.1696338118243; Tue, 03 Oct 2023 06:01:58 -0700 (PDT) Received: from gmail.com (1F2EF530.nat.pool.telekom.hu. [31.46.245.48]) by smtp.gmail.com with ESMTPSA id r19-20020a056402035300b0053448f23b33sm836886edw.93.2023.10.03.06.01.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 06:01:57 -0700 (PDT) Sender: Ingo Molnar Date: Tue, 3 Oct 2023 15:01:55 +0200 From: Ingo Molnar To: Elliot Berman Cc: Peter Zijlstra , Carlos Llamas , Greg Kroah-Hartman , Ingo Molnar , "Rafael J. Wysocki" , Pavel Machek , Thomas Gleixner , kernel@quicinc.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Prakash Viswalingam Subject: Re: [PATCH v4 0/2] Avoid spurious freezer wakeups Message-ID: References: <20230908-avoid-spurious-freezer-wakeups-v4-0-6155aa3dafae@quicinc.com> <20230926200238.GB13828@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 03 Oct 2023 06:02:18 -0700 (PDT) * Elliot Berman wrote: > Hi Peter, > > On 9/26/2023 1:02 PM, Peter Zijlstra wrote: > > On Tue, Sep 26, 2023 at 04:17:33PM +0000, Carlos Llamas wrote: > >> On Fri, Sep 08, 2023 at 03:49:14PM -0700, Elliot Berman wrote: > >>> After commit f5d39b020809 ("freezer,sched: Rewrite core freezer logic"), > >>> tasks that transition directly from TASK_FREEZABLE to TASK_FROZEN are > >>> always woken up on the thaw path. Prior to that commit, tasks could ask > >>> freezer to consider them "frozen enough" via freezer_do_not_count(). The > >>> commit replaced freezer_do_not_count() with a TASK_FREEZABLE state which > >>> allows freezer to immediately mark the task as TASK_FROZEN without > >>> waking up the task. This is efficient for the suspend path, but on the > >>> thaw path, the task is always woken up even if the task didn't need to > >>> wake up and goes back to its TASK_(UN)INTERRUPTIBLE state. Although > >>> these tasks are capable of handling of the wakeup, we can observe a > >>> power/perf impact from the extra wakeup. > >> > >> This issue is hurting the performance of our stable 6.1 releases. Does > >> it make sense to backport these patches into stable branches once they > >> land in mainline? I would assume we want to fix the perf regression > >> there too? > > > > Note that these patches are in tip/sched/core, slated for the next merge > > window. > > Can the changes be scheduled for the next 6.6-rc? I'd like to get the > changes backported to stable sooner since we observed the regression on > real systems. These are pretty risky and go beyond fixes for regressions introduced recently: the original commit is more than a year old. But I agree with having the fixes in stable once it hits upstream in the v6.7 merge window - the difference would only be a couple of days vs. -final. Thanks, Ingo