Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2243800rdf; Mon, 6 Nov 2023 08:30:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHebjhPskQTJ6tX4EmllZe/TwfuPxUfgmy4dFfFzzI06Bp2aH5pughUnLmzht3RjuXDJG1r X-Received: by 2002:a17:902:d4c3:b0:1cc:6ab6:df26 with SMTP id o3-20020a170902d4c300b001cc6ab6df26mr18516104plg.49.1699288235187; Mon, 06 Nov 2023 08:30:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699288235; cv=none; d=google.com; s=arc-20160816; b=K5gCgOE2v6yy9mhdIPwxrPhOBtJm5VyNLzO0DnRY92VrhLuVHKpfDdTohsk0AIotqp E3RLDbAXOa3YQlyrtzqOrTCMqbsJzlupx1Xt6t/wVitLiIrRZ0V1t2GAg4flnd1kcmxY ywpnAYDgL+1mLomCM7SwBv+5vD14jyUMBfrL0Pn1tfT3cJAIn4rLQux+x3KZMvX674GF vMEH7pHeTxx51J4icy1Q3Pw98VcjYOzH3kn6Qc17d+lY4vZeyEON7jy2WgZroWIF5033 TWxpiziQ7i9zp21qH1VQdNcZG6mlECSUDdmPZGwhyyb73VKyhOB2YdiMqyJhKnxgFxqJ xqcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=etGWic+iykJ/AeoY7Dw44/Z2P15AM67Jxxav7haO9b8=; fh=FeeAaZoYUVQTMU6sTicNme6p5Jcxuah+SIsIVXNAiCU=; b=zGDqdyK6LXzD+8yQuTsRUii26slketsyOck238o2n5hGag9Z3IrZ86DcnSNAh7w3bt Tc8UhtzbRFbZ0tHeM7FqrHcoVb5PlLKX/+MCz3B+yOwPdBmcnlZaEmJNcDc+iBosoZ8j nAhpLIrnTaFdzU6uLvfperfZHvt2JFNdTXn03cUEkGWW+J7gDrP1h5iho0mK+XHsBf2T uqGQxQlCaF9VepNvS93Z2lVewBd7vmG5tiYv/6QIk6OM/nHfVI215I/BdectUFZa2iiU NiAINBcHMMn7quZI9gx0M2+1Q4R9yf9+0RexixF/g/A4CIXweCXI2Y+xIlkjEaIhA4u9 i+mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L23jUDrB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id u8-20020a17090341c800b001cc686a4128si9210172ple.600.2023.11.06.08.30.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 08:30:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L23jUDrB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 37CB7807E436; Mon, 6 Nov 2023 08:30:08 -0800 (PST) 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 S229974AbjKFQaA (ORCPT + 99 others); Mon, 6 Nov 2023 11:30:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbjKFQ37 (ORCPT ); Mon, 6 Nov 2023 11:29:59 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB51FF4 for ; Mon, 6 Nov 2023 08:29:56 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EC74C433C8; Mon, 6 Nov 2023 16:29:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699288194; bh=Am+PVPrUwLAGoDv2qBi3sFoGiy6NZ955i06iPxaiaOA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=L23jUDrB8Mav93Fm9EA4+JtO5wcbJ4uxFiPh2YwS2mRBqkkznISmXw/rqePNCoF9I 3UWlvS8ikp0reHVCrqmGrrQ39dFkELOsKR+C0yeRxxu9dwOd2XC662t96khucUvodM d8rSu1n4/ivCudpCvPinFeRFSA+YNk8KWRfytf13OcSkgtMmDSvsj1wnjLlGzJYnTz p12tR1H5IlSl6Mw/XiMTEdVO/emvzt2odOgzCzkLqHqa0VG393eXQIL+wu0HmdntQZ /ChfYzeQSH7JUJx/jQ+9742S/KMM/agIfmfYbhd9Ec6fdr76YHrpH6BZFgDxFPoozp JTyljuCuS08TA== Message-ID: <9a7222ed-88f8-4a3f-9d83-09b7fb977c27@kernel.org> Date: Mon, 6 Nov 2023 17:29:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 7/7] sched/fair: Fair server interface Content-Language: en-US, pt-BR, it-IT To: Peter Zijlstra Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , linux-kernel@vger.kernel.org, Luca Abeni , Tommaso Cucinotta , Thomas Gleixner , Joel Fernandes , Vineeth Pillai , Shuah Khan , Phil Auld References: <26adad2378c8b15533e4f6216c2863341e587f57.1699095159.git.bristot@kernel.org> <20231106154042.GH3818@noisy.programming.kicks-ass.net> From: Daniel Bristot de Oliveira In-Reply-To: <20231106154042.GH3818@noisy.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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, 06 Nov 2023 08:30:08 -0800 (PST) On 11/6/23 16:40, Peter Zijlstra wrote: > On Sat, Nov 04, 2023 at 11:59:24AM +0100, Daniel Bristot de Oliveira wrote: >> Add an interface for fair server setup on debugfs. >> >> Each rq have three files under /sys/kernel/debug/sched/rq/CPU{ID}: >> >> - fair_server_runtime: set runtime in ns >> - fair_server_period: set period in ns >> - fair_server_defer: on/off for the defer mechanism >> > > This then leaves /proc/sys/kernel/sched_rt_{period,runtime}_us to be the > total available bandwidth control, right? right, but thinking aloud... given that the per-cpu files are already allocating the bandwidth on the dl_rq, the spare time for fair scheduler is granted. Still, we can have them there as a safeguard to not overloading the deadline scheduler... (thinking aloud 2) as long as global is a thing... as we get away from it, that global limitation will make less sense - still better to have a form of limitation so people are aware of bandwidth until there. > But then shouldn've we also rip out the throttle thingy right quick? > I was thinking about moving the entire throttling machinery inside CONFIG_RT_GROUP_SCHED for now, because GROUP_SCHED depends on it, no? With the next step on moving the dl server as the base for the hierarchical scheduling... That will rip out the CONFIG_RT_GROUP_SCHED... with a thing with a per-cpu interface. Does it make sense?