From 04befc5e3cb597dca8f39a79e70b44a1ac5c019b Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 26 Aug 2024 02:49:01 +0800 Subject: [PATCH] aboutsbus: Add power profile info --- chapter04/aboutsbus.xml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/chapter04/aboutsbus.xml b/chapter04/aboutsbus.xml index dccf59fe7..7139cb3a8 100644 --- a/chapter04/aboutsbus.xml +++ b/chapter04/aboutsbus.xml @@ -36,6 +36,32 @@ to give an estimate of how long it might take to install a package, but the numbers can vary by as much as dozens of minutes in some cases. + Before measuring the build time of any package (no matter Binutils + pass 1 or a package of which the SBU is being measured), make sure a + system power profile suitable to make the system running with the + maximum performance (and the maximum power consumption) is selected. Or + the measured SBU value may be severly inaccurate because the system may be + operated differently building Binutils pass 1 and the other package. + Be aware that a significant inaccuracy can still show up even if the same + profile (except one maximizing the performance) is used for both packages: + the system may respond slower for saving the power building + Binutils pass 1, because the system load seems only about 25% of the load + building the other package (with -j4). + + On most distros the power profile can be managed with either + power-profiles-daemon or tuned. + If the distro runs power-profiles-daemon, issue the + powerprofilesctl set performance command to select + the performance profile. If the distro runs + tuned, issue the tuned-adm profile + throughput-performance command to select the + throughput-performance profile. + + Even if you are not measuring the SBU values, it's still better to + select the power profile for maximum performance before building LFS, as + doing so can (obviously) make the system faster to build LFS + packages. + When multiple processors are used in this way, the SBU units in the book will vary even more than they normally would. In some cases, the make @@ -47,7 +73,6 @@ 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. -