Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp632279ybm; Wed, 27 May 2020 04:21:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnK4DBDEiuf4yhDZ+rZ05U5DuBIYnqWnFjWc2jF+/q+qzB/ZivzCD7LUBCcxPwCM1NJ0Vk X-Received: by 2002:a05:6402:177c:: with SMTP id da28mr23192139edb.378.1590578464757; Wed, 27 May 2020 04:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590578464; cv=none; d=google.com; s=arc-20160816; b=Vo3ZLkSpxrXMgmy91za+0lYseAKC7khwFv/KanLDo+2uAI6CH6HYUoTmSeyDNNRCHy EmzQyx+US4bw/3kzbW0GM9niiqE8qaL0ep3w3RWlP4auYueQa3CuFxbTjtKblLJ4BvWt qe89YnMXWoyD5BYePBR5+nx03uJOA9r2tBHMrxJxhw32Irlh4Tro7Z8P241VWats40Ft 2gA/eisoKg8V1zo6I7m/xKfEPMNOHUAqOoHMAh1Ow8J97T9j4gIMu7p/B+/8DVN7074o zoEvqgSLkZutmVFNCK2GHKSWhpzmiPHfGSR2J0d9UBUlBtGPzJ5unojHc88xiBbepyNh AkeQ== 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=MFoYK1tdyEHkeM2PPovQEs5479N+lz7pmFiM6Ih3uJk=; b=dfvy+UnQgCZ461/ME8BBMUF8cubFWRIUc2ZHZFkPuWw85UV9zGogHVJlaZcEiGL+Qb WgaD7LPAKtSSa79Y8EpySCLIvy/t5rOTIbgxqnB00meKtqC/1/WSi8cZ20gmQa3WC/u8 HyD6N368n7kKWe+40k354O8MQM5kNHVMX4kwiUlftZEEhAF6F/kPcOsRhLeDBMSH5GFt 77nrwFU6w546RglqnyWrr0hi40euHWjUDLpKzq8XThFIl+OOVf/wmEQHwLg+fg8c/AMS MBC7jDzmSoE3+zX+mxbX6Fg9ziMEpcizndomeCWeETzcJuVbqVEQHXD/Ww5rZWSktNGb ZTCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@unikie-com.20150623.gappssmtp.com header.s=20150623 header.b=olBkgcZi; 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 q19si1328149edc.439.2020.05.27.04.20.40; Wed, 27 May 2020 04:21:04 -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=olBkgcZi; 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 S2387811AbgE0Ioa (ORCPT + 99 others); Wed, 27 May 2020 04:44:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388113AbgE0Ioa (ORCPT ); Wed, 27 May 2020 04:44:30 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1ACBC03E97C for ; Wed, 27 May 2020 01:44:29 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id k5so27866244lji.11 for ; Wed, 27 May 2020 01:44:29 -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=MFoYK1tdyEHkeM2PPovQEs5479N+lz7pmFiM6Ih3uJk=; b=olBkgcZifHmXXUqZg49Yy3KTfO3eNt/7yfrgYYlMTI1MOwKCCjQJcTtGjEoziZYMWQ GQ8uG3CZ/H+3ToPlIJ1xPnu+pSE5SoVzE/IC4gm9MwOgvpY0f2/nQ7nAiujvzA7D3dIi tON6zrDAE5nOO/NeSYpTx37GptVxr0vR8IsjIwcHBUjU7SQ/Yh3OLku8OeVJph2thdJB qB/aE58oM0/96x1QT2+JYAYG8wZy4XWA9nHmQHr8/jTZMD9KgIrYJecQS7j9/DN4Om5O +oY4upzrNgn7N3UBB3f98pydImVaxOylsOcasGl4Q3Y3jueTb5CzjR9dFKEFnaNPbzKv xpaQ== 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=MFoYK1tdyEHkeM2PPovQEs5479N+lz7pmFiM6Ih3uJk=; b=jjhovzkPtsjvlOp/HkaXGqkol3bqYlVoKBi2qTT+/zavxc+lnFa3EUJ2EjAV0MPR53 oIdtFDVDy7x9juMA/SNa3/Kl/jO+8LKc2Z2QMzNzX7QxyyJ1H7YoXMzYnnfG8hkUilws KN3pa7rxM2dnuGDVlXeSKT2DkgN3t7esbCqbbsiE0S4MKwdvnUVhfuiuoQ/rVfLFCN1B rI/o0XzmirbTZeXeg1pme/M0QhJPUwSbHaN5IVpVz2h7+KuMfs6BWjye6CEHoBjgRyF4 hgaYV95HSr/FxNPeUsNKgwF8q9Djo81x7tS9/KYWGI8mEBSf6MpyYoeFi6uJHS/z6z7C 3DfQ== X-Gm-Message-State: AOAM5317PrCvcS9knqx00FnAyW0RxFTPZFvazsAYD+OnFC/IZyp9Gxu8 A2dd+7+MqsLWAv0sxqs3mG6JZg== X-Received: by 2002:a05:651c:2dc:: with SMTP id f28mr2450294ljo.36.1590569068041; Wed, 27 May 2020 01:44:28 -0700 (PDT) Received: from localhost.localdomain ([109.204.235.119]) by smtp.googlemail.com with ESMTPSA id o4sm654925lff.78.2020.05.27.01.44.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 01:44:27 -0700 (PDT) From: john mathew X-Google-Original-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, mostafa.chamanara@gmail.com, willy@infradead.org, valentin.schneider@arm.com, srikar@linux.vnet.ibm.com, john mathew Subject: [RFC PATCH v6 0/3] Add scheduler overview documentation Date: Wed, 27 May 2020 11:44:18 +0300 Message-Id: <20200527084421.4673-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, context switch and Capacity Aware Scheduling. Previous version of the patch was reviewed at: https://lore.kernel.org/lkml/20200514092637.15684-1-John.Mathew@unikie.com/ 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 | 102 ++++++ Documentation/scheduler/context-switching.rst | 125 ++++++++ Documentation/scheduler/index.rst | 33 +- .../scheduler/mips-context-switch.rst | 89 ++++++ Documentation/scheduler/overview.rst | 293 ++++++++++++++++++ Documentation/scheduler/sched-cas.rst | 92 ++++++ .../scheduler/sched-data-structs.rst | 182 +++++++++++ Documentation/scheduler/sched-debugging.rst | 14 + Documentation/scheduler/sched-features.rst | 21 ++ Documentation/scheduler/scheduler-api.rst | 31 ++ .../scheduler/x86-context-switch.rst | 65 ++++ kernel/sched/core.c | 28 +- kernel/sched/sched.h | 169 +++++++++- 14 files changed, 1238 insertions(+), 20 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-cas.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