Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2909932rdh; Mon, 30 Oct 2023 11:05:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKhP3Fq7JJpDZgF5ApIzPP3Vy4udotPqu2xwcYu9Rz66XEzswkYD8PMG5Ou66J0BsHpwUj X-Received: by 2002:a05:6a21:7906:b0:17b:1ab9:5790 with SMTP id bg6-20020a056a21790600b0017b1ab95790mr7620475pzc.50.1698689104919; Mon, 30 Oct 2023 11:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698689104; cv=none; d=google.com; s=arc-20160816; b=s9UJSyICZFbsOlUUKtdGVQiBLOsC8nooavynGZvu3v5NDs5zvDLrsIkzNJdgrvn/RV 2lwtAtemLefl6h8UHZDzmfnW3cw0vhaz25zrvAa0TEDXQxDtOZIVDDHSM20pd4NYMUzk x/u2Pdbp+svoRl7t7Wmf5APxYdxv54oSbw7UoYTMk/amUyDHd8v4E/e/XEXqpk5YT9k1 mAIrnxNzErZAu3r91othr8QHZ+s89phbCUTbhmJWDpOZRTRIMRpuI7ImviwWF7j5KMOI 7fZACPHIZoQnTdxqYpKAbNXEtEhEJsWujVT4JN+gi9rSU89agWsUKCjpWtfyan+/JQR1 PoxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IsUb+9eQD9rHxuBdYUyR9kPRacdqpPCCvMQcjxkflUg=; fh=+9NoAVxPvYwneJyT0oIQDXEcD1IcdcUxuoiJK31fxis=; b=NhYutedx6WosZwJ7tB/JKIrt/iEkRndgwWJy+eg6LyvqOHyeLa+zpmyVtTb8yKygXu FNxiBD/UbltI1Pm6yBw8eXhhEA8Ay7n1h/E6BKoHqsiSbF0TqjjwZnwTFA/E9SkZ9/so gJNIWx3BqUk8O0a6HqZUdJkanidkopCLQXe6D+iv8DJCqpHHRIpHJII4OEC+PAI7zzjP Yqoo0XjQzbyxKOxZnupyazmj2eY07VrXtLtbvX2yGAtU9RnW8LxvTO7PdKsnen7mUhUE Amx0JRWVebomc5VVpnmJtFU1k8fO8JZzlqt+pdMy1BG9yDZMCr/PjS+cRbdubC1vgCJs p7ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=Hxh0JUIM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id v190-20020a6389c7000000b005b928c7b284si5218958pgd.587.2023.10.30.11.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 11:05:04 -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=@efficios.com header.s=smtpout1 header.b=Hxh0JUIM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F4183802C8CC; Mon, 30 Oct 2023 11:05:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbjJ3SEx (ORCPT + 99 others); Mon, 30 Oct 2023 14:04:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbjJ3SEw (ORCPT ); Mon, 30 Oct 2023 14:04:52 -0400 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1D2D9E for ; Mon, 30 Oct 2023 11:04:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1698689086; bh=ydHT5HXh6Ag6yIfOyy0n3n6NmVWPONL5Lz07QfKKJII=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Hxh0JUIMlf04sqOC8ePwr5m+Ol3cmuHirj4HrbrIvVG5lDpeG+tDbJu8iXD3zoj37 4ZEDsHL+2BiZdLi/LNI4xHzysZ4Qpd7qWDAw59xu8OIj7E3dmerfq54D3YWdDrDwlN wMawV6LAnr+sqwTW2XJdWm2MYBV7ZwOcmQ4IcR9tJF6rXbr98CNIfmDnonMq75YBt8 IcgWCcOZs0bEgqQtCgPc2NrpiQ1xj7W43al6zgFasllh2jU6//KcxzQwOWIpPl5J7I cIhXz6Rgw6T0VILrpjMJDER3ilGaDnw8pUE+ojWj1mLurmSi7wV6kR6wen0phKNTw2 wN/Vl8XY2kwoA== Received: from [IPV6:2606:6d00:100:4000:2d85:44b8:ccb0:e487] (unknown [IPv6:2606:6d00:100:4000:2d85:44b8:ccb0:e487]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4SK1Pp2Wmvz1ZQN; Mon, 30 Oct 2023 14:04:46 -0400 (EDT) Message-ID: Date: Mon, 30 Oct 2023 14:05:05 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [POC][RFC][PATCH v2] sched: Extended Scheduler Time Slice Content-Language: en-US To: Steven Rostedt Cc: Linus Torvalds , Peter Zijlstra , LKML , Thomas Gleixner , Ankur Arora , 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, willy@infradead.org, mgorman@suse.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, Joel Fernandes , Youssef Esmat , Vineeth Pillai , Suleiman Souhlal , Ingo Molnar , Daniel Bristot de Oliveira References: <20231025235413.597287e1@gandalf.local.home> <20231026105944.GJ33965@noisy.programming.kicks-ass.net> <20231026071413.4ed47b0e@gandalf.local.home> <7871472b-a0c4-4475-9671-69a3244f956d@efficios.com> <20231026164549.14d45c60@gandalf.local.home> <644da047-2f7a-4d55-a339-f2dc28d2c852@efficios.com> <20231027122442.5c76dd62@gandalf.local.home> <20231027124930.3753cdd4@gandalf.local.home> <20231030094508.031357b4@gandalf.local.home> From: Mathieu Desnoyers In-Reply-To: <20231030094508.031357b4@gandalf.local.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 30 Oct 2023 11:05:04 -0700 (PDT) On 2023-10-30 09:45, Steven Rostedt wrote: > On Mon, 30 Oct 2023 08:56:50 -0400 > Mathieu Desnoyers wrote: >> >> This only works if "your" lock implementation is the only user of this >> RSEQ feature within a process. RSEQ requires that multiple libraries can >> share the facilities. Therefore, the rseq field should include the >> nesting counter as part of the RSEQ ABI so various userspace libraries >> can use it collaboratively. >> > > Then I would suggest allowing bit 31 be an "on/off" switch, and the lower > bits to be a counter. When I first tried this with postgres, there was one > lwlock that looked to be held for the majority of the run, so I got rid of > the nesting. But I think a mixture of both would work, where you can have a > nesting counter and an on/off switch with the caveat that if you use it and > enable it, another library may disable it. If you have the nesting counter, why do you need the explicit on/off switch ? Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com