Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3340482rdh; Thu, 28 Sep 2023 08:55:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/ySAotINjMEqrpopCZnT4l48elGD3/1eeVLY/Usz4W3QFujm2dZULt8cbM8Qld7DcZOJt X-Received: by 2002:a05:6358:4297:b0:143:9b23:e850 with SMTP id s23-20020a056358429700b001439b23e850mr1818035rwc.24.1695916532474; Thu, 28 Sep 2023 08:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695916532; cv=none; d=google.com; s=arc-20160816; b=B4RnibFkxLrUlrkpf3Kg86Quge2b9d5s43LpOOusTcB6Mp4cpFx+HW4jpoInkzwrCt W9JS6hcnJ2wzCtH/4K2KGfbi6XbtICV+DamBD9b0EynNTXMAuDNcfD1vutIrZ960Q3zc DjjUy06YjddKqU1jciVgd/hz80MYb8h5Auzdn2k/dHxsuIGny0K2iS/VPCrZ5GxGLsWm RATmEDvhryXj5NFUwVbtGzPZpgZqyAAdZTts3VVJO1ZyY582mOaK2XKjYhhjvtoA/gi8 ly0L+R0FUld5J43sxdC+3E+n6E9VFIIFrBN/UAo5X8SvnuEhpMN+KE+JForoH796HBlc V9PQ== 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:sender:dkim-signature; bh=f0I8AEvxud0N3U/mCzEd6vO0RsTxP2xVStL4mYXmgZI=; fh=NVZ+kDUQW+pfzvTFRv2gUKoSbLgFAt0mREKJeulldvM=; b=n/efcpbjnSSO9emzkajbiyKQebzvdj2dItSh4/Xo7297FAwymYJOy9BphRPcCj+0oK Xys8cY5JS02+ki4gDTnVZuNXBmxnNZ4MN5Pgt7rQr9f2Ko6F1q4aDRCVO0/G6byPBvyd Cmynh8RWR2J+J6El7dnhj94Sus2M+1HsCDvXsSCqJ/YqKRzPCGglaxcYKKIQJckaE6RH /C5e9Zy8NsOcZgo6vRLKSx3XTDTAJIKoDzsJz9/VuSlVO/KJy5G89agyuthjLYa3HUXi BTnIGzaH7nE8mSlMe4uL4JDKKOx7OTeEvX45EHzOqiU0PuSuqP7brAm+mvYmMZVfsJsq x3ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PerTNBvJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id f20-20020a63f114000000b00578fcb85b89si4720921pgi.726.2023.09.28.08.55.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 08:55:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PerTNBvJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 5C91E80C8763; Thu, 28 Sep 2023 02:19:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231474AbjI1JTC (ORCPT + 99 others); Thu, 28 Sep 2023 05:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbjI1JTA (ORCPT ); Thu, 28 Sep 2023 05:19:00 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75C1DB7; Thu, 28 Sep 2023 02:18:59 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-9936b3d0286so1634513766b.0; Thu, 28 Sep 2023 02:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695892738; x=1696497538; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=f0I8AEvxud0N3U/mCzEd6vO0RsTxP2xVStL4mYXmgZI=; b=PerTNBvJ+Dt5fW+T9e7a+cedIe8KEkvcY/sC6zeSvIkP8x6sFvQxfWmEi1JOWMOHwh PHZzlb1P1q/7/hJioIlhUlJSd8EIEjT4qvk6CusGQNZ7SM7zgbkgwF8GT2eNsBY5jMHL pTCM5fQGDvZ2yLCncSsKdh4gFCAnW8erhwpdXAfKhB0SDUPnJB0eOqER+TO9c4XDTivc eeoVBZ5LNDYbVM3C4FyaDx3Ib6YFPv3mIL2uYdxDX+Nf9iP9qtUY3Q4NGpCosES8OYk+ wjL4rYyitsse4L2mC2IWdHncFsFKs7dYM7RNhb6Wq0cKbwXxxtxytYOFJH9ylXMUmwXa fMJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695892738; x=1696497538; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f0I8AEvxud0N3U/mCzEd6vO0RsTxP2xVStL4mYXmgZI=; b=YB6DwUOVDh783Yb0uwoaR+m85fLsPVgKT4FCr5KcAxh07W4EBj+f7t2JcLmTxMnebt ojoob8LyeUfgW68rwIB8hObj9WHVdW6sxdmWPqcsCzwhKiADB821Rs6Tx2GWQqi0izPE JMRX/IHOc9fJy5Qu4Lahq04tpKGEwDl1RQFsfHPdbOPDrk0WUTlnfufdrAud1dsvsIPP pMn6GkJTb2ymvAlDFFbAv0xQhWjEKhmEYJqOVAPXecaTDVOugkJI/gvONHWhNF5/6+2S szv24WKP+HK5+MZAckXl+tz6jgciZFnS0W/B9J2wGpmMotJtd3v9O1TS+WpaLbIG4JsJ 4ISg== X-Gm-Message-State: AOJu0YwkLl1i87gbErS0N7gSlkDe9fSdOoTBE3sJzFmiDePUG8fr2pjj CeLoWqMkOFLqKPPVN7TV0sE= X-Received: by 2002:a17:906:73ca:b0:9af:159a:5113 with SMTP id n10-20020a17090673ca00b009af159a5113mr768221ejl.52.1695892737505; Thu, 28 Sep 2023 02:18:57 -0700 (PDT) Received: from gmail.com (1F2EF49C.nat.pool.telekom.hu. [31.46.244.156]) by smtp.gmail.com with ESMTPSA id r1-20020a1709067fc100b0099d804da2e9sm10600973ejs.225.2023.09.28.02.18.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 02:18:56 -0700 (PDT) Sender: Ingo Molnar Date: Thu, 28 Sep 2023 11:18:54 +0200 From: Ingo Molnar To: Cyril Hrubis Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org, Jonathan Corbet , linux-doc@vger.kernel.org, ltp@lists.linux.it Subject: Re: [PATCH v2 2/2] docs: scheduler-rt: Clarify & fix sched_rt_* sysctl docs Message-ID: References: <20230927103012.9587-1-chrubis@suse.cz> <20230927103012.9587-3-chrubis@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230927103012.9587-3-chrubis@suse.cz> X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 28 Sep 2023 02:19:24 -0700 (PDT) * Cyril Hrubis wrote: > - Describe explicitly that sched_rt_runtime_us is allocated from > sched_rt_period_us and hence always less or equal to that value. Just some spelling nits: > - The limit for sched_rt_runtime_us is not INT_MAX - 1 but rather it's > limited by the value of sched_rt_period_us. If sched_rt_period_us is > INT_MAX then sched_rt_runtime_us can be set to INT_MAX as well. s/is not INT_MAX - 1 but rather it's /is not INT_MAX-1, but rather it's > /proc/sys/kernel/sched_rt_runtime_us: > - A global limit on how much time realtime scheduling may use. Even without > - CONFIG_RT_GROUP_SCHED enabled, this will limit time reserved to realtime > - processes. With CONFIG_RT_GROUP_SCHED it signifies the total bandwidth > - available to all realtime groups. > + A global limit on how much time realtime scheduling may use. This is always s/realtime /real-time > + less or equal than the period_us as it denotes the time allocated from the s/than the period_us as it denotes /than the period_us, as it denotes > + period_us for the realtime tasks. Even without CONFIG_RT_GROUP_SCHED enabled, > + this will limit time reserved to realtime processes. With s/realtime /real-time > + CONFIG_RT_GROUP_SCHED it signifies the total bandwidth available to all s/CONFIG_RT_GROUP_SCHED /CONFIG_RT_GROUP_SCHED=y > + realtime groups. s/realtime /real-time Thanks, Ingo