Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2000315rdh; Tue, 26 Sep 2023 09:19:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVEsBfuWTCZ8rPSuefMixqmnvE4inRjVJi7jKXYN3l0HGaXt6xy6Pq0Y9wSA3WptOO4Di/ X-Received: by 2002:a17:902:eb53:b0:1c3:df77:3159 with SMTP id i19-20020a170902eb5300b001c3df773159mr10156689pli.50.1695745166981; Tue, 26 Sep 2023 09:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695745166; cv=none; d=google.com; s=arc-20160816; b=XPFOyUtgKaUQI+yQO9dpC2zKs/jSNb0OE+nZq4mdIiyhPo6rqDaUW3BvKWGYKHPTpu UBlBhoRO7xw/LXqoV0BYQ9ABlIuRjI4QchO8Ix7o2K3F29oyFKnp7Hc4npkTz7Rs2amq 1gULikAzENhjhIy2Q4PADpShBqI1UxCiNOshTrkF72JzvrmNdzcv6f8Jf1J20+q3VM5R j616MG9pyx+vHCrYgrpxCsiHwMcj9g91tL1dt6qlEbf/NKi4zXDAxkVJ6QCl97qRFscj MZWTIGgCOfZPoEzGibaERgGOXJvWIVd4jdk992+7QwVJ+QUtGnmtYaBTOtHr+VHH/0r0 gXcg== 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=l+SnA92wnN6Pe5sjQR6yfLakYoxIuu3kYpagASz8Rzk=; fh=ms0J7VFGp0zTAQDQ02X5W9JetJ3qhI/rpE68wOgBWso=; b=zLREEUHilrGnJVHEsOYvMa3iP0kLVUvkflRjBGOJgEXbjJEB3UMHAAfODzY8D30q2v uk7FhsiQKAd4hstWm1P+m6p1BVimaSsYV1fGzTl1DHslaj+4c5V1n8+ju3oiNHlWXxzj 3XoPZQDA03FSJgbFdFL12WMkWBSWDDpu5SbsrL8OqkpcaJ9BC3qI1JYBkCd7UqkJrh/o ms+B1FBLCAQcdF+J7Ke+TPfDc2jvqBiJmMwoMmYH5405xuY45nZKW7xkpwQaveRmsCSy Gr5UDYR8tIoUHVkWLLKE0L2xKFyTFipufIBf9Ef0jG38rN7Qa5ijCXshcPOHWGvrewMm aLgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=pMy6TrBV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id j4-20020a170903028400b001b9c992945fsi13444429plr.555.2023.09.26.09.19.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 09:19:26 -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=@google.com header.s=20230601 header.b=pMy6TrBV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9680D8020FD1; Tue, 26 Sep 2023 09:17:54 -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 S235212AbjIZQRr (ORCPT + 99 others); Tue, 26 Sep 2023 12:17:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235201AbjIZQRq (ORCPT ); Tue, 26 Sep 2023 12:17:46 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7395EB for ; Tue, 26 Sep 2023 09:17:38 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-690fe10b6a4so8230400b3a.3 for ; Tue, 26 Sep 2023 09:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695745058; x=1696349858; darn=vger.kernel.org; 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=l+SnA92wnN6Pe5sjQR6yfLakYoxIuu3kYpagASz8Rzk=; b=pMy6TrBV9P+SC6Y+6TIJQoXa+vRrub/0R6I0wSSflwghxdHmHhQk+e9m8zaNZAeGRU YTsHQRLNnkyyPSkdbczHNLq00In40KAs38NVrpODyrdj/jVdvs4bbGe4HON/9ZiWhE4E 72o23vW6XLmcmh4pUG9i5FgoIl8hFw0bwQ2PtcvL0VfXUDMWZrJ7UFG5W2GXgCdmk5Xh RiWAJhMktQ0YjcMk9Fc98DAq3tKXmYmmfK8j7DSCehaV0ynkhIdZEkgtZ1lBAGXhyomT mpFsSgAQQwM0N1+G9L8KlN42cdEQk31ugazcRLDSAuiNR+0YpvL+Fw/w3YT1gGIzTcLd uahA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695745058; x=1696349858; 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=l+SnA92wnN6Pe5sjQR6yfLakYoxIuu3kYpagASz8Rzk=; b=oQ5n+hTlnXtDmgXeAbLhs2hiG1rWbiEFpRIxszQJoXqKsUbR58zIKnRICFuxPCyLCu COGDk5Ehq7gV6TH4BiDzZTDrpASzlp5L5OWt44OlK6o7PvgUhQWRMI2kFNKhqAr9yGT6 mmmB8f6hx3yMJDkrs9ZU/LRqd7cDGPSGRZglIKFTkyAuGq6XpW1EXgFure2aVJQuHORL pSVKD2wAi15axxDgdBnD4/kUO4S5hL7LCoZ2EUJkIBLGRzD9Uoxu9MlBIvekLNnRetgC YrXi9HMq7FvvT5Z6kp1rAnDM2PJnC/DbVWhOjEfV+Qx0Ky9QVjPLyH96ffvNcGM0K0qR ajkw== X-Gm-Message-State: AOJu0YzojIXT1ghnWUkzyv68f1W62ZBg6HSVKjGOwydMNuFGCOHhIy6p dJKwDd27o1qD/R2SaMKDMnOFSA== X-Received: by 2002:a05:6a20:3cac:b0:158:17e6:7a6 with SMTP id b44-20020a056a203cac00b0015817e607a6mr13116705pzj.42.1695745058075; Tue, 26 Sep 2023 09:17:38 -0700 (PDT) Received: from google.com (55.212.185.35.bc.googleusercontent.com. [35.185.212.55]) by smtp.gmail.com with ESMTPSA id s8-20020a63b408000000b0055bf13811f5sm8467985pgf.15.2023.09.26.09.17.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 09:17:37 -0700 (PDT) Date: Tue, 26 Sep 2023 16:17:33 +0000 From: Carlos Llamas To: Elliot Berman Cc: Ingo Molnar , Peter Zijlstra , "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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230908-avoid-spurious-freezer-wakeups-v4-0-6155aa3dafae@quicinc.com> X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL 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, 26 Sep 2023 09:17:54 -0700 (PDT) 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? -- Carlos Llamas