Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2649747rda; Wed, 25 Oct 2023 08:34:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnznnshlWUeJIfC7uUJdm86o/gatp5gbJtFKaLz5bq9WiQyTPNWoBDcVmDCNK2qNOK+N0e X-Received: by 2002:a05:6808:2ca:b0:3af:585:400b with SMTP id a10-20020a05680802ca00b003af0585400bmr15548329oid.58.1698248061712; Wed, 25 Oct 2023 08:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698248061; cv=none; d=google.com; s=arc-20160816; b=Cyo+dHNnaM3QOPcm4o4qkDHyaym5eW/bVvJVl7bMJGzMN7DKeXkHU0AKEr14aaPT80 cMTt3ZM8bt5xMEsPUcEoMB8XP6zVWJk5kNM0wHBGIMRQF3Fek3jz1iBk57vJn0TeAaC5 zEhAI2pgHAR2ox5IgWn6+zlCRwb7Y4jAwI/LaqSlcRdnZDs09HnBEdF5EifDHF9oKgG8 T/piKELmE3RJkig2LCIh9tGFAkim1RnUKUnJHz7fwR/2Tl4y7A6ttqeMMxK0NrlVJafx aZB+gQlCxwVlZdRLEwTyw7v0AnBD1pQY6Ru8/vnc3iKZxlAfLcL/cMsELQql5U6rz6rb Ee3Q== 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=vBo1ApkgfdKsgDTFhS3SS7v+ogxu/lxLmTI2wTaTITw=; fh=TDGgBrD3YKlFJTwp1zDrPail1keqgf9UVyGuu16aPsc=; b=yYBNn0KmjD7HTbCUg3+2aoGFq+Ogv+x9FNu+/p+S7SgkklHwyRjKxclc9hKnU6EIbY iIMDR6rLcUQwseKtAIF7ArnfM1uHEQK5qW4w/gOxNTK/YJds49fJ9tekH/ssOULHH6Sw FTco/uIK3ZbmQpLWBQv1OtU/Uht62Sx5vSbOLHCASvCOZF3+HPDOnyVpw2AnHc8NpEfJ o1nta/f/rcM82n1n4CyMWfwlng48rgVdSy3TuboLyLsOiWT0mKPdZzsujxZChLj7LTcN KBZdua8iMTmJo9wgD24VyeP9N38EcNwjpJrBitswoGWeRmBoHN6mLTDStcMQOExCtcOr 9EtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=dwIh3jMq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id h30-20020a25b19e000000b00d9fef9f5b05si6954421ybj.88.2023.10.25.08.34.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 08:34:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=dwIh3jMq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id EE91A80743D4; Wed, 25 Oct 2023 08:34:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344756AbjJYPeN (ORCPT + 99 others); Wed, 25 Oct 2023 11:34:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344230AbjJYPeL (ORCPT ); Wed, 25 Oct 2023 11:34:11 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B14012A for ; Wed, 25 Oct 2023 08:34:09 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-9ba081173a3so919387766b.1 for ; Wed, 25 Oct 2023 08:34:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; t=1698248047; x=1698852847; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vBo1ApkgfdKsgDTFhS3SS7v+ogxu/lxLmTI2wTaTITw=; b=dwIh3jMqPiNk83VoAs0k0NG82I4jbwq+qf0/IiOyWdur6YCmijmTj94LWWosyy0TY6 TeZO3TAqA1b+6kzCuzb6LDHIwqC00im6BLsEOeaEZ//JF2lqJAwR6vs7MeykUhVrPyTq cmeBbgWAx3FOEgp9M/HjNC3m3N4il0zoQTPCk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698248047; x=1698852847; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vBo1ApkgfdKsgDTFhS3SS7v+ogxu/lxLmTI2wTaTITw=; b=sYF5ysSK9PsImZfsrm2B07Dxurid6uiHkhEyZpOMpuuFcKJXz84mQro/FbbMSbILGs lf3Ue9EHyp4oguAv4QPcQRVzJyxpsIjNA5tXCv9NRiWFkv76bEYuU2QsbaUd3UHIBAjV MYjurrg5DWzNPZatD3deoeM0urcMOzaFJ5CUFqQbu2kwpZYjQq6k6SyPfxllq8ewDVeI XZWO4fVOuztePAZ9uCT0qNauob6MUqFEaikBkMCSBrTxbhFmYOQIThRybIa1Oz6T0y4B JIcyI9C2H1kwN07NIHWb5ah+btNOrILGKXJB1i1vFoJVSpWKfqZ7rJTY8RIflnjubY9j byeA== X-Gm-Message-State: AOJu0Yy6DUzjIkgFmOJ1JEB3ivCB/K5yRVSO9iseWqaB1uPjDWkzem9f 0tHqONDhH77BsBHtkrrXrLhnUw== X-Received: by 2002:a17:906:c109:b0:9c4:4b20:44a9 with SMTP id do9-20020a170906c10900b009c44b2044a9mr12682145ejc.65.1698248047473; Wed, 25 Oct 2023 08:34:07 -0700 (PDT) Received: from [192.168.1.28] (77.33.185.10.dhcp.fibianet.dk. [77.33.185.10]) by smtp.gmail.com with ESMTPSA id e19-20020a170906081300b009c3827134e5sm10034477ejd.117.2023.10.25.08.34.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Oct 2023 08:34:07 -0700 (PDT) Message-ID: <676c08bc-3714-4824-8743-cf98b45a5ab9@rasmusvillemoes.dk> Date: Wed, 25 Oct 2023 17:34:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [POC][RFC][PATCH] sched: Extended Scheduler Time Slice Content-Language: en-US, da To: Steven Rostedt , LKML Cc: Thomas Gleixner , Peter Zijlstra , 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 References: <20231025054219.1acaa3dd@gandalf.local.home> From: Rasmus Villemoes In-Reply-To: <20231025054219.1acaa3dd@gandalf.local.home> Content-Type: text/plain; charset=UTF-8 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 howler.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 (howler.vger.email [0.0.0.0]); Wed, 25 Oct 2023 08:34:19 -0700 (PDT) On 25/10/2023 11.42, Steven Rostedt wrote: > So, bit 1 is for user space to tell the kernel "please extend me", and bit > two is for the kernel to tell user space "OK, I extended you, but call > sched_yield() when done". I'm not qualified to have an opinion on this. But this sounds quite similar to https://lore.kernel.org/lkml/1395767870-28053-1-git-send-email-khalid.aziz@oracle.com/ . "A thread sends the scheduler this request by setting a flag in a memory location it has shared with the kernel. Kernel uses bytes in the same memory location to let the thread know when its request for amnesty from preemption has been granted. Thread should yield the processor at the end of its critical section if it was granted amnesty to play nice with other threads." Rasmus