From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=90.155.92.199 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796026435; b=z9oNC/5KmyH8SJhulcJPlxGxi+yjXtAcNk4GV2Swcq463ahHKVQx3wMayi3CoGN07V1t OV2qxk0lWqSmGytCV029FGt/HR8fax81w2hfb/QdvIhNdc+37aY1ZYGf/VyhKH0Hqii2b B0OV4oRwLCegDYj1p4RGf4V44PcoulsuvrVR4XmGRAarL2++ottHFHwfGNptEJUcYMs3Y M7GmKcjrmTX/sLfkD5E80yCqlPCWzTfaA5OPFi+ts0ZqrPSZ4P9tjy1beG7sTH66dkaMW dcL2mUr4Kqmrdcpdk9jQYGJMWU/IU51vRAUVcAZ2nJ/QA1fFi+CEiMpqh1K7OQjvnyA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796026435; h=DMARC-Filter:DKIM-Signature:Received:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=usQKWZO5e9BNa0aO09c76gRGsHD7exQpLCXz1DiKwpM=; b=h1ZQhQv3VwXcTbvlmvtfp/3QqKfXiB/UlmnXiWtpRwLudFto5+smZt1J2ag5ieax/KnS qHuNULdRui2XaoRzR6jwr+N74wpU6cZiLS7I7tcy4xq+t6rX5BQfCg5zzjuKlFMB2W86q WsO2VUMYcbUK9Hq0wt+OPCGQRiLM6+5XnItc8QhSrzMbT5mxKMXMgEvX6WGtsHtJhQ+VX VZBeKrnc/Fqr1o8AqR56oZVCbAp8ggSgnno1t/ljqnG0nnOnvD3SmRkms3oUMKBCFHZT5 YX5OPBy2DF2LmifouRbnJaP0U4Px/6/T9qZPHrd8pmhFlziAaPTs7BM71iJcrSgM8zg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=VDLRWcni; arc=none smtp.remote-ip=90.155.92.199 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B071606A31C for ; Mon, 30 Nov 2026 08:13:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8B071606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=VDLRWcni DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=usQKWZO5e9BNa0aO09c76gRGsHD7exQpLCXz1DiKwpM=; b=VDLRWcniRgeuvfybTnzzwhS8eT NX6dbkdTS0QKd+oY11kBmqSPAffzLqMiH4qp4H7lz449x2nTCKSmc5BvdqlG14JwJ/RGgVEqGy4df ukm4sUWYq3iEhNuj+EdG3WpZw080i4b4HJjXC1VGuX+d8AAgWvmnO7JrqfKfoXKVBUxSKAJSn75Ra JViO5SBbdv1J3in511wjCMsOJXti+OrUK61B4SGF3s45Wk3uAvfF7T6u2WQvpoRQ2BDHe8DPUzbIw OD18ZSxdGG3dV4b1euu0UBp/B+IY/ADUXQFkQ0i4LIU0rxcrK/K7bQUPaKRRJjoyMn5nVRWyHFpHv xOGfwUNQ==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXwWD-00000009efn-1Pqv; Mon, 30 Nov 2026 08:13:49 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 5423F3011E4; Mon, 30 Nov 2026 09:13:48 +0100 (CET) Date: Mon, 30 Nov 2026 09:13:48 +0100 From: Peter Zijlstra To: K Prateek Nayak Cc: Christian Loehle , Mehmet Fide , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] sched/fair: Skip PELT on !CONFIG_SMP Message-ID: <20261130081348.GJ2668804@noisy.programming.kicks-ass.net> References: <20261129193248.858301-1-mehmet.fide@gmail.com> <4c3bf78f-55e3-411c-92fe-4eabaff6a23c@amd.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4c3bf78f-55e3-411c-92fe-4eabaff6a23c@amd.com> On Mon, Nov 30, 2026 at 09:24:18AM +0530, K Prateek Nayak wrote: > Hello Chris, Mehmet, > > On 11/30/2026 1:23 AM, Christian Loehle wrote: > >> I went by the cover letter of the series, which asked for UP > >> improvements through "well-placed IS_ENABLED(CONFIG_SMP) kind of > >> toggles". If seven of them in fair.c are too many for 7-22 % on the > >> round trips of a UP board, is there a form you would accept? > >> > > > > You'll be glad to hear that I don't call the shots here ;) > > The feeling I get is that scheduler folks dream of dropping support > > for CONFIG_SMP=n altogether if there was a way that they could... > > Peter and Ingo did drop a bunch of CONFIG_SMP specific build handling > since UP builds were failing frequently from not testing those > configs enough but I agree that even "well-placed" sprinkling of > !IS_ENABLED(CONFIG_SMP) is pretty ugly in scheduler path. > > Enabling building with schedutil for UP is the right thing to do IMO > too so ack on that direction. Right, 99% (probably more) of the Linux kernels out there run SMP. It makes absolutely no sense to invest in UP. All it generates are (mostly trivial) build failures that nobody cares about. Now; there was a patch that make PELT less expensive over-all: https://patch.msgid.link/18e8d60c92652608.3137322e32332e3235332e313736.371783.0000sendgmr%40google.com Which is a win for everybody.