Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2630652rda; Wed, 25 Oct 2023 08:07:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFu648/IQ0tSTHjDhWCM+jwFkoQeCXyYWMnS9GLPc9++g8B6L9KJO0OivUrVS4J/gZMNxF+ X-Received: by 2002:a05:6102:475c:b0:45a:d57c:36f9 with SMTP id ej28-20020a056102475c00b0045ad57c36f9mr1661277vsb.22.1698246464277; Wed, 25 Oct 2023 08:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698246464; cv=none; d=google.com; s=arc-20160816; b=JZc/UWFVSMOMA8bGxA/DjdrFTzPLXz37jDBRS6TGEZkbovU+lFHXjSdZqrFG9kvJdD 9E6NUkprjcr9VpYEmxutFqMFNq/MgUp9pd6ExV+QJoew+FlXboYVFGWqOmw97LPMp6Wi 67/pZWah8QH7kw21GrA6FGzdWT+avc7MTBWK7FlJHhWgxhBg+CuWi27VBKmuxpCu28R3 FQ5tyObirrs39v1i3Y+tOubu/ib7ytgGy4wYxO1VbIu3PCc0W+l0OXOp1qFGyhBpDTVA f2Vnlr9Iij86sXPeaI0U4zDYsHjfxWsGzPTxZ2KKR0+9s4JqAPmfwbc2Xd9ciSexlcKm r8fQ== 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=Hm1KvoLbtAnXxyApozy0MVEr9KVg0zVwXACpkNr1eIo=; fh=qs+3pj00Q72KxiZyDxdQrBEzGPfkm8t4CkCoocYEl8o=; b=MHwGYLwRBegUtcLmKyn0HJh2TMOLbvSMt4RG5e+I2++1pC4GJcgL+S3paNB2iv3CIp anOdeQoNWi69+QXaRIUv88QFNVUcwVmVWYPpIGAXW4HqwI2sw40cUFORvvP3nXcF5/JZ VyGN3qLDYZjmGSJiId35bNWNVuK7io8t4l9oCjw4+FPRt5Xy+nyYQ6/6cuosGmGqV/7f Z00aTI0Zn5sM7T/6k4wbl0WtaZt1Rn15llb+OP648tkd3ugMV5o1nOqpf42/Xq5RATQf W88SES83HbCzBqZSmUH9Z8fHTc37fSDwfrUV/s29amoZ7TiRi+GoEE/KuR10x+HRx3px cZvA== 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:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id h25-20020a67f899000000b00452a76a181asi1240977vso.790.2023.10.25.08.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 08:07:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id EF1ED812E005; Wed, 25 Oct 2023 08:07:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234194AbjJYPHT (ORCPT + 99 others); Wed, 25 Oct 2023 11:07:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232072AbjJYPHS (ORCPT ); Wed, 25 Oct 2023 11:07:18 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E6D6128 for ; Wed, 25 Oct 2023 08:07:16 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41E8CC433C7; Wed, 25 Oct 2023 15:07:12 +0000 (UTC) Date: Wed, 25 Oct 2023 11:07:09 -0400 From: Steven Rostedt To: Mathieu Desnoyers Cc: Peter Zijlstra , LKML , Thomas Gleixner , Ankur Arora , Linus Torvalds , 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] sched: Extended Scheduler Time Slice Message-ID: <20231025110709.3e28861a@gandalf.local.home> In-Reply-To: <48573a20-19d9-4400-a35e-86bf3dc043ad@efficios.com> References: <20231025054219.1acaa3dd@gandalf.local.home> <20231025102952.GG37471@noisy.programming.kicks-ass.net> <20231025085434.35d5f9e0@gandalf.local.home> <20231025135545.GG31201@noisy.programming.kicks-ass.net> <20231025103105.5ec64b89@gandalf.local.home> <48573a20-19d9-4400-a35e-86bf3dc043ad@efficios.com> 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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 25 Oct 2023 08:07:30 -0700 (PDT) On Wed, 25 Oct 2023 10:53:38 -0400 Mathieu Desnoyers wrote: > I don't have an informed opinion on whether the proposed heuristic is a > good idea or not, but it should definitely be implemented as an If you want to get an informed opinion, you can start here: ;-) Thomas's first reply that had me think about this solution: https://lore.kernel.org/lkml/87cyyfxd4k.ffs@tglx/ My reply that started it: https://lore.kernel.org/lkml/20231024103426.4074d319@gandalf.local.home/ > extension to rseq as suggested by Peter. I've even made the whole rseq > ABI extensible to accommodate those additional use-cases. > > In the initial rounds of rseq implementation, I even called rseq "kTLS" > because I expected it to be extended and eventually become an ABI that > contains various per-thread fields which are shared between kernel and > userspace. > > So don't let the specific naming of the rseq system call stop you from > extending it for other purposes when per-thread shared memory between > kernel and userspace is needed. Setting up various per-thread areas like > this on thread creation is not free: it requires additional system calls > on thread creation. It really makes no sense to have more than one. Thanks for the feedback Mathieu. This may indeed be the interface I am looking for. -- Steve