Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp448590lqg; Thu, 11 Apr 2024 07:45:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZEDdvfn+UoYBhrn++mQQ1hqfiRsnv1isR/qs1awuKMuzhOpa7LITGPB+//OiQ6iKKl1ftIwhs4K3+YZRCAXuCRrKpIB4WPwgqgXJnbw== X-Google-Smtp-Source: AGHT+IGe4CEbSYOLSAMK40pliKDMFjF+RVxSnHxEPm6qpBaHubL5KWrzDiCJf5F6v/qEzZMfcNB3 X-Received: by 2002:a05:622a:1988:b0:434:8a21:443f with SMTP id u8-20020a05622a198800b004348a21443fmr6349206qtc.64.1712846714094; Thu, 11 Apr 2024 07:45:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712846714; cv=pass; d=google.com; s=arc-20160816; b=cFoFkYdjwezt6hcAaoleJLTSjT8KPiieSzqmeLfcaLIrHLbFelm1ayceHBds+TZtpq ix6UkGfuafKY0QXCfasURICVbJ/94fCZl2UDkOF+O+jDdsmVvtvW21ML3R7qjXmLbnK/ g6fALEsDRiXSAQaSut0fH7x9B6d/VMo6JG7lHQ5PYMeB0Pso7Tei3WxouQtxdS9pPo19 az9OZDXHemaE5rR73YMpUt5k3z2Mthv6FpxL4jz898na8dtHnmQOZhiTxnwJTrlFotla /qDT9DazXOlRFwUM3ux6yWHXllrPLbqcpPy2eWE74+aJaprXklm8L0Y8lHKnpvjys1VD 349w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qv1t8eFWmdekM+4JNneNzP5Db+pE1gAcLNcy+QQxoYY=; fh=kSovh8T8fpnGvbhaSHV8ObgSdNCSh4ix/svYB0gNfEg=; b=vE6mh6qODhHwVGW/VsFbN0tO57tMdvRMOkbiAL4ashys0NEKPq9A/TBQ9P72z99iEx Y/Fm3b548cXQ8jBJ/mFikz9gGyliueMwtk9MWHsee+FiPlsGidtgIsHRP+sMJjMyZqfT 58Gip813xekiARFebt1rtTKWmXHUGHxhfrKyOqbwXKQ8j1Z3pruy8TzBO4o4xkg+mZcz 90uOgM9oRoqxXhEhiVHiEd9r4/+6dk9MMsh47mt/EPsABYRB5cg5SCHuQBF4r2AAdCeg PO20bNw73NXuZ6rIaaUQRCoeyHbHCG2aHC0iKuAmuivDiggr52Zd+K8ry7MqdmgoHiZO IEVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=aVniZs3+; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-140684-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140684-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y3-20020ac81283000000b00431627efa14si1512980qti.411.2024.04.11.07.45.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 07:45:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140684-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=aVniZs3+; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-140684-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140684-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id EE7C11C20D38 for ; Thu, 11 Apr 2024 14:45:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED91C1863F; Thu, 11 Apr 2024 14:43:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="aVniZs3+" Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84FD717C60 for ; Thu, 11 Apr 2024 14:43:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.92.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712846621; cv=none; b=lAtWGf++MFFOVxbsqH7/5hAFSXBFBjU77OQfvaLPEYMKBvNBNDRV+ucGmv0ghAVjBN5iBR+Ru6hwzOMO4e0YwkQvcEytdm7OvA/xNLk+El6GvEgbmg5dbls0NLNPSPh9kpXfALxQGbkpPs32twsYa0JyL+u940zr6vR4L6xyzZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712846621; c=relaxed/simple; bh=gYeTtQfvKPxsXRKWox96oLZ05Hu2i+oxkyWXQLKUook=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cghG6IVnC0bZLBM9cwYWLZuIOFPTTpsyPNBkQOjgMS+kQ09cxK/STwf6LxL4mQ5+7xcdwltqQvIrbP4qNFtRulk18lyx8pNo+po3qe1RWVDKwi+a9npPSaBZJcJQnwzLTZBlmSZe2/Jlm8NSbYyzCyKGULNV94KDi6OY/liGKkk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=aVniZs3+; arc=none smtp.client-ip=90.155.92.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=qv1t8eFWmdekM+4JNneNzP5Db+pE1gAcLNcy+QQxoYY=; b=aVniZs3+gUkbfsGMO/2meZfM4z gkZIFVsDMsZXYwi4DYa+L9v4BpWrCXuAbvpagVtUtwo4ybzfiqQgrRyVPSoU4kH59D4kdFXYeKUMm xCZMYZ2gqEzasuW7/OsivRMUzokmMs5jhnTFzSdAyda+KFhyG9Kf4oXHG6HFon58yX3EqJ2ovO4ao YKyqrU7J+YewxWtYPBKBYmuYhgK9kvK6Pf/peE69engXbgQS2B2qgsrBRB7nBD+Jc3AzBfudxPlvZ Oq0ovrr2Pe++X4nPxKLUz3BhOFWme0ulrtrM+nHaaRS8uJhZSj29iXdZqBLCcqPRHoOwJ/vqpwu/C piraIPYw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruveC-00000008fSy-1Am7; Thu, 11 Apr 2024 14:43:28 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id E87E4300487; Thu, 11 Apr 2024 16:43:27 +0200 (CEST) Date: Thu, 11 Apr 2024 16:43:27 +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 , Phil Auld , Suleiman Souhlal , Youssef Esmat Subject: Re: [PATCH V6 3/6] sched/fair: Fair server interface Message-ID: <20240411144327.GB40213@noisy.programming.kicks-ass.net> References: <1abba9e7f47ad4a5dfd8b2dfb59aa607983cdce4.1712337227.git.bristot@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1abba9e7f47ad4a5dfd8b2dfb59aa607983cdce4.1712337227.git.bristot@kernel.org> On Fri, Apr 05, 2024 at 07:28:02PM +0200, Daniel Bristot de Oliveira wrote: > Add an interface for fair server setup on debugfs. > > Each CPU has three files under /debug/sched/fair_server/cpu{ID}: > > - runtime: set runtime in ns > - period: set period in ns > - defer: on/off for the defer mechanism > > This then leaves /proc/sys/kernel/sched_rt_{period,runtime}_us to set > bounds on admission control. > > The interface also add the server to the dl bandwidth accounting. I suppose most people will want to use it like: for i in /debug/sched/fair_server/cpu* do echo $PERIOD > ${i}/period ecoh $RUNTIME > ${i}/runtime done And I think we agreed to keep this loop in userspace, but memory is vague. The 'defer' thing is dubious though, I don't suppose anybody would ever want to actually change that, other than you while poking around at this code, right?