Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6292614rwb; Sun, 11 Dec 2022 23:04:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf4aHi7847MqO0f3AahaqHrZPjZcwhVqT4zd+KMqy+ftPUhSKnEk1+JkriYnirSpV7Biqo84 X-Received: by 2002:a17:902:e34a:b0:189:58a7:be94 with SMTP id p10-20020a170902e34a00b0018958a7be94mr13039110plc.56.1670828666666; Sun, 11 Dec 2022 23:04:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670828666; cv=none; d=google.com; s=arc-20160816; b=0lSM3v33AGrodAr/uQOh0UBAsaW7KFixDF2eFL8w8FQpdB5aczzJi+h81EL5JZKV3W x8Ar0u+kd5xE284c/okKytFF2VzxkOiRaQzxWgNcjnQJHQiKK6PEU2pfBCS6sbckyrp5 3W5E0GfE6AXxwZrnwWVDGHqf7DevAl/ICO7XL5Kd+fTrqxvdFZcN06J6QcGu92JButDL vVv69aOLmah5XotHOzfurKYmpWwxAshKjufznyv27Mj4fqd9P65Q5wuOGMVK1NqkOpkf p8sBYY+8G/oar+0Kku8Cud28WY7CxgIrM3Zp6sRr0nBM/hETcDAwoLZoAizuxyoyJ4QN /4DQ== 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=iqd3gKkLyvEjCH/A2NtZjrzcD9Wgo0FBRk/+2/6c0cw=; b=KWg62YoOpQ4BBESSILKoK4FLWCTTWH0mjx+5kZQgX96vOjXZMI19SS4ShcOsCYAE8e 2RqUXGGx+djahtwYmgWVzVpZLNfdJ8YwIOFkUzqDcWJ94ESfYA9UArXDs193X8cCDuAI fyRH+0N24PZ4Hi0TK8Ow9jp/bBtrMVLH7k8mXhJEHqHEaS9rY7NRrRWxd9vMIb8biXfZ 47v0wa0BxZjM4otkNlv34uWtBUw6BkzguWrTKZMXQJpK9yEzEBa4ciGbcbmp2u/jlM3V dIrddEVVz2Gkf55LG7B9Z92c4HpzX4lp0l4Pk9dXE9eiRNCRRao/vwk7lXYpAaM5y7Xb lNEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="ioblb/Fo"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d7-20020a63d707000000b004541962a9basi8866199pgg.701.2022.12.11.23.04.16; Sun, 11 Dec 2022 23:04:26 -0800 (PST) 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=@gmail.com header.s=20210112 header.b="ioblb/Fo"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbiLLG2u (ORCPT + 76 others); Mon, 12 Dec 2022 01:28:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbiLLG2p (ORCPT ); Mon, 12 Dec 2022 01:28:45 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 990F3B1E9; Sun, 11 Dec 2022 22:28:44 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id b13-20020a17090a5a0d00b0021906102d05so11073592pjd.5; Sun, 11 Dec 2022 22:28:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=iqd3gKkLyvEjCH/A2NtZjrzcD9Wgo0FBRk/+2/6c0cw=; b=ioblb/FoYr1EIHwH1omz15qxpGMjlvcSeotTK20Ps0a0+eITH9r5WF8qJZq58R4B2R oazkixrQ8+XM/MLK622RshEBhE2Us/8malzNSTePq5FvpDBVjfbjIkOSWibBS2O+M+/b yN1UZsMEEmlE9eeEmdgs0ofLNXWya1nb3obnISoQtH7TE9a36ePmQyabwvD2D9sGpOdo J0i7TkPSyWO83Apn0mDIJ35s87xnr9+7sJ67zKch2lSQJTZCoeW2lr0OThceao4E9vRe IVVlJl7GzAdmTByc1VUcB8lo0khBuWUQJ67ZVKmvL4U5KOAD4oMQLULrx38iVs83PZn0 aNBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=iqd3gKkLyvEjCH/A2NtZjrzcD9Wgo0FBRk/+2/6c0cw=; b=wDqjcTNkDzyjSSIzOY/Kxrw+9CA4VvfzHlW9kgQRXzDGbZG+OBfjUoY2D8kRED3D+7 FRCF+sy7+b9nLG0YZtiPPMjHMwwHCGR0/dVC3s8U5BPpF+3C2lP03IxC0dpQRydDvJDx r1quczpeLlGZfhkonkh5HcTT9/vJxywhxosG/t3mWCzsvlt51idlAcO0Klb8C9dg7kEG 6J8ePhl8GFrozQpNFrW7YA67LDuOavveEfQr3yvsz47Mld2cRuiykH42wOWPaTPqFDp4 V+t8eeB/j1mWYIJXfuN7ebruZlHoTP/GMZeXnNMWAkRmvsV2/K2XchZgv7HAUzvcD7IU nG/g== X-Gm-Message-State: ANoB5pkGlHJGApmzKIXmO8ST447BFKQRqwSJvJip1yWdW6N4AGHvY69g 7UZeBdCz9ZWgrlSBVUOffH8= X-Received: by 2002:a17:90a:a00f:b0:220:bad8:b4e7 with SMTP id q15-20020a17090aa00f00b00220bad8b4e7mr8394646pjp.7.1670826523863; Sun, 11 Dec 2022 22:28:43 -0800 (PST) Received: from localhost ([2620:10d:c090:400::5:9159]) by smtp.gmail.com with ESMTPSA id 27-20020a17090a035b00b00219186abd7csm4626602pjf.16.2022.12.11.22.28.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Dec 2022 22:28:43 -0800 (PST) Sender: Tejun Heo Date: Sun, 11 Dec 2022 20:28:41 -1000 From: Tejun Heo To: Bagas Sanjaya Cc: torvalds@linux-foundation.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@kernel.org, joshdon@google.com, brho@google.com, pjt@google.com, derkling@google.com, haoluo@google.com, dvernet@meta.com, dschatzberg@meta.com, dskarlat@cs.cmu.edu, riel@surriel.com, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-doc@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH 28/31] sched_ext: Add Documentation/scheduler/sched-ext.rst Message-ID: References: <20221130082313.3241517-1-tj@kernel.org> <20221130082313.3241517-29-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 Hello, On Mon, Dec 12, 2022 at 11:01:42AM +0700, Bagas Sanjaya wrote: > On Tue, Nov 29, 2022 at 10:23:10PM -1000, Tejun Heo wrote: > > Signed-off-by: Tejun Heo > > Reviewed-by: David Vernet > > Acked-by: Josh Don > > Acked-by: Hao Luo > > Acked-by: Barret Rhoden > > No patch description? Really? Please write one. That's unnecessarily grating. I can add some blurb but here's an honest question. What pertinent information would the description contain that shouldn't be in the doc itself? > For patch subject, better write "Documentation: scheduler: document > extensible scheduler class". Sounds good. > ---- >8 ---- > diff --git a/Documentation/scheduler/sched-ext.rst b/Documentation/scheduler/sched-ext.rst > index a2ad963b227a1b..404b820119b4a4 100644 > --- a/Documentation/scheduler/sched-ext.rst > +++ b/Documentation/scheduler/sched-ext.rst > @@ -15,7 +15,8 @@ programs - the BPF scheduler. > > * The system integrity is maintained no matter what the BPF scheduler does. > The default scheduling behavior is restored anytime an error is detected, > - a runnable task stalls, or on sysrq-S. > + a runnable task stalls, or on invoking SysRq key sequence like > + :kbd:`SysRq-s`. > > Switching to and from sched_ext > =============================== > @@ -35,7 +36,7 @@ case, all ``SCHED_NORMAL``, ``SCHED_BATCH``, ``SCHED_IDLE`` and > ``SCHED_EXT`` tasks are scheduled by sched_ext. In the example schedulers, > this mode can be selected with the ``-a`` option. > > -Terminating the sched_ext scheduler program, triggering sysrq-S, or > +Terminating the sched_ext scheduler program, triggering SysRq key, or > detection of any internal error including stalled runnable tasks aborts the > BPF scheduler and reverts all tasks back to CFS. > > > > +A task is always *dispatch*ed to a dsq for execution. The task starts > > +execution when a CPU *consume*s the task from the dsq. > > Sphinx reported two warnings: > > Documentation/scheduler/sched-ext.rst:117: WARNING: Inline emphasis start-string without end-string. > Documentation/scheduler/sched-ext.rst:117: WARNING: Inline emphasis start-string without end-string. > > I have to replace with quotes (since "dispatch" and "consume" have different > meaning in this context): > > ---- >8 ---- > diff --git a/Documentation/scheduler/sched-ext.rst b/Documentation/scheduler/sched-ext.rst > index 81f78e05a6c214..a2ad963b227a1b 100644 > --- a/Documentation/scheduler/sched-ext.rst > +++ b/Documentation/scheduler/sched-ext.rst > @@ -114,8 +114,8 @@ there is one global FIFO (``SCX_DSQ_GLOBAL``), and one local dsq per CPU > (``SCX_DSQ_LOCAL``). The BPF scheduler can manage an arbitrary number of > dsq's using ``scx_bpf_create_dsq()`` and ``scx_bpf_destroy_dsq()``. > > -A task is always *dispatch*ed to a dsq for execution. The task starts > -execution when a CPU *consume*s the task from the dsq. > +A task is always "dispatched" to a dsq for execution. The task starts > +execution when a CPU "consumes" the task from the dsq. > > Internally, a CPU only executes tasks which are running on its local dsq, > and the ``.consume()`` operation is in fact a transfer of a task from a > > Otherwise the doc LGTM. Will apply the suggested changes. Thanks. -- tejun