From patchwork Tue Dec 14 20:44:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 12676741 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0AC90C4332F for ; Tue, 14 Dec 2021 20:55:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6159B6B0071; Tue, 14 Dec 2021 15:55:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5C4916B0073; Tue, 14 Dec 2021 15:55:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 48CA26B0074; Tue, 14 Dec 2021 15:55:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0194.hostedemail.com [216.40.44.194]) by kanga.kvack.org (Postfix) with ESMTP id 361AE6B0071 for ; Tue, 14 Dec 2021 15:55:47 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id E697C88CE8 for ; Tue, 14 Dec 2021 20:55:36 +0000 (UTC) X-FDA: 78917605872.21.A376E09 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) by imf23.hostedemail.com (Postfix) with ESMTP id 85D2E14000C for ; Tue, 14 Dec 2021 20:55:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Subject:Cc:To:From:Date:Message-ID: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=evBDxTTQ8+N4iNix5xz5YzD+Ysv8Um0WF6ha9iHDaKY=; b=GC5JOUm2ockglSvsSeGsOK5Nqk zpM+zTeX2TrvVWJ+u1CNfc2OdtKhiF2Z0D1OJyerKAP/Gnlx0T9O02wquCgLpLSWWXx2NQcCNtRpc oBH0xcP2sf3ZwbF4g0EQj1PR2wNnH1QO4oKBDg6+/TDoR1tYWwDdI0Qf/+dbwPHzvH00jls4DZ+ZE L4VI+K60eHsQA3zwx41UPDzOPKUVHAfvuSPjpAG7Vk+WkaeuX6wOWttA/zaJW0asWSkh0Mtg9jKM7 RlS6marRgp7ANLV6T24e1CFvzFyp4xZ/3XHpPC2bkZjBFvloXS6VUkqiip5hnjMRucpXGnOm1A5Nx Cwm0j14w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxEpW-001NMs-In; Tue, 14 Dec 2021 20:55:22 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 5BDF9300728; Tue, 14 Dec 2021 21:55:20 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 0BD83201E7EE3; Tue, 14 Dec 2021 21:55:20 +0100 (CET) Message-ID: <20211214204445.665580974@infradead.org> User-Agent: quilt/0.66 Date: Tue, 14 Dec 2021 21:44:45 +0100 From: Peter Zijlstra To: mingo@redhat.com, tglx@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org, x86@kernel.org, peterz@infradead.org, pjt@google.com, posk@google.com, avagin@google.com, jannh@google.com, tdelisle@uwaterloo.ca, posk@posk.io Subject: [RFC][PATCH 0/3] sched: User Managed Concurrency Groups X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 85D2E14000C X-Stat-Signature: 4jgwh6qmb1k58r7x13w183htzgce56ge Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=GC5JOUm2; spf=none (imf23.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.92.199) smtp.mailfrom=peterz@infradead.org; dmarc=none X-HE-Tag: 1639515332-582509 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi, This is actually tested code; but still missing the SMP wake-to-idle machinery. I still need to think about that. I'll post my test-hack as a reply, but basically it does co-operative and preemptive UP-like user scheduling. Patches go on top of tip/master as they rely on the .fixup removal recently merged in tip/x86/core. Also, I still need to audit a bunch of mm code, because I'm not sure things are actually as well behaved as this code supposes they are.