From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03E43EB64D7 for ; Fri, 16 Jun 2023 13:00:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344011AbjFPNAQ (ORCPT ); Fri, 16 Jun 2023 09:00:16 -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> 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... :-)