Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7126785rwb; Mon, 12 Dec 2022 10:21:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf58pLAaRFQvamxtQM5zku9L6GxBWQKa9zMdWBmeQCT94flwr+l4NHJceYwcG9dW5XMDv/GZ X-Received: by 2002:a17:902:6a8c:b0:185:441e:4cef with SMTP id n12-20020a1709026a8c00b00185441e4cefmr15835653plk.31.1670869293045; Mon, 12 Dec 2022 10:21:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670869293; cv=none; d=google.com; s=arc-20160816; b=RGnbbgjiLYhzJiDaTUT6zJz8td62VCvIRMynIv9hyWmAl/DfKQksXSUElJRIroV0oN xmFp8ZyDjt2agAdmuwtAsSZk4vA8AF1XaSgY+f82l88fGopCIPzuT3zqc0Cv+6/7hCBM 4OW1qH/H0PuyO1cEryXLFbnua1H/YWZzKivddPVh+IYsez2u+qQXR7eRYaRSTlAXhNRI H/B4aw3pPIGTeUCbYijTzcj6Ph68UeB7FcVxHx01ntjrh1eBScFfb0Osh/1KSglOUWxE QOrPSVGOL1ma+3jI79ZdaVjNuNDFkhOqojvBbsO0njBhuLFugjAD8Pj/7nM4ritt5yO9 LwGg== 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=AkdjsvPgqxKR73VJHLqvP078yN+SDLhJiOmjXgSxuGU=; b=IClHLItWqGqDKDQN/IyhvLOO+81O1XnsQlp+d2sM7SUceWwx8I3ZN/bod8yNAFOI4a tbljLgLj36vl5tbnxAxa9ZpteuCmgtYIFsdEbvePHOCQBc0KobDW0GBQGyQDi1dFy7B0 YDVgM5UWN3fPzgVMaJTRLF2odd5lZERbycu26PisRX8AbxxL2RwaviC5Ua91pULF9rIT fJUbT0Baa4ljQCs4Km5IPFGf9m6wSgc3dDV4eij6d+BoY0ZMUTmvFNkilFxUqHLQUeDZ IofZyLtElgOjVtyDkZKsmct5BhCbVxUaJbGjPx64krUXqjfzCMjUInojG2mbtaglA55h NSoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=czUBBfdH; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a170903234c00b0018912c0e3adsi10695703plh.140.2022.12.12.10.21.23; Mon, 12 Dec 2022 10:21:33 -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=@gmail.com header.s=20210112 header.b=czUBBfdH; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232798AbiLLRyo (ORCPT + 75 others); Mon, 12 Dec 2022 12:54:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232776AbiLLRyf (ORCPT ); Mon, 12 Dec 2022 12:54:35 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B16E5F582; Mon, 12 Dec 2022 09:54:34 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id jl24so12851402plb.8; Mon, 12 Dec 2022 09:54:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=AkdjsvPgqxKR73VJHLqvP078yN+SDLhJiOmjXgSxuGU=; b=czUBBfdHEMmFcIEfKniLOTtppvUCoqrj5ht6TV3hC/Ip3jO8YW/6jHtR5RWf2rYhmF SBFeFkB6gBKD/CwW+F++AuJE/44ocdS6VkeIIQYNoCAbJW8qgxgVje46JNpcJZVbcImK u0OOg82SnC71laBpKsFsVrHFvMxITg3Pe9ILbXHMUS14vjpHvmkjsDcuo4bsvqVtO4nF Onh3HxXcm6/GyhxAwcMAkvfiX27sQY4FTnVqwj9aB2Y4ZAS/4yvi5MKvOJ3X5/AUlIpJ uQwqL5dkgECvxPkP0soXnqzJZbLyC5ELfpI4jO5ic3BfBZfzFOr3nw3V1K0VDdiVXVjL OfVQ== 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:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AkdjsvPgqxKR73VJHLqvP078yN+SDLhJiOmjXgSxuGU=; b=PAHsBWWbM3Ic7O3xmpB2NDzT5uZwQTCjVqqooqhyEZEfKLdzsTa+D4bJAr/7sUYBT9 Z0rA8R2ZBrp4sTARSFVkrWu5jOPoxptCX7liLkBNDtcKqUS5jO82I0nU8uXib4iWn3nx G1MwBN/plTvBKf46cAdQlhXFbP4vtqZueJzsJ1mQUERgYDQuGeP7KKt4/gw9ejue1OSB 7asCOOKCl1j5dcS7hAln28/wcV7U3tvbZx2nNiQ8QYHxn9YyR20ZnKChsxTkao2u7DaB ummuJyrmMaPFOT9oGRZvDoR69UnmULvhwZIjvaHiEwnryloK8GPaOV9feqKLXL6DK9wC Rl5g== X-Gm-Message-State: ANoB5pkqsrOFM3U32YS4DaM67GC4fXxHnNG74TTzbr+rBq6srzablmiO thUihec0MqVbgD6ZNc39W1M= X-Received: by 2002:a05:6a21:9991:b0:a4:5f8d:805a with SMTP id ve17-20020a056a21999100b000a45f8d805amr25677184pzb.53.1670867674085; Mon, 12 Dec 2022 09:54:34 -0800 (PST) Received: from localhost ([2620:10d:c090:400::5:9159]) by smtp.gmail.com with ESMTPSA id a14-20020a170902ecce00b00186b1bfbe79sm6693732plh.66.2022.12.12.09.54.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 09:54:33 -0800 (PST) Sender: Tejun Heo Date: Mon, 12 Dec 2022 07:54:32 -1000 From: Tejun Heo To: Peter Zijlstra Cc: torvalds@linux-foundation.org, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@kernel.org, joshdon@google.com, brho@google.com, pjt@google.com, derkling@google.com, haoluo@google.com, dvernet@meta.com, dschatzberg@meta.com, dskarlat@cs.cmu.edu, riel@surriel.com, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH 11/31] sched: Add @reason to sched_move_task() Message-ID: References: <20221130082313.3241517-1-tj@kernel.org> <20221130082313.3241517-12-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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, Dec 12, 2022 at 01:00:35PM +0100, Peter Zijlstra wrote: > On Tue, Nov 29, 2022 at 10:22:53PM -1000, Tejun Heo wrote: > > sched_move_task() can be called for both cgroup and autogroup moves. Add a > > parameter to distinguish the two cases. This will be used by a new > > sched_class to track cgroup migrations. > > This all seems pointless, you can trivially distinguish a > cgroup/autogroup task_group if you so want (again for unspecified > raisins). Lemme add better explanations on the patches. This one, sched_ext just wants to tell cgroup moves from autogroup ones to decide whether to invoke the BPF scheduler's cgroup migration callback. But, yeah, you're right. It should be able to tell that by looking at the task_group itself. Will try that. Thanks. -- tejun