Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1851644pxf; Fri, 26 Mar 2021 17:21:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuwlSm4J3s8i786ug8f54gaKixEtZWAC9/r6BEaZHMEVNa0bvzh5OL6mh27hasiqqN98ub X-Received: by 2002:a05:6402:5203:: with SMTP id s3mr18144545edd.79.1616804481669; Fri, 26 Mar 2021 17:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616804481; cv=none; d=google.com; s=arc-20160816; b=xs31ysJKObBPVDKO4rZDfr4TxjaZ7x0Nq6KJff58wmaERsiYINxxkQd476nxq2fToK 8UYfimU0PsEFSlBwM36KJ2WvrPwoksajZt5FDZRIVyDWBUliuYO1ONdIaj0y+1Bv7Vu5 2cYU7W7hNzjFRfJKvHCKHpayqnN/Yu/Udtq3SRLPbQSCG6+mpEHJQ5yQI0qw9FE0hPay M71duLhDjibvQCyWXQWg8ftAAGZ7DuM7HznCpoIWJ864BCdD37PLM9bdu2Zwms7gP2Zh qfrGzXAeVyS74/M1CmyhRQf0IxbWZuFKPCJIyV1XypLAyMh0NIPns3DjALL/PLH+UBWg nDVQ== 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=g7CX3ObKEZFPHfE2CrxoZpsvFPZB8ASiYPTz2KR8q0Q=; b=NlHSocsxVg7jqBDFHDra7875ti0q+sZEXeIUKiEGYVa3OQtN10d/WM8OQyQUOHkDY4 MUpkGVJENQBYP/8FxNCxJV7BRN/mUj3MBXycCXH7gvfOwcDsu+0gleoiU+vCDi9O0HhP NpKZO6Q5sQDDe5DyK5lGWTd5L8P9zUX9h6V5LHKdOg2fEruEdD+lQsbONEXecd2S1Nyq Timx4imtgIGuxzjpTJjSRQZKmfw3FFFLbP1uqjOwT7oMVxaiA5wfc5mj2gzUzHsaKDZI edPn3qgfDd1ShaGq7QbEFXwdF+Hl8IyhNKq3gzNi8smM0pelGb+NndEhQGpeOadIIBci 8j/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Y18hNRKw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u12si8534674eda.90.2021.03.26.17.20.59; Fri, 26 Mar 2021 17:21:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Y18hNRKw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231173AbhC0AMY (ORCPT + 99 others); Fri, 26 Mar 2021 20:12:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231156AbhC0AMI (ORCPT ); Fri, 26 Mar 2021 20:12:08 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 644A8C0613AA for ; Fri, 26 Mar 2021 17:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=g7CX3ObKEZFPHfE2CrxoZpsvFPZB8ASiYPTz2KR8q0Q=; b=Y18hNRKwse5r4jkAnvBT/wTpGh SL5BfZDIQvlzN3INiqTDT5fT+e9VXnLotEeTX18jJmEMIgw1E1SkUXNkX1KjQ9NJRnrGlKMFoEM71 +/ogPpr5G8E31mIgbPOCynvT5b6wGWOzRzbu8fgjgj2EcPIcRXlwlP+A9iDjueYUjvNMy0DcxjMFB cHz7x0VRVPXYR3zbe8u6iBLAMUZ4NSr0AsMElm3zLnSf3jnlUMq16I1IjHhhYZdnyNUiNNoXgsY31 pPYqFkwGUgZezkhHGJTl6hnRnteggsjPqBwKDt7MVPmEH8ICVGxTnTdr7Ze4Xs/WLPQKV6t2r2D5e rg+k8yMw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lPwWO-00Fez6-CC; Sat, 27 Mar 2021 00:09:47 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 27F9698108D; Sat, 27 Mar 2021 01:09:43 +0100 (CET) Date: Sat, 27 Mar 2021 01:09:43 +0100 From: Peter Zijlstra To: "Joel Fernandes (Google)" Cc: Nishanth Aravamudan , Julien Desfossez , Tim Chen , Vineeth Pillai , Aaron Lu , Aubrey Li , tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, torvalds@linux-foundation.org, fweisbec@gmail.com, keescook@chromium.org, Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini , vineeth@bitbyteword.org, Chen Yu , Christian Brauner , Agata Gruza , Antonio Gomez Iglesias , graf@amazon.com, konrad.wilk@oracle.com, dfaggioli@suse.com, rostedt@goodmis.org, benbjiang@tencent.com, Alexandre Chartre , James.Bottomley@hansenpartnership.com, OWeisse@umich.edu, Dhaval Giani , chris.hyser@oracle.com, Josh Don , Hao Luo , Tom Lendacky , dhiatt@digitalocean.com Subject: Re: [PATCH resend 2/8] sched: core scheduling tagging infrastructure Message-ID: <20210327000943.GQ4746@worktop.programming.kicks-ass.net> References: <20210324214020.34142-1-joel@joelfernandes.org> <20210324214020.34142-3-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210324214020.34142-3-joel@joelfernandes.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 24, 2021 at 05:40:14PM -0400, Joel Fernandes (Google) wrote: > From: Josh Don > > A single unsigned long is insufficient as a cookie value for core > scheduling. We will minimally have cookie values for a per-task and a > per-group interface, which must be combined into an overall cookie. > > This patch adds the infrastructure necessary for setting task and group > cookie. Namely, it reworks the core_cookie into a struct, and provides > interfaces for setting task and group cookie, as well as other > operations (i.e. compare()). Subsequent patches will use these hooks to > provide an API for setting these cookies. > *urgh*... so I specifically wanted the task interface first to avoid / get-rid of all this madness. And then you keep it :-( I've spend the past few hours rewriting patches #2 and #3, and adapting #4. The thing was working before I added SHARE_FROM back and introduced GET, but now I'm seeing a few FAILs from the selftest. I'm too tired to make sense of anything much, or even focus my eyes consistently, so I'll have to prod at it some more next week, but I've pushed out the lot to my queue.git: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/log/?h=sched/core-sched Also, we really need a better name than coretag.c.