Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2621245rwd; Fri, 16 Jun 2023 06:14:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ787SzDBHxk17NQE5ZY9r8Y0uJoDxLPF6d2ApBRS2+HpZVjJ6ahG8EGG5vPMN/JpYbJImJl X-Received: by 2002:a05:6a20:158a:b0:10c:467a:536f with SMTP id h10-20020a056a20158a00b0010c467a536fmr2849273pzj.14.1686921291645; Fri, 16 Jun 2023 06:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686921291; cv=none; d=google.com; s=arc-20160816; b=eLK2GUvah9tFEfMNJLIzTZkvc9Qmtuj9q/Pth9BAG5giTbNaU2b+fZupfy9l9UzJX6 D8SP3j8Ix/aUseJtpERf2wSR7EIVBlftltH1vUc6N6RxDA3CrOXk2o65rjcAa1/4AQn3 9y20vodi+MoaWDbGrhEUvKmQXyxQTTGeImFEwYXgf9mkWgTBuMbGGP8opt6L7QCw/4sj 11IUgNd5PXWrh2zOWoOiur24mOgiX5I+naXqI0y7NHTpSyrr+lETYrl7dJmbXdV7Imv5 ffJ4BL1DQEs+7yBxdbej9sA5Fb/wg7BbCY+s6tA+RieXQH2rQfGc5+MxmuVnAskFQ8uM 5wTA== 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=gqK+3KsGUGOMq8M8tTFeaLnp1A2G//WBIl2/x8oKhVE=; b=pFBntsoT+bv/q1/pNg/srW+zCy7Ngnur8K+fe+xSlHEGFJwqNzA7xzy0YppzaDTYOZ v8S2iTmwrlXDwGPIoL+Bqp+g/C7TuZmm/wKa3LtBQ3MJ0YIInqbTT03BmBYUkf2lWnxs khyEA1p0ipQIWivDaGhvnyWcK2aoBrxHhIWzvfeLXdAj+fsnsJTpvq+aJ1R2MvZDdQAf FW83XJaEPiaDBcf4LwDSA5FN0ksPZ4T4UKx92Qtto6QOP5W1mLbrL9H3koOWGJFRdrzN oKCl4sRBAP/3/ntMjZ2gxBEsComqZfazz0bL1eYXlX1ShIKpWw1XplIUU08p1uSbxnlt DC7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=GGJxhuEN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r9-20020aa79ec9000000b0063b54679d0dsi4062208pfq.44.2023.06.16.06.14.37; Fri, 16 Jun 2023 06:14:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=GGJxhuEN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245258AbjFPNAP (ORCPT + 99 others); Fri, 16 Jun 2023 09:00:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345604AbjFPNAF (ORCPT ); Fri, 16 Jun 2023 09:00:05 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 233AC1BF8 for ; Fri, 16 Jun 2023 06:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=gqK+3KsGUGOMq8M8tTFeaLnp1A2G//WBIl2/x8oKhVE=; b=GGJxhuENkgCZS/h4JJhbgI8Vu1 ezHgFnloGG/Zw+bqxn2bgIpzjpdrtEqW7o5PCDC+/g6L3oLVaOq529I3K2D/093u5VHnZZ7VZ63XV ndjBUQwpR5Dkybg+xkPAnxpZhd/mFGtUUeVVPhQ1bolqdex1g4oq+l6pcp+AP1v1ocvarCvg/+ARS xKwf5S9+eR4oSkXHRUwD31gqtOLarquq/92XZvTUXxz4zFySu109Hg0nLSYXoj5/3ohbvMHnxopxo A5jPfZBWeXl3e6/TGS6oPwoRxqZgXUvH8JKLidi/CZByKeztRRsaAT5uqT3Nj9bshWGB7w8EsiFQ2 c3ffp0/A==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qA93M-0091BP-Dn; Fri, 16 Jun 2023 12:59:48 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id BC29430020B; Fri, 16 Jun 2023 14:59:46 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 791E327438941; Fri, 16 Jun 2023 14:59:46 +0200 (CEST) Date: Fri, 16 Jun 2023 14:59:46 +0200 From: Peter Zijlstra To: Daniel Bristot de Oliveira Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org, Luca Abeni , Tommaso Cucinotta , Thomas Gleixner , Joel Fernandes , Vineeth Pillai , Shuah Khan Subject: Re: [RFC PATCH V3 5/6] sched/fair: Add trivial fair server Message-ID: <20230616125946.GN83892@hirez.programming.kicks-ass.net> References: <8db5a49ea92ad8b875d331d6136721645a382fe8.1686239016.git.bristot@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8db5a49ea92ad8b875d331d6136721645a382fe8.1686239016.git.bristot@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 08, 2023 at 05:58:17PM +0200, Daniel Bristot de Oliveira wrote: > +void fair_server_init(struct rq *rq) > +{ > + struct sched_dl_entity *dl_se = &rq->fair_server; > + > + init_dl_entity(dl_se); > + > + dl_se->dl_runtime = TICK_NSEC; > + dl_se->dl_deadline = 20 * TICK_NSEC; > + dl_se->dl_period = 20 * TICK_NSEC; > + > + dl_server_init(dl_se, rq, fair_server_has_tasks, fair_server_pick); > +} These here numbers should obviously become a tunable somewhere... :-)