Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2576904rdg; Mon, 16 Oct 2023 08:27:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPROMVIJTRM53/Oh8ivKreT4a699r5uZH3zY9FUG4tTlKsn+KIJzWMUq7IdglyIVrg+HsP X-Received: by 2002:a05:6358:9998:b0:133:595:1c with SMTP id j24-20020a056358999800b001330595001cmr38382437rwb.31.1697470057597; Mon, 16 Oct 2023 08:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697470057; cv=none; d=google.com; s=arc-20160816; b=jrD5TdzrVF2JoqCUlXseBWtEjdv7bt/Y6DA1RkNt1ysn8vzMiJh1XIC+JQ4zzfJNpe MNs2i80+G2N2FKWMUb87tzEigj5CfU53sTk7oDEOiQ4SS0fBxNcF54iGWiPeDb2BlbgL B2wwPuFGMYDYptJudXuvwZgNGAKN71VCZpLUZbJEj0+sRRKcDgT7iDKONZQmkDjYQxS4 reN67ZBVPnGQxzgRuEpihFd/MKWiiV9Q+rfOkcQ25lJe5xeHPsDs8IB9C/jZ2kknWh2Q SOtWNLOyo/1XPCzifNJDuhBgXOF6DihNNACvdYGzhWXbhvO/ptixoW8ttXqhDR1Q/uoN 9O/g== 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=+vnVqOEADZxxomxn7khGiOiKoHPmaGPeK7QCbi0CVis=; fh=LgDrgbQyAwwAE6y8VhAxXVJ/dcfQyZODtRKy1gjVqAc=; b=rH0bmfgrwSRdV8fUMLeaUUyQIMu2ganQMRLOEoIuSE7XofJ7XTwaX9QOW3UsVYq4Lr f0RFUReEto1fK6o1TC5F4qjwtKLhmVc+2joCnienhVTg81Ix3ZlB7nXt5f7pWuC/K564 ow7yRDYcaxe+40VknBEx37dYLbHw+oWkzNSOgHYkid+D6jwmfsgNDKBV5/fqkrQ4wJsb B5FHdYEUa++TQ++mkw9US4P+tez7Zt4K/17hCd19+GzXgX4ZDhI+wAi5HvJIfbdKpqHc YLdKhGruR1qKmLbEjP+zR/c2//EMgyWWfsdEFIkhAWCqEb976UOF66Tk7kSjtvUl+WSY Uu+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id a24-20020aa794b8000000b0068fc7ab1fd5si24123pfl.269.2023.10.16.08.27.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 08:27:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id D99A4808EE45; Mon, 16 Oct 2023 08:27:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233741AbjJPP1Z (ORCPT + 99 others); Mon, 16 Oct 2023 11:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233634AbjJPP1Y (ORCPT ); Mon, 16 Oct 2023 11:27:24 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D4F3EA for ; Mon, 16 Oct 2023 08:27:21 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68EE7C433C7; Mon, 16 Oct 2023 15:27:18 +0000 (UTC) Date: Mon, 16 Oct 2023 11:28:51 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Youssef Esmat , LKML , bsegall@google.com, mingo@kernel.org, vincent.guittot@linaro.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, mgorman@suse.de, bristot@redhat.com, corbet@lwn.net, qyousef@layalina.io, 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, joel@joelfernandes.org, efault@gmx.de, tglx@linutronix.de, wuyun.abel@bytedance.com Subject: Re: [PATCH] sched/eevdf: Toggle eligibility through sched_feat Message-ID: <20231016112851.5cc0ccad@gandalf.local.home> In-Reply-To: <20231015104428.GA11840@noisy.programming.kicks-ass.net> References: <20231013030213.2472697-1-youssefesmat@chromium.org> <20231015104428.GA11840@noisy.programming.kicks-ass.net> 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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 16 Oct 2023 08:27:35 -0700 (PDT) On Sun, 15 Oct 2023 12:44:28 +0200 Peter Zijlstra wrote: > Right.. could you pretty please try: > > git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/eevdf > > as of yesterday or so. > > It defaults to (EEVDF relevant features): > > SCHED_FEAT(PLACE_LAG, true) > SCHED_FEAT(PLACE_DEADLINE_INITIAL, true) > SCHED_FEAT(PREEMPT_SHORT, true) > SCHED_FEAT(PLACE_SLEEPER, false) > SCHED_FEAT(GENTLE_SLEEPER, true) > SCHED_FEAT(EVDF, false) > SCHED_FEAT(DELAY_DEQUEUE, true) > SCHED_FEAT(GENTLE_DELAY, true) > > If that doesn't do well enough, could you please try, in order of > preference: > > 2) NO_GENTLE_DELAY > 3) NO_DELAY_DEQUEUE, PLACE_SLEEPER > 4) NO_DELAY_DEQUEUE, PLACE_SLEEPER, NO_GENTLE_SLEEPER Thanks Peter, we'll give this a try. > > I really don't like the EVDF option, and I think you'll end up > regretting using it sooner rather than later, just to make this one > benchmark you have happy. Note, the benchmark we use is very close to real world settings that we care about. And if we were to go further with Youssef's feature, we would test it by sending it out to 1% of our user base, then 2%, 5%, and so on, with a lot more feedback analysis going on. If it were to cause any regressions, it would likely be noticed during this process, and be able to back out any changes. The main point is, our testing is not around any single benchmark that we are trying to make happy. We really are looking at what makes the user base run better in the real world. > > I'm hoping the default is enough, but otherwise any of the above should > be a *much* better scheduler. > > Also, bonus points if you can create us a stand alone benchmark that > captures your metric (al-la facebook's schbench) without the whole > chrome nonsense, that'd be epic. As I stated above. We don't really care about any one benchmark, but our focus is on our user base. It's not as simple as what facebook would have, as they are server focused and have a lot more information to test with. We are more focused on the quality of chromebooks for kids in school, which is much more difficult to analyze ;-) What we could do, is give you a way to have access to run our benchmarks in our infrastructure if you want to test anything in particular. Would you be interested in that? -- Steve