introduction.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-config-introduction" revision="sysv">
  8. <?dbhtml filename="introduction.html"?>
  9. <title>Introduction</title>
  10. <para>Booting a Linux system involves several tasks. The process must
  11. mount both virtual and real file systems, initialize devices, activate swap,
  12. check file systems for integrity, mount any swap partitions or files, set
  13. the system clock, bring up networking, start any daemons required by the
  14. system, and accomplish any other custom tasks needed by the user. This
  15. process must be organized to ensure the tasks are performed in the correct
  16. order but, at the same time, be executed as fast as possible.</para>
  17. <sect2 id='sysv-desc'>
  18. <title>System V</title>
  19. <para>System V is the classic boot process that has been used in Unix and
  20. Unix-like systems such as Linux since about 1983. It consists of a small
  21. program, <command>init</command>, that sets up basic programs such as
  22. <command>login</command> (via getty) and runs a script. This script,
  23. usually named <command>rc</command>, controls the execution of a set of
  24. additional scripts that perform the tasks required to initialize the
  25. system.</para>
  26. <para>The <command>init</command> program is controlled by the
  27. <filename>/etc/inittab</filename> file and is organized into run levels that
  28. can be run by the user:</para>
  29. <literallayout>0 &mdash; halt
  30. 1 &mdash; Single user mode
  31. 2 &mdash; Multiuser, without networking
  32. 3 &mdash; Full multiuser mode
  33. 4 &mdash; User definable
  34. 5 &mdash; Full multiuser mode with display manager
  35. 6 &mdash; reboot</literallayout>
  36. <para>The usual default run level is 3 or 5.</para>
  37. <bridgehead renderas="sect3">Advantages</bridgehead>
  38. <itemizedlist>
  39. <listitem>
  40. <para>Established, well understood system.</para>
  41. </listitem>
  42. <listitem>
  43. <para>Easy to customize.</para>
  44. </listitem>
  45. </itemizedlist>
  46. <bridgehead renderas="sect3">Disadvantages</bridgehead>
  47. <itemizedlist>
  48. <listitem>
  49. <para>May be slower to boot. A medium speed base LFS system
  50. takes 8-12 seconds where the boot time is measured from the
  51. first kernel message to the login prompt. Network
  52. connectivity is typically established about 2 seconds
  53. after the login prompt.</para>
  54. </listitem>
  55. <listitem>
  56. <para>Serial processing of boot tasks. This is related to the previous
  57. point. A delay in any process such as a file system check, will
  58. delay the entire boot process.</para>
  59. </listitem>
  60. <listitem>
  61. <para>Does not directly support advanced features like
  62. control groups (cgroups), and per-user fair share scheduling.</para>
  63. </listitem>
  64. <listitem>
  65. <para>Adding scripts requires manual, static sequencing decisions.</para>
  66. </listitem>
  67. </itemizedlist>
  68. </sect2>
  69. </sect1>