aboutsbus.xml 1.4 KB

1234567891011121314151617181920212223242526272829
  1. <sect1 id="ch02-aboutsbus">
  2. <title>About SBUs</title>
  3. <?dbhtml filename="aboutsbus.html" dir="chapter02"?>
  4. <para>SBUs are <emphasis>Static Bash Units</emphasis> and they are our way
  5. of identifying how long a package takes to compile. Why don't we use normal
  6. times like anybody else?</para>
  7. <para>The biggest problem is that times cannot be accurate, not even a
  8. little bit. So many people install LFS on so many different systems, the
  9. times it takes to compile something varies too much. One package may take
  10. 20 minutes on one system, but that same package may take 3 days on another
  11. (this is not an exaggeration). So instead we've come up with a
  12. <emphasis>Static Bash Unit</emphasis> or <emphasis>SBU</emphasis>.</para>
  13. <para>It works like this: the very first package you compile in this book
  14. is Bash in Chapter 5 and it'll be statically linked. The time it takes to
  15. compile this package will be the basis and called the SBU. All other
  16. compile times are relative to the time it takes to install Bash. For
  17. example, GCC-3.2 takes about 9.5 SBUs and it's proven that this number is
  18. fairly consistent among a lot of different systems. So multiply 9.5 by the
  19. number of seconds it takes for Bash to install (the SBU value) and you get
  20. a close approximation of how long GCC will take on your system.</para>
  21. <para>Note: We've seen that SBUs don't work well on SMP based machines. So
  22. all bets are off if you're lucky enough to have an SMP setup.</para>
  23. </sect1>