Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp22918rdh; Wed, 25 Oct 2023 14:57:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFbeIF4w3ushgDJdT+q6HV/VNGae6PP8pVmHImwPfeJCwxPBEn91HIW6DZoQnWiWYEVsJDN X-Received: by 2002:a25:ce94:0:b0:da0:3c22:8374 with SMTP id x142-20020a25ce94000000b00da03c228374mr6976187ybe.5.1698271024174; Wed, 25 Oct 2023 14:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698271024; cv=none; d=google.com; s=arc-20160816; b=mpNQgHK/hO95IRA0MZeDxJRGW0Vx0Nwi3x7zRmcagqyPreNrbSQSm09FPPq+KENDB+ tL7ZIp/0rY82WS5ovqx7uDrneemUvWtlQus011dXhJLCF2ce9V79uqmLILO5tmnGxdz4 6FzWG2e9fVS79+a5WuJ6OeTno9S5c8ldUV0WY2cAM876OG/He6F/QXaHY572GiC6+Imv ztqAilPFcvPP3DGEH8Z2x9+ESwqarRtNh0ERbFDd1bWj1ZLMKY5PonXLAL6HxkyDB0nq mNuRkHff7plwbY1n+azHsg80aF3x8syH5TqUgi+WuPnkq05BcTdPWbUxMXcAElspvUsd K6kw== 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=BLofkpljWgtpFRg6NwH21dicX61bDmfCwkivpcXiM48=; fh=ioSr7XSa/ZkHvOEnrGl0F5k/keuovGmYcb6rFS41sPY=; b=h4HRZssziC4+p56xC8WpNDnyZun9puCfnwI3VGfdeJg0wlkZxhR6yU6uvxosNELH8e oWXLNw2yJKYKn1r274tRT9sBjq6QF+V8U14UP7yu2bKkwqaYEoUaB79pi0wybwKGv92N Fm80zDYtp7yMOxlGPsTHGppQunDJsaYvSqwlpW9NlSUEXhdzhbGvSrSViEetGwSQBQUa 604z/tpDDfyWIO3wLMDPFattRnX2uurH+cnPf2hFmBwx/sjo3TVycfVPHb43Inp/Xtbx sHzH8obDGPllhIpNVCvirUnrm+YYi+HOVlMreN+tkOdGekwaW/IbaIndiwqNaliMpleP J9oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=EKXfRoSm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id c196-20020a25c0cd000000b00d4511062e2esi10914415ybf.483.2023.10.25.14.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 14:57:04 -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; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=EKXfRoSm; 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; 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 pete.vger.email (Postfix) with ESMTP id 47124817DD01; Wed, 25 Oct 2023 14:56:59 -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 S229677AbjJYV4o (ORCPT + 99 others); Wed, 25 Oct 2023 17:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231238AbjJYV4g (ORCPT ); Wed, 25 Oct 2023 17:56:36 -0400 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF799D4E for ; Wed, 25 Oct 2023 14:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1698270993; bh=TA9xzrgkBA6toYmpTWXm43xTIGzbqE9vmGlGdMiPvJU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=EKXfRoSmYTkR+fQlQEuCgyBcvnIUpPLODi9TvWmy9AczK1+e7NAfKkS8otA4kSRcR fJE6CY7NvzF9Xbi8N3DIKAHkkOmllTJ3U0zQ2ChmRrEyXStg/adLZTwclyMeLERggI SVnFxmh2VklAV4J0/UHfSidLb9+7OLwZd1uaydCtDwxe3HbSVanqp6S75TmhBsvN55 NEiKeGmzTYYNdl/n/Af8C2xslG2byNxG8VtGH5sAirPUOy+mdQ1s1WsnYGFTXB0Ekv vo8Cu1GflDhkoXYIJYo8x0gIwuzZTTUQWnztaSun1tThE69AZXpDNO4hmacWWe8tXW yzTAwnjK/QGVg== Received: from [IPV6:2606:6d00:100:4000:582e:ab84:d98b:7516] (unknown [IPv6:2606:6d00:100:4000:582e:ab84:d98b:7516]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4SG2nY4dJxz1Z4N; Wed, 25 Oct 2023 17:56:33 -0400 (EDT) Message-ID: Date: Wed, 25 Oct 2023 17:56:48 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [POC][RFC][PATCH] sched: Extended Scheduler Time Slice Content-Language: en-US To: Steven Rostedt Cc: Mateusz Guzik , 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 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> <884e4603-4d29-41ae-8715-a070c43482c4@efficios.com> <20231025162435.ibhdktcshhzltr3r@f> <20231025131731.48461873@gandalf.local.home> <0d95385f-1be1-4dcf-93cb-8c5df3bc9d0c@efficios.com> <20231025151951.5f1a9ab1@gandalf.local.home> From: Mathieu Desnoyers In-Reply-To: <20231025151951.5f1a9ab1@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 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 14:56:59 -0700 (PDT) On 2023-10-25 15:19, Steven Rostedt wrote: > On Wed, 25 Oct 2023 14:49:44 -0400 > Mathieu Desnoyers wrote: > >>> >>> No, I wouldn't say it's the same as priority inheritance, which is to help >>> with determinism and not performance. PI adds overhead but removes >>> unbounded latency. On average, a non PI mutex is faster than PI mutex, but >>> can suffer from unbounded priority inversion. >> >> AFAIU, this is because PI mutex as implemented by sys futex only boosts the >> priority of the lock owner. In my proposal here the owner would be able to >> borrow scheduler slices from the waiters as well. > > I would be worried that that could cause even more scheduling disruption. > Now we are taking time slices from other CPUs to run the current one? > AFAIU, as we look at the time slices of the waiting tasks, those have meaning in the context of the runqueue they are currently attached to. We first consume time slices from tasks sharing the same runqueue as the owner task. Else, I guess we'd need to migrate the owner task to the runqueue where the time slice is available so we can use it (but only if migration of the owner task is allowed to that target cpu). Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com