Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp588626pxk; Wed, 2 Sep 2020 09:28:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQcdLmqKq6FivousV1liSgsA99x/VrmJgEkDYtce9rlIoMm1b0UbGnCe88eUycek/hFkM1 X-Received: by 2002:a05:6402:b64:: with SMTP id cb4mr858472edb.25.1599064082372; Wed, 02 Sep 2020 09:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599064082; cv=none; d=google.com; s=arc-20160816; b=rQ+sPbx1it3wWiDJQg0BlBS025jwSkRZSsj6FMbnPSrsiV5O7fGFc2/Fp+2APIzsBj YYgoIxN8lkFEs7+f5UazpZqgo9XLHtysmzEGgILUfJTXv6euazsitGd03EGAs0mYjcEU p79I1Lq9Q/GU0/RxajVqKwcuBM5Jm2U/HMUuTxD+D7PVP7cZkABTWq5sH4xv51edoofU 5/I/rkoFd/F5MaiRweQnsKz1h8aCr6xzQSHKLrsp0EOCPMJs0ojs77CVntXmVHRiXidr bmpU6oAQ0ANd/pDHXUYSxmX2kr1o5wRdCxT3/lDMlJHiHgLJkN0nczYl/XKosDPvvnsD E2eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=47YQwNjkGGbbE3i7sa2Kuqbb7Myc36HPrhccYNPndjE=; b=xopGMVzR7X6s3aDdg/VDC0wFPDtVjK1fIBQGRO9EHgt45O210qYWhU12rth8ivt5Oa 6PtEkmrF8RpfCQBk3HaQaUHmIVQ1/YPro1qWlKWoVyqZ8lXy+xBdoGL7pl5pZiWqGeVI ksEntoAVk/vdkk+mzuSKUUU5Wmd1iaGnw7xLSylDaUJEbckRu+0LUPTcquYe8A+6NFNn roKrEIXAs7cSkbS5XzGP9bAnZx8c1N+vSrAtpSvJ8cMSYzwUix/jAIzxbc5IK6iebNIl kNn2zvqKLT0zTkvy//PpsQMLn+UQUZ895kmYbdtG101M8F/TrnqxINox9cgBQvDERwIy RR8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@unikie-com.20150623.gappssmtp.com header.s=20150623 header.b=GYEgzlLR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx9si2606716edb.231.2020.09.02.09.27.39; Wed, 02 Sep 2020 09:28:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@unikie-com.20150623.gappssmtp.com header.s=20150623 header.b=GYEgzlLR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727800AbgIBQ0p (ORCPT + 99 others); Wed, 2 Sep 2020 12:26:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726446AbgIBQ0m (ORCPT ); Wed, 2 Sep 2020 12:26:42 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69F55C061245 for ; Wed, 2 Sep 2020 09:26:41 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id 12so105279lfb.11 for ; Wed, 02 Sep 2020 09:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unikie-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=47YQwNjkGGbbE3i7sa2Kuqbb7Myc36HPrhccYNPndjE=; b=GYEgzlLRF5E9KClXQ6VQiRgCtaXfKiCps7bAj9IPVI/YNpT6Vn//aRZd1/RQxSgEvO I1q5GYysfVrZylmChEVF80N3SfIgI/aEwFdmJpyIsv9hrWYpeEPgr6r4Y6qEGxTAhT/1 Qgv5kvnMZ203jNnivOkAcNR68XUH/qf8g0oAPMdel0xQuLLhRgeCOa33Rnr6g9GQm+Vh 4mubMIp2bvVbd6kPmcKjKTlFPjxCNOORselo27s1wmts5zZC/XOZkKnIW0/r1cr8oULj 8A9MGmY3YXxpBDwhXfxgCQxMxx5Dw0suEBDT0MZKbuaQiu1OeqlmnJ7oTg6oZ/zAS2rm HwEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=47YQwNjkGGbbE3i7sa2Kuqbb7Myc36HPrhccYNPndjE=; b=ovCxOp4HWyVOIWIW1j0m0TvbflXkd/lC4z4+3aNcQ3aIYF9r6ubk9lalwvvEYVvMps vuim4xOhHncqnTqm000yh12dpeyKUngzMnhTIaKzNOWR84kA2gkzlziQEAZYKHr/M7Jp U8mxcw9CwH4Gc/PCy5PpDRQrk24zbPwj/SjiJ5iYoCjTfflKAFnd+zuwri9Zq42t0mZT eyx+O0k0bd8DZxvZcW4WXloqo+RrYfQqXlX/uO1zbxagdPCkWx9tMKUVLI72NRcAdcc3 pWajs+gzwbOCa4S/5mQhWo21wfeGqkbIZGiyG317kab1E/k5QYki4MSGqTZKSF8vOi1/ Prhg== X-Gm-Message-State: AOAM531miiJDkyfgNf8mKPMV9mLtinStUPo78X8LHes1Jxg5nx8X1Dmt i5KCyNfASySkUIyZDSbRjfIWWQ== X-Received: by 2002:a05:6512:3087:: with SMTP id z7mr3709857lfd.52.1599063999463; Wed, 02 Sep 2020 09:26:39 -0700 (PDT) Received: from localhost.localdomain ([109.204.235.119]) by smtp.googlemail.com with ESMTPSA id y24sm1191887lfg.75.2020.09.02.09.26.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Sep 2020 09:26:39 -0700 (PDT) From: John Mathew To: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, corbet@lwn.net, 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, tsbogend@alpha.franken.de, lukas.bulwahn@gmail.com, x86@kernel.org, linux-mips@vger.kernel.org, tglx@linutronix.de, willy@infradead.org, valentin.schneider@arm.com, John Mathew Subject: [RFC PATCH v8 0/3] Add scheduler overview documentation Date: Wed, 2 Sep 2020 19:26:28 +0300 Message-Id: <20200902162632.10271-1-john.mathew@unikie.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series updates the scheduler documentation to add more topics wrt to scheduler overview. New sections are added to provide a brief overview of the kernel structs used by the scheduler, scheduler invocation, and context switch. Previous version of the patch was reviewed at: https://lore.kernel.org/lkml/20200527084421.4673-1-John.Mathew@unikie.com/ version 8: - Rebase version 7: -Fix overview description -Removed rst headers -Removed kernel-doc for struct rq and meged it as struct member comments version 6: -Fix typos. version 5: -Fix description error on CAS version 4: -Added section on Capacity-Aware Scheduling -Reworded CFS recently added features. -Removed vruntime description from scheduler structs -Added description of idle and stopper sched classses version 3: -Fix spelling, spacing and typo errors. version 2: - Remove :c:func: directive as it was redundant - Limit document width (line symbol count) to 75 - Replace dot file with ASCII art - Describe prepare_task_switch(), ASID use, kernel/user transtion, MIPS FPU affinity correctly - Add missing references to files - Removed internal APIs from scheduler API reference - Described rq struct member as kernel-doc comments - Replaced CFS history with CFS current status - Added documentation for sched_class fields - Refined explanation of context swtich functionality - Replace CFS history with recent changes - Added kernel-doc comments for struct rq John Mathew (3): docs: scheduler: Restructure scheduler documentation. docs: scheduler: Add scheduler overview documentation docs: scheduler: Add introduction to scheduler context-switch Documentation/scheduler/arch-specific.rst | 14 + Documentation/scheduler/cfs-overview.rst | 59 ++++ Documentation/scheduler/context-switching.rst | 126 ++++++++ Documentation/scheduler/index.rst | 34 +- .../scheduler/mips-context-switch.rst | 89 ++++++ Documentation/scheduler/overview.rst | 297 ++++++++++++++++++ .../scheduler/sched-data-structs.rst | 176 +++++++++++ Documentation/scheduler/sched-debugging.rst | 14 + Documentation/scheduler/sched-features.rst | 25 ++ Documentation/scheduler/scheduler-api.rst | 24 ++ .../scheduler/x86-context-switch.rst | 55 ++++ kernel/sched/core.c | 21 +- kernel/sched/sched.h | 63 +++- 13 files changed, 978 insertions(+), 19 deletions(-) create mode 100644 Documentation/scheduler/arch-specific.rst create mode 100644 Documentation/scheduler/cfs-overview.rst create mode 100644 Documentation/scheduler/context-switching.rst create mode 100644 Documentation/scheduler/mips-context-switch.rst create mode 100644 Documentation/scheduler/overview.rst create mode 100644 Documentation/scheduler/sched-data-structs.rst create mode 100644 Documentation/scheduler/sched-debugging.rst create mode 100644 Documentation/scheduler/sched-features.rst create mode 100644 Documentation/scheduler/scheduler-api.rst create mode 100644 Documentation/scheduler/x86-context-switch.rst -- 2.17.1