Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2716853rdh; Mon, 30 Oct 2023 05:56:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3bKK0mvbzawY8vtQoN07hODe23TlylK919dsaty/w63ISAvy4ote1jRUT4SYOZRFXNxGl X-Received: by 2002:a05:6e02:1846:b0:357:8d71:347f with SMTP id b6-20020a056e02184600b003578d71347fmr16520071ilv.8.1698670615348; Mon, 30 Oct 2023 05:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698670615; cv=none; d=google.com; s=arc-20160816; b=TMRUd2e4BR69koPYVMhGbRRiKCxAsK48oG5dxhyiQc53Me+UtUYII/yiLIgm00y5Ot SqbYFzZtfQN87cFklNZAdIqt9YofGMZBJpr0soZt5w/bcRmBqNxrFEnP0ndsGDbmhAgt OXESvp6dEOjdfDJ0Mi1E39/7kg55KwMOSh6XfcPWJb1ve6xkiJ9BRwFV9jIAdSY2Gnk7 MlSXdaIMMA/wY8EB9DNNRgx9aI1aRM05vGTpLebLXomxxq3CMR40PSs2c/LoWNOPRSd/ 9Tsg5qtQxsJcVflT0p7doZYR9zowqxFNNkqot4YV6IwMuDyFiXtMs/ow3eEMyDDZjm/f ZBYw== 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=yTEaEQCCt25IJ50qTmOgK4mpdEgdJaxM+ZjLXFOA6tg=; fh=+9NoAVxPvYwneJyT0oIQDXEcD1IcdcUxuoiJK31fxis=; b=VvEFFPGkr+JAYf8ONYj71efmltrN7B+Qjat3EkfM02rQ7C68ewO/A2ACOnhlcIEtEt 4PqR8u8i1znPJbyfq6zKTtbR07QE91YQIKokQV246gpkjCXVV7UEE75POGM0whPhK+yB WPrM7e91oC4COx/3DPyUM5A+A6OxFsEv73eRsMPxDTY6WG2k7ceccxe9MsP7Gxf+ehAX e8jKxOoXcRA6DgvYCgC6Xm9Z6n37ambW7E9HbrC2tzuo0Xb+PbVfS7G+9wMTQc6Gw5Gv AubTTUzLBLlrm86TdAO2+y59ta14KmZUZSth4mnJoU18LpNLbsFIgwXDLw/xuK8pp4Iv fqGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=fE3NbRc9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h4-20020a056a00170400b006b61871ae27si5009521pfc.367.2023.10.30.05.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 05:56:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=fE3NbRc9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 6AA1F8068A06; Mon, 30 Oct 2023 05:56:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232531AbjJ3M4j (ORCPT + 99 others); Mon, 30 Oct 2023 08:56:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjJ3M4i (ORCPT ); Mon, 30 Oct 2023 08:56:38 -0400 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05848A6 for ; Mon, 30 Oct 2023 05:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1698670592; bh=sTuGSzxlodREgxcS2UWzIxTYJ0GN5DcFjE0VtX76IPs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=fE3NbRc9/1Qae9xJ15f2b8QPi3Jz7XjazZFaXa7xTg/aPoR5Pa2E5+Ibx/akSB1Gx 9IDAnNU9lfazAasXyaIbFdcXYC27nZiqy/Tb0zgMAtedAVZ68OZBs3CofgdZ92T66F Fh2N73pltZ7zros/GUN/mqYl3qR756zzawajm2xO6/6cmdafuYqmRss9VgaDmUkWEr OaKd5Vn9vlvtyadkFqVOo2SCX+17pDDB1ft6PCLf+T/bonkze/qJ/+LngEcmIzROkb 3Y/zkZG/4hODUOHZyyL9OXY7tILFfZIqKcBCSEIllQMFbJMhpZy4vFVq+vnqMvlJXb sxbld5/DpSrvg== 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 4SJtZ82FF0z1Zr7; Mon, 30 Oct 2023 08:56:32 -0400 (EDT) Message-ID: Date: Mon, 30 Oct 2023 08:56:50 -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> From: Mathieu Desnoyers In-Reply-To: <20231027124930.3753cdd4@gandalf.local.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Mon, 30 Oct 2023 05:56:52 -0700 (PDT) On 2023-10-27 12:49, Steven Rostedt wrote: > On Fri, 27 Oct 2023 12:35:56 -0400 > Mathieu Desnoyers wrote: > >>> Does that make more sense? >> >> Not really. >> >> Please see my other email about the need for a reference count here, for >> nested locks use-cases. > > Note, my original implementation of nested locking was done completely in > user space. > > int __thread lock_cnt; > > extend() { > if (lock_cnt++) > return; > ... > } > > unextend() { > if (--lock_cnt) > return; > ... > } 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. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com