From 7c92d6dd822f0954be5ad423006759dcb1488b79 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 12 Feb 2023 13:43:45 -0600 Subject: [PATCH 1/2] Update build times an sizes. This update changes the default number of cores used to build packages to 4. A section is also added to host requirements to recommend a minumum number of cores and memory size. --- chapter02/hostreqs.xml | 17 ++- chapter04/aboutsbus.xml | 21 +-- chapter08/introduction.xml | 4 +- packages.ent | 261 ++++++++++++++++++------------------- 4 files changed, 160 insertions(+), 143 deletions(-) diff --git a/chapter02/hostreqs.xml b/chapter02/hostreqs.xml index c612f5963..05cf80d2b 100644 --- a/chapter02/hostreqs.xml +++ b/chapter02/hostreqs.xml @@ -10,6 +10,21 @@ Host System Requirements + + Hardware + + The LFS editors recommend that the system CPU have at least + four cores and that the system have at least 8 GB of memory. + Older systems that do not meet these requirements will still work, + but the time to build packages will be significantly longer + than documented. + + + + + + Software + Your host system should have the following software with the minimum versions indicated. This should not be an issue for most modern Linux distributions. Also note that many distributions will @@ -224,5 +239,5 @@ bash library-check.sh The files identified by this script should be all present or all absent, but not only one or two present. --> - + diff --git a/chapter04/aboutsbus.xml b/chapter04/aboutsbus.xml index 82934d851..9561b061f 100644 --- a/chapter04/aboutsbus.xml +++ b/chapter04/aboutsbus.xml @@ -13,17 +13,17 @@ Many people would like to know beforehand approximately how long it takes to compile and install each package. Because Linux From Scratch can be built on many different systems, it is impossible to - provide absolute time estimates. The biggest package (Glibc) will - take approximately 20 minutes on the fastest systems, but could take - up to three days on slower systems! Instead of providing actual times, + provide absolute time estimates. The biggest package (gcc) will + take approximately 5 minutes on the fastest systems, but could take + days on slower systems! Instead of providing actual times, the Standard Build Unit (SBU) measure will be used instead. - The SBU measure works as follows. The first package to be compiled - is binutils in . The - time it takes to compile this package is what we will refer to as the - Standard Build Unit or SBU. All other compile times will be expressed in - terms of this unit of time. + The SBU measure works as follows. The first package to be compiled is + binutils in . The time it takes to + compile using one corethis package is what we will refer to as the Standard + Build Unit or SBU. All other compile times will be expressed in terms of this + unit of time. For example, consider a package whose compilation time is 4.5 SBUs. This means that if your system took 10 minutes to compile and @@ -55,6 +55,11 @@ be more difficult because the lines from different processes will be interleaved. If you run into a problem with a build step, revert to a single processor build to properly analyze the error messages. + + The times presented here are based upon using four cores (-j4). The + times in Chapter 8 also include the time to run the regression tests for + the package unless specified otherwise. + diff --git a/chapter08/introduction.xml b/chapter08/introduction.xml index f80ccc0c1..93d4bd68d 100644 --- a/chapter08/introduction.xml +++ b/chapter08/introduction.xml @@ -52,8 +52,8 @@ The SBU values and required disk space include test suite data for all applicable packages in . SBU - values have been calculated using a single CPU core (-j1) for all - operations. + values have been calculated using four CPU cores (-j4) for all + operations unless specified otherwise. About Libraries diff --git a/packages.ent b/packages.ent index a2d388802..a51cda8d7 100644 --- a/packages.ent +++ b/packages.ent @@ -19,7 +19,7 @@ - + @@ -35,7 +35,7 @@ - + @@ -45,25 +45,25 @@ - - + + - - - - + + + + - + @@ -71,12 +71,12 @@ - + - - - - + + + + @@ -84,9 +84,9 @@ - - - + + + @@ -102,17 +102,17 @@ - + - - - - + + + + @@ -128,7 +128,7 @@ - + @@ -138,30 +138,30 @@ - + - - + + - - + + - + @@ -184,8 +184,8 @@ - - + + @@ -196,8 +196,8 @@ - - + + @@ -205,17 +205,17 @@ - + - - - - + + + + @@ -224,18 +224,18 @@ - - - + + + - + - + @@ -243,42 +243,42 @@ - + - - - - + + + + - - - - + + + + - - + + - + @@ -289,23 +289,23 @@ - + - - + + - - + + @@ -332,7 +332,7 @@ - + @@ -347,8 +347,8 @@ - - + + @@ -372,14 +372,14 @@ - + - + @@ -395,7 +395,7 @@ - + @@ -403,7 +403,7 @@ - + @@ -419,8 +419,8 @@ - - + + @@ -437,21 +437,18 @@ - - - + + - - + + - + @@ -459,8 +456,8 @@ - - + + @@ -469,14 +466,14 @@ - + - + @@ -492,7 +489,7 @@ - + @@ -500,42 +497,42 @@ - - + + - - + + - - + + - + - - + + - - + + @@ -545,7 +542,7 @@ - + @@ -556,10 +553,10 @@ - - - - + + + + @@ -567,14 +564,14 @@ - + - + @@ -582,7 +579,7 @@ - + @@ -725,15 +722,15 @@ - - + + - + @@ -749,17 +746,17 @@ - + - - + + - + @@ -767,6 +764,6 @@ - - + + From 4990283f08926400d7b74b23f5092386dce01d56 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 12 Feb 2023 14:19:14 -0600 Subject: [PATCH 2/2] Typo --- chapter04/aboutsbus.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter04/aboutsbus.xml b/chapter04/aboutsbus.xml index 9561b061f..f88db24f6 100644 --- a/chapter04/aboutsbus.xml +++ b/chapter04/aboutsbus.xml @@ -21,7 +21,7 @@ The SBU measure works as follows. The first package to be compiled is binutils in . The time it takes to - compile using one corethis package is what we will refer to as the Standard + compile using one core is what we will refer to as the Standard Build Unit or SBU. All other compile times will be expressed in terms of this unit of time.