Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp999764rdb; Tue, 19 Sep 2023 17:42:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnoAKdvhhHMAO3o0CSu/soUNhGQAJa8e9KGWjNif4QVuj9PfaUe+duE/oz5GMC8J4uAylf X-Received: by 2002:a05:6358:63a2:b0:139:8a11:8a00 with SMTP id k34-20020a05635863a200b001398a118a00mr1389546rwh.32.1695170538147; Tue, 19 Sep 2023 17:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695170538; cv=none; d=google.com; s=arc-20160816; b=R89YzflHRlEY5KFag47rkQQ/yP1psBphRizBb3BERXmDKUsa+BhIDDHwKN6XwaO1Ue gfgPvpeh1uo0shzYWtJMqLiqgVtKeen28yPcBmTyALn5I4WHjG7JvvpdBvxLqn3VbwCO rWjDP8mtSHnIBt37eiv252C+aT5ua6aoJ9G5X0L7cag7YGlPFD22iT9S3U7lB+gPwxdC GjuEzFt7AuDb6W4sHRDbNKXxTxSN3IIx01/y1ufwkhAL/sDAptXTeoOEyOAHzW8knxSL 7tfz9q4wusgtnKsPeeCeYu5ka6/JPz/8OJcVbz/s6peJfjrYTF/E99jDKYJzoL1YReZo aR4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Egdihm2RrJ5EhybjlY5bRjL7jGltZYr3L1D/P8P/NWs=; fh=9bgJKpInvbPTT2kvy35E8UnJ9po8LJe6rZzikLgormc=; b=mfsreQhUSqoSCMvbreN+Se3VBiR9vwS9rCH7+t0omGBQPKfEsO3gLrcGOHE3vpLheE 5agNt0+2WCSFfP99NdWjkxgc1qTrNc9xX3sG5cWgXRxnveOgRz6uQkEmpY8dol31GAvw c9pZWr4BtVmVmZlPm13c3Iix33wr7LZfrIMw7giyGPm6NvCZKRYDz/3+qonMaElxIlD+ /WFnwY3L8+gJPoz+1XLaX7t7waPAOh8Tra4RBAQjEZ7QaRJRcGRr+BU4v3xO3WvBMCP+ br+g/k25UevmV0pJvQxt7jME6sbAAhwumXTZdA4jmLUklumn2AEv85awcFUAOdpr1dvA D1hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=n30bbR3C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id i73-20020a636d4c000000b00565e6e7a80asi1236421pgc.349.2023.09.19.17.42.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 17:42:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=n30bbR3C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 38C25801CFCF; Tue, 19 Sep 2023 15:38:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233482AbjISWiA (ORCPT + 99 others); Tue, 19 Sep 2023 18:38:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbjISWh7 (ORCPT ); Tue, 19 Sep 2023 18:37:59 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E955BA for ; Tue, 19 Sep 2023 15:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Egdihm2RrJ5EhybjlY5bRjL7jGltZYr3L1D/P8P/NWs=; b=n30bbR3CEeGQtBtfgECeM+p87Z vz/qgXom1/xwG2gXFgONETH7tqcg2hdsK6DZK+gI/XmZt83CgIydfsAZ73vXOvO9Na6m8IN/uVj4H mgYqX9eCJIheclGvUEUV1RIKmmzanvg8JBwU/C3TGBC+70KY/bVi3Le9eb5/z4kvRvASdqqhyBuvt g8PUfjMZNW9FsVqaZFbyZ/aGOjVIZ4IVwQ3+OSMmlUt6lgGOTZZw1zsvDLsem1ptGG+ueHtzr2iuq olTgJ0ohpvX95brRsfohPJDzR9bIZlIh0Ec0MJ+nFPCd1uV0CJUlDyynBvWJUeOSlQfRudwnRQ5Qy tZqBgm0Q==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qijL5-00DxTR-1i; Tue, 19 Sep 2023 22:37:05 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 6CE92300585; Wed, 20 Sep 2023 00:37:04 +0200 (CEST) Date: Wed, 20 Sep 2023 00:37:04 +0200 From: Peter Zijlstra To: Qais Yousef Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, vincent.guittot@linaro.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, corbet@lwn.net, chris.hyser@oracle.com, patrick.bellasi@matbug.net, pjt@google.com, pavel@ucw.cz, qperret@google.com, tim.c.chen@linux.intel.com, joshdon@google.com, timj@gnu.org, kprateek.nayak@amd.com, yu.c.chen@intel.com, youssefesmat@chromium.org, joel@joelfernandes.org, efault@gmx.de, tglx@linutronix.de, daniel.m.jordan@oracle.com Subject: Re: [PATCH 2/2] sched/eevdf: Use sched_attr::sched_runtime to set request/slice suggestion Message-ID: <20230919223704.GG424@noisy.programming.kicks-ass.net> References: <20230915124354.416936110@noisy.programming.kicks-ass.net> <20230915124822.956946622@noisy.programming.kicks-ass.net> <20230919220708.l2llt2f5xullxzzz@airbuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230919220708.l2llt2f5xullxzzz@airbuntu> X-Spam-Status: No, score=-0.9 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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 19 Sep 2023 15:38:02 -0700 (PDT) On Tue, Sep 19, 2023 at 11:07:08PM +0100, Qais Yousef wrote: > On 09/15/23 14:43, peterz@infradead.org wrote: > > Allow applications to directly set a suggested request/slice length using > > sched_attr::sched_runtime. > > I'm probably as eternally confused as ever, but is this going to be the latency > hint too? I find it hard to correlate runtime to latency if it is. Yes. Think of it as if a task has to save up for it's slice. Shorter slice means a shorter time to save up for the time, means it can run sooner. Longer slice, you get to save up longer. Some people really want longer slices to reduce cache trashing or held-lock-preemption like things. Oracle, Facebook, or virt thingies. Other people just want very short activations but wants them quickly.