Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2655273rwd; Fri, 16 Jun 2023 06:39:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4QXm/vzb/FYbUouGTur/rltHIBdx0zklZsvB+9q9FhZiUivbWUdZ0P8nouNX3WAe0iM4mJ X-Received: by 2002:a05:6808:10d6:b0:39c:40f4:5bde with SMTP id s22-20020a05680810d600b0039c40f45bdemr2447641ois.41.1686922750270; Fri, 16 Jun 2023 06:39:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686922750; cv=none; d=google.com; s=arc-20160816; b=Ro/Mg65g4xxBcLfjGHxebIQlrAigZ7rSvJy6m6uQIS07+BHfW8F0jsX0ndKUFzTQX3 vQqR4lE1BAIhyjLVan4/7Yr8oJceAObYRxPC0TXsOwYkgcPru+BT1N6VmHBhPT3WNqRD K9xEEOdWk0fXdhs/MpYVjlpqWWV1XW8y13mn1yPsPnQDFezqEYRNGaTIhqFe8i8g2uRA QjwYl/YABWiaDYvvVMF6RImibGiHEQBAczEQQDIst3JmNmDy1Pjf0gb1vr/o/iD8cU8J MIV9L6SgSOPtfGG3WRBJ72O36zR/YNeaGP01sNrbTWI21EVRiJt7Pi5dqxzvuqIFKzL2 EPzA== 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=4mU8x520FLqn0SjM47TmoR73YNkYMrZiFQJZY5V0fU4=; b=d7F3eTZZzTkTjGnl/BSF4hjI/LgL9hYdGqHHvNcrXVeHaSWM60X9oAuqvhoVtjf3fr bJhbhPsWjGXGXNONMettpjqWcvJd1Gws9nD8MhzH4zrNvTsNXoFgo2fkgs/TXYiZTh2E eF0CpPQ24SGq+OL+yuU43yY6kZLJ0bLwQ8ifyaR09XVNWRbWiZzgrxNtMv3aMulnKZmi 7UcDbt/53OrTSc1WbZQSfluYkP9X/4MFt8FS4e3KhwKdxSUzRQOHFUPgyMKOiJHx8uBU Cq++SDOxIYY70758tn3CUyo2D03mLaU7L0zYkQjFZegP49Tyqz4iNGqcFOp6LhTqXtE+ CgOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FVA72heO; 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 bs6-20020a632806000000b0054f78758283si10317003pgb.601.2023.06.16.06.38.58; Fri, 16 Jun 2023 06:39:10 -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=FVA72heO; 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 S1345420AbjFPNND (ORCPT + 99 others); Fri, 16 Jun 2023 09:13:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345450AbjFPNNA (ORCPT ); Fri, 16 Jun 2023 09:13:00 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E87435A8 for ; Fri, 16 Jun 2023 06:12:56 -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=4mU8x520FLqn0SjM47TmoR73YNkYMrZiFQJZY5V0fU4=; b=FVA72heOUJ9o0vpn884c2kCKmw PeG3+gXouMk00gZ86Tfv+gfIy7JephfC+bEIBkAS5NsXGvelKqWv4ORcRNdmITS3Q8Z0zFzPkcIgN +//In3n6hTMt1gbNLvEtgf6wg+Jj2oizWlQOmjDRvaaUBTNv+619o3/k7jYYx4iQJLZ5DNiyvsw7n G9zkJ43I5vxSMSHru5PxzkXqkpTKqt14nGpTVJKgI/Nw6cJPNwW1dxJFP31xOWBEYt5Pnlgby2olx N4S+znAljTdIipaZR/C2WwA8K095UlSuYjjX7DqCzF3QF716YPIoPdf9nEL58JGoDqtjw9iueBm2U Oyj0nS8w==; 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 1qA9Fr-0091oc-Ss; Fri, 16 Jun 2023 13:12:43 +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 65B7230020B; Fri, 16 Jun 2023 15:12:43 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3A1F02743896D; Fri, 16 Jun 2023 15:12:43 +0200 (CEST) Date: Fri, 16 Jun 2023 15:12:43 +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: <20230616131243.GO83892@hirez.programming.kicks-ass.net> References: <8db5a49ea92ad8b875d331d6136721645a382fe8.1686239016.git.bristot@kernel.org> <20230616125946.GN83892@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Fri, Jun 16, 2023 at 03:00:57PM +0200, Daniel Bristot de Oliveira wrote: > On 6/16/23 14:59, Peter Zijlstra wrote: > > 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... :-) > > From sched_rt_runtime and sched_rt_period, no? Well, probably new names. IIRC those are also limits on the whole rt-cgroup mess, so e can't trivially change it without also ripping all that out, and that's a little bit more work. Ripping out the basic throttle is much simpler than replacing all that and should be done earlier.