Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3032173rdb; Tue, 12 Sep 2023 22:47:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGe81Tkhp7juiyrRX5hK+LNxkNeXxm9PRPRf8txq8DvclRlVCbTx9K5WwErg8usy06rfK5J X-Received: by 2002:a05:6870:1493:b0:1d5:f814:56a3 with SMTP id k19-20020a056870149300b001d5f81456a3mr1842265oab.2.1694584035704; Tue, 12 Sep 2023 22:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694584035; cv=none; d=google.com; s=arc-20160816; b=Kf3w1g7jQ8rkv9eQ6QB5SFvBP7uYc1oZJvlHlIc6ogzR8wsyLb23NqUEgipwbmJQB6 7A/GnIOwZcxbN3slG92C6rwlrJgjC9/hWx3V88ylx3damEUuHk9yNoJ0M6HzuOEfzZKx kOLho8WICMgIN7IeEEBQcD4WRG2sSw4PfqGdgvgcuTF1kxh3Y5oPubfDK7uIaBJqmMiS hYt4CSeQL4Q+QVJEDHn9n4ZvLZlW0iJr1DWBsnwLtQKMTDmPukxb7Ip3jBE/U4NBXl3S 8ptm4M4g6f9ZnJhQlSSAC9xazeUiJrPYfwlBl8/w3srvk0wu/6D8cySFBadwIQE+Weca PD2w== 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=5TCd/VnMsUN2Xfg7sAjE+O/bMQ8NXxyvyk4g9OIV6gs=; fh=TQhwKtX69Yeyq5lKu3ICR3WFEwtMRHj0imAo1AyqSu0=; b=w/tSkcSI2SBNuG6WYUxzblE2L1JMe4ObReMdB6cYWfkw1eOVwN7mOjCJ1k6sFfC675 V22tNX4nALEZTBAkH7wH+OXGTM071QkfbRzPZUsBFouf/N9rkBq4K/ce0rHSiJkI/AbN Syv01y+tAqSn8TTzzBDjSzcQ2isFPPyM+aiHKOC21dONIcEaR+GDcZIHP4QygkVuCY7o xqYHPEHeiU0vlreiwasEZF2Se2Pim2LWcsLPV/Xd9SFXgTzHg6TdFZiiDnzhEHhHCn+5 SAsQh7kFahmJe3kNWUtLyhZHreVqbMl+j9qpozolwVs4mgsXXH8jirdoWlRTj2wFCjjA alxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jN91iTAq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id y21-20020a634b15000000b00564997692c5si9443191pga.817.2023.09.12.22.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 22:47:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jN91iTAq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C7A51827FFBD; Tue, 12 Sep 2023 05:34:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235168AbjILMeI (ORCPT + 99 others); Tue, 12 Sep 2023 08:34:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235141AbjILMeH (ORCPT ); Tue, 12 Sep 2023 08:34:07 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42F9F9F for ; Tue, 12 Sep 2023 05:34:03 -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=5TCd/VnMsUN2Xfg7sAjE+O/bMQ8NXxyvyk4g9OIV6gs=; b=jN91iTAqHkXMEwG5tjKOoJZgTs h7vfBm5tgEKymnY709XBHN6mXRzvLY/RlK/iuwQAGWcRCencHAXvRSky1n6i1Uv50iT5FLCvg0Fh+ uXjVCE/AfhgtLUGLP3l0T093oMiiknWbssPvbdav0lBxkpRDzjTrfkNAkJUiVQxdScB0qcyFmbKWb FsFaOhd/SNYgy6D8xM4TJ9wLrhfw8ef0uLRzXQzBiO8XuQAsQa/nHzgvYC69c3o5S3c8+M/tFrltU kqD7tmmP9zddhY5e5QeeiMaKEr7AWnFJyzVuSAJ0xAgpMLFM3NRioZznpcsyjEQoE5uZU8eNk5QBn HJFfpCTw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qg2aa-007aMi-Jz; Tue, 12 Sep 2023 12:33:56 +0000 Date: Tue, 12 Sep 2023 13:33:56 +0100 From: Matthew Wilcox To: Peter Zijlstra Cc: Ankur Arora , Linus Torvalds , linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, mgorman@suse.de, rostedt@goodmis.org, tglx@linutronix.de, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, jgross@suse.com, andrew.cooper3@citrix.com Subject: Re: [PATCH v2 7/9] sched: define TIF_ALLOW_RESCHED Message-ID: References: <20230908070258.GA19320@noisy.programming.kicks-ass.net> <87zg1v3xxh.fsf@oracle.com> <87edj64rj1.fsf@oracle.com> <87zg1u1h5t.fsf@oracle.com> <20230911150410.GC9098@noisy.programming.kicks-ass.net> <87h6o01w1a.fsf@oracle.com> <20230912082606.GB35261@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230912082606.GB35261@noisy.programming.kicks-ass.net> 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 (snail.vger.email [0.0.0.0]); Tue, 12 Sep 2023 05:34:16 -0700 (PDT) On Tue, Sep 12, 2023 at 10:26:06AM +0200, Peter Zijlstra wrote: > > How expensive would be always having PREEMPT_COUNT=y? > > Effectively I think that is true today. At the very least Debian and > SuSE (I can't find a RHEL .config in a hurry but I would think they too) > ship with PREEMPT_DYNAMIC=y. $ grep PREEMPT uek-rpm/ol9/config-x86_64 # CONFIG_PREEMPT_NONE is not set CONFIG_PREEMPT_VOLUNTARY=y # CONFIG_PREEMPT is not set CONFIG_HAVE_PREEMPT_DYNAMIC=y CONFIG_PREEMPT_NOTIFIERS=y CONFIG_DRM_I915_PREEMPT_TIMEOUT=640 # CONFIG_PREEMPTIRQ_DELAY_TEST is not set $ grep PREEMPT uek-rpm/ol9/config-aarch64 # CONFIG_PREEMPT_NONE is not set CONFIG_PREEMPT_VOLUNTARY=y # CONFIG_PREEMPT is not set CONFIG_PREEMPT_NOTIFIERS=y # CONFIG_PREEMPTIRQ_DELAY_TEST is not set