Skip to contentSkip to conversation

ref-manual: add potential of parallelism to defn of "Task"

PATCH Superseded Robert P. J. Day 2 participants 3 messages Sep 6, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ref-manual: add potential of parallelism to defn of "Task"

Emphasize that tasks can be done in parallel.

---

documentation/ref-manual/terms.rst +7 -1
index 32658051a..1a1f8dbee 100644
@@ -367,10 +367,16 @@ universal, the list includes them just in case:
      section in the Yocto Project Overview and Concepts Manual.
 
    :term:`Task`
-      A unit of execution for BitBake (e.g.
+      A per-recipe unit of execution for BitBake (e.g.
       :ref:`ref-tasks-compile`,
       :ref:`ref-tasks-fetch`,
       :ref:`ref-tasks-patch`, and so forth).
+      One of the major benefits of the build system is that, since each
+      recipe will typically spawn the execution of numerous tasks, it is
+      entirely possible that many tasks can execute in parallel, with
+      the fetch task of one recipe being done simultaneously with the
+      build task of another, and so forth, potentially up to the
+      parallelism limit of your build system.
 
    :term:`Toaster`
       A web interface to the Yocto Project's :term:`OpenEmbedded Build System`.
Signature · 6 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                         http://crashcourse.ca

LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
Reviewed-by on v1 1/1
#1 lore raw

Hi Robert,

Quoted 14 lines · Robert P. J. Day

Emphasize that tasks can be done in parallel.

---

documentation/ref-manual/terms.rst +0 -0
index 32658051a..1a1f8dbee 100644
@@ -367,10 +367,16 @@ universal, the list includes them just in case:
      section in the Yocto Project Overview and Concepts Manual.
 

documentation/ref-manual/terms.rst universal, the list includes them just in case: · line 377

Quoted 10 lines
documentation/ref-manual/terms.rst +5 -1
    :term:`Task`
-      A unit of execution for BitBake (e.g.
+      A per-recipe unit of execution for BitBake (e.g.
       :ref:`ref-tasks-compile`,
       :ref:`ref-tasks-fetch`,
       :ref:`ref-tasks-patch`, and so forth).
+      One of the major benefits of the build system is that, since each
+      recipe will typically spawn the execution of numerous tasks, it is
+      entirely possible that many tasks can execute in parallel, with
+      the fetch task of one recipe being done simultaneously with the

:ref:ref-tasks-fetch

documentation/ref-manual/terms.rst universal, the list includes them just in case: · line 380

Quoted 3 lines
documentation/ref-manual/terms.rst +2 -0
+      build task of another, and so forth, potentially up to the
+      parallelism limit of your build system.
 

I'm not entirely sure now, but I'm wondering if this does not apply to tasks within a recipe too?

Let's say you have the following task dependency tree:

	 do_install
	  /	 \
do_something	do_another_thing
	  \	 /
	  do_build

I would assume that do_something and do_another_thing can happen at the same time (or in any variable order).

I think it'd be worth mentioning if that happens to be correct.

In any case,

Thanks!
Quentin

#2 lore raw
Quoted 30 lines · Quentin Schulz

Hi Robert,

Quoted 14 lines · Robert P. J. Day

Emphasize that tasks can be done in parallel.

---

documentation/ref-manual/terms.rst +0 -0
index 32658051a..1a1f8dbee 100644
@@ -367,10 +367,16 @@ universal, the list includes them just in case:
      section in the Yocto Project Overview and Concepts Manual.
 

documentation/ref-manual/terms.rst universal, the list includes them just in case: · line 377

Quoted 10 lines
documentation/ref-manual/terms.rst +5 -1
    :term:`Task`
-      A unit of execution for BitBake (e.g.
+      A per-recipe unit of execution for BitBake (e.g.
       :ref:`ref-tasks-compile`,
       :ref:`ref-tasks-fetch`,
       :ref:`ref-tasks-patch`, and so forth).
+      One of the major benefits of the build system is that, since each
+      recipe will typically spawn the execution of numerous tasks, it is
+      entirely possible that many tasks can execute in parallel, with
+      the fetch task of one recipe being done simultaneously with the

:ref:ref-tasks-fetch

Quoted 6 lines

documentation/ref-manual/terms.rst universal, the list includes them just in case: · line 380

Quoted 3 lines
documentation/ref-manual/terms.rst +2 -0
+      build task of another, and so forth, potentially up to the
+      parallelism limit of your build system.
 

I'm not entirely sure now, but I'm wondering if this does not apply to tasks within a recipe too?

... snip ...

i'd thought of that but decided to keep it brief, but thinking about it, it would take only a few additional words to mention parallelism within a single recipe.

rday