Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2918809rdh; Mon, 30 Oct 2023 11:20:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGhEnAVquVTIRG7B1HdOiiSwasEyM9rzd0kNkqS7pN6lLgo34NCU6VESydKjl8IgRX5kxPW X-Received: by 2002:a05:6a20:8f06:b0:135:8a04:9045 with SMTP id b6-20020a056a208f0600b001358a049045mr11439780pzk.1.1698690012626; Mon, 30 Oct 2023 11:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698690012; cv=none; d=google.com; s=arc-20160816; b=VAKOJjno+QQ6ZUsTO8IhfBFrF88CtNuZ77zZScseoZ5KCH9xEy7Kvp16sIzVUTIhpb gOVRKdQLvcuH3pSUEVyhXBdHst5+htU2tqsKS8soxZfbClQ8ENBAWLqszFvay2TxhJT6 Zs5tGBxKD5ZwrPQ3gaXg7UQv561EyFwM4kugQdCFj2+7XOHm8JWiyGE9nBU19p2kmuZy zRykZ8CD7VMGWhSmfdDEsdnbkF/MANJvzCxxMmFUQ8WDf0MS+IVesJ2NFx/Pbi8HA+mz a4zoPrE2mYUqznlsvPO3SEH/O46xkKcTr9f94CWbMrXsAawKFUixTz7w6at2FZP2/99K zieQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=rGUIcrhBWADm2ArI0FvZZaqSpeoGZS0JzJU/39x5mNU=; fh=SfvE4YKxHarc+4mYRLQvWrf/g5l7JvlvohgguvJ6moM=; b=nVs0BZA/Y7JqFFQf7kH340rAaQnlnLTTtJBMmplvgIJDcNfJB2UE0+zLBuGgO/l9xf KYT6TcOXl3MfTetnHuK745HG14/aXlTtlIc0SXjBrGc15yXS/L5rn64yDuuw/GTeP/IW LZoz/yPwWRAllQopSxSDsbcZJXXgjtVFRBHZuyKwyQ5phicfxqG/i/XnzozxbY5Ho7IU VRSYKpaLdjhcvJDbdjaYyATT3KOsw4VLapqbI1se+aHc3NPE95S+cGT07MWuam0KlcnR xzJjzNfE8W4G2l/m4gYVtIwf3QTsS6zPDcT2SWfHgqawuj9ZemMiEnEx2BmVhublseWe OtvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id a62-20020a639041000000b00578d026e2eesi3919137pge.283.2023.10.30.11.20.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 11:20:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id E9F3380B0258; Mon, 30 Oct 2023 11:20:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231371AbjJ3SUE (ORCPT + 99 others); Mon, 30 Oct 2023 14:20:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230422AbjJ3SUD (ORCPT ); Mon, 30 Oct 2023 14:20:03 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03BA598 for ; Mon, 30 Oct 2023 11:20:01 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3E65C433C8; Mon, 30 Oct 2023 18:19:57 +0000 (UTC) Date: Mon, 30 Oct 2023 14:19:56 -0400 From: Steven Rostedt To: Mathieu Desnoyers 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 Subject: Re: [POC][RFC][PATCH v2] sched: Extended Scheduler Time Slice Message-ID: <20231030141956.05661b90@gandalf.local.home> In-Reply-To: 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> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 30 Oct 2023 11:20:10 -0700 (PDT) On Mon, 30 Oct 2023 14:05:05 -0400 Mathieu Desnoyers wrote: > If you have the nesting counter, why do you need the explicit on/off > switch ? Because I gave up when I found that one of the lwlocks seemed to take a long time (pretty much the entire test) or I couldn't find how it was unlocked (the code isn't trivial). So I just made every unlock disable the extended time slot. I need to go back and enable both a counter and an on/off as I now realize that the spin locks (called within the lwlock) will disable the extend time before the lwlock is released. This should work if I have the spinlocks inc and dec (they are straight forward and all locks are associated with an easily found unlock), and have the lwlock use bit 31 as an on/off switch. Anyway, I would let user space decide what it wants to do, and giving it 31 bits to say "I'm extended" and let user space come up with how it handles those 31 bits. -- Steve