Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp548745ybb; Wed, 1 Apr 2020 05:21:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt2xYb5DIRCkhhh/xQ5utEW9H8kqZ+o4P9dZkAeDKxUNPxCjzoeiqd2flvIh1T2pqOcxaGy X-Received: by 2002:a9d:1e82:: with SMTP id n2mr16621012otn.356.1585743663384; Wed, 01 Apr 2020 05:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585743663; cv=none; d=google.com; s=arc-20160816; b=l6PlLLD0MPYUBbjF3TRKhORFH84JLaL8HR7AGI3kXP/Nb7GIHJAuA5YYJ7JS1hJ5Ma Nd2W8Wk+px/BVGed4GlxhxVvWyNoqtYOA/Jy5fNwyvEvGpw1UmfWwaHabAAG12m5sc5u swoSxzqWsuS/7Sw/PBhSivtcELDlyUGft7C1rsC6oLLieVnn2v0oQhtGcKGkbHyUqH8O kTWpyyMZz3hDq6QIOjDkcN81H7I6IGPvoy4KxS0fEhRqreM/9WXQ95oo1/vTPADVXuWr eMkgdkkTR8i6RLzXXST2Q6ktO7opWRzsuQ3M0OCfHABgHtvd7cPJpJ48+N5jBU2PcW4q LObQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WDTPFa8ZURJktfLOzCbfsD4S80g+FQC7hULNIYlAu7Y=; b=fQOhsAgORiufludZHQL6SuD8C9hcGWn8MVtPR+/+M0LGi22RWngtUJg90Xn2qrqLVp 1NyVGMdaQYIaMaQTWFWX5Qcy2u+mOzEqYHDXORorY0VMz2f2HcLnMK00tOaj3QCn3xb5 HyctKtmlQH7G1hXq1wSGUnpoKrFEBLPseh/k41/uwO9pZXZvR6fxLcGesQgmotrxZ5t6 FMDhc+XMSW6FnQ3Dm3SNQU4Soi/EbuzYl2uyYr3KyOYlwyf2F0Yt5tC6ugeS2ClAWMaE d7+SUXH6pdgX8IID/YBDY2gNBb+brP1rJR5OPXOR2vnQ0Qw4f9wKdhM7m+3H32bGmufw ZuTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YSiPpdaD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si831121oie.125.2020.04.01.05.20.49; Wed, 01 Apr 2020 05:21:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YSiPpdaD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732352AbgDAMUX (ORCPT + 99 others); Wed, 1 Apr 2020 08:20:23 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:37254 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732169AbgDAMUX (ORCPT ); Wed, 1 Apr 2020 08:20:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585743622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WDTPFa8ZURJktfLOzCbfsD4S80g+FQC7hULNIYlAu7Y=; b=YSiPpdaD2AFYP/UwgmCUWPKK59g1V9NyzHfu+50zSp2o/CheNx+h8702hRD8hppTBJO9TZ 4P7pM3DIHEg+aEUPd1euyhysdT7K1lDk2sTrjlPaHLLVY2lm4ThbOas3/I3RHQPLLQ143G 7Z8tzaCcWp6pT9aTQy0bIPSgd1ASkdQ= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-246-d6DRQ9hcPvacWHDTPR7XEQ-1; Wed, 01 Apr 2020 08:20:18 -0400 X-MC-Unique: d6DRQ9hcPvacWHDTPR7XEQ-1 Received: by mail-wm1-f69.google.com with SMTP id y1so2384649wmj.3 for ; Wed, 01 Apr 2020 05:20:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=WDTPFa8ZURJktfLOzCbfsD4S80g+FQC7hULNIYlAu7Y=; b=Ikm3DJ8W3ooU26NI20vLykUDQ6JPpmCj4YaIxw6rrEgv5i82EyEETI9tzCdPdWnvH+ p3wHkGTCdOzYJnfvUPT2i37UkQOPrAf82/AQABB9ZPaLSEWeqgdTVuBs9pjzhTQGpaqd 97+hG07rH6y+C1Wg0gkjOwE8MbIThdkM4gGrKNxzTmbLR6Qqew8S+Acow54KHP52OdBY RB+Oq1DQzjm0eCAX60vaKhpNabMZ7+SNO19yTw9Zy5zUtdvAZbxNbkg5racVHGVWjU1l GsQr0wPSefOWlgGnpqV8XeEa78jrkGUQ/3dwvdE2IctIr2R3m3W8sU8vam3NNj3qyrwB /XqQ== X-Gm-Message-State: AGi0PuZTuz9oHK9DfIqjkvWLrz5my67hUljXT19Cu2zJbTn4+CfuALU7 gWh7CkYKVB/BKpAZ2ZQyu0Ow/RKkTQtBWCMhlP8V+mptdu7YO9YtVvFjHSMC8TC46THM8c+Nw8T 0JTKXa3oew12geRcEHQqe6QvI X-Received: by 2002:a1c:7216:: with SMTP id n22mr3957796wmc.41.1585743617458; Wed, 01 Apr 2020 05:20:17 -0700 (PDT) X-Received: by 2002:a1c:7216:: with SMTP id n22mr3957763wmc.41.1585743617216; Wed, 01 Apr 2020 05:20:17 -0700 (PDT) Received: from localhost.localdomain ([151.29.194.179]) by smtp.gmail.com with ESMTPSA id s15sm2646131wrt.16.2020.04.01.05.20.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2020 05:20:16 -0700 (PDT) Date: Wed, 1 Apr 2020 14:20:14 +0200 From: Juri Lelli To: John Mathew Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, corbet@lwn.net, mingo@redhat.com, peterz@infradead.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, tsbogend@alpha.franken.de, lukas.bulwahn@gmail.com, x86@kernel.org, linux-mips@vger.kernel.org, tglx@linutronix.de, mostafa.chamanara@basemark.com Subject: Re: [RFC PATCH 2/3] docs: scheduler: Add scheduler overview documentation Message-ID: <20200401122014.GW14300@localhost.localdomain> References: <20200401100029.1445-1-john.mathew@unikie.com> <20200401100029.1445-3-john.mathew@unikie.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200401100029.1445-3-john.mathew@unikie.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 01/04/20 13:00, John Mathew wrote: > Add documentation for > -scheduler overview > -scheduler state transtion > -CFS overview > -CFS data structs > > Add rst for scheduler APIs and modify sched/core.c > to add kernel-doc comments. > > Suggested-by: Lukas Bulwahn > Co-developed-by: Mostafa Chamanara > Signed-off-by: Mostafa Chamanara > Signed-off-by: John Mathew > --- [...] > +Kernel forwards the tasks to each class based on the scheduling policy assigned > +to each task. Tasks assigned with SCHED_NORMAL, SCHED_IDLE and SCHED_BATCH > +go to fair_sched_class and tasks assigned with SCHED_RR and SCHED_FIFO go to > +rt_sched_class I think you also need to mention that SCHED_DEADLINE goes to dl_sched_class. [...] > +*poicy:* Value for scheduling policy. The possible values are: > + > +* SCHED_NORMAL: Regular tasks use this policy. > + > +* SCHED_BATCH: Tasks which need to run longer without pre-emption use this > + policy. Suitable for batch jobs. > +* SCHED_IDLE: Policy used by background tasks. > + > +* SCHED_FIFO & SCHED_RR: These policies for real time tasks. Handled by real > + time scheduler. Here as well. Maybe add also a pointer to related documentation? Documentation/scheduler/sched-deadline.txt Thanks, Juri