source: chapter09/introduction.xml

trunk
Last change on this file was 7152faa, checked in by Pierre Labastie <pierre.labastie@…>, 3 months ago

Change all xml files to utf-8 encoding

  • Property mode set to 100644
File size: 3.1 KB
RevLine 
[7152faa]1<?xml version="1.0" encoding="UTF-8"?>
[fcc02767]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
8<sect1 id="ch-config-introduction" revision="sysv">
9 <?dbhtml filename="introduction.html"?>
10
11 <title>Introduction</title>
12
13 <para>Booting a Linux system involves several tasks. The process must
[c30b3cc]14 mount both virtual and real file systems, initialize devices,
15 check file systems for integrity, mount and activate any swap partitions or files, set
[fcc02767]16 the system clock, bring up networking, start any daemons required by the
[c30b3cc]17 system, and accomplish any other custom tasks specified by the user. This
[fcc02767]18 process must be organized to ensure the tasks are performed in the correct
[c30b3cc]19 order and executed as quickly as possible.</para>
[fcc02767]20
21 <sect2 id='sysv-desc'>
22 <title>System V</title>
23
24 <para>System V is the classic boot process that has been used in Unix and
25 Unix-like systems such as Linux since about 1983. It consists of a small
[c30b3cc]26 program, <command>init</command>, that sets up basic processes such as
[fcc02767]27 <command>login</command> (via getty) and runs a script. This script,
28 usually named <command>rc</command>, controls the execution of a set of
29 additional scripts that perform the tasks required to initialize the
30 system.</para>
31
[c34b4fb]32 <para>The <command>init</command> program is controlled by the
[fcc02767]33 <filename>/etc/inittab</filename> file and is organized into run levels that
[c30b3cc]34 can be chosen by the user. In LFS, they are used as follows:</para>
[fcc02767]35
[a3d0817]36<literallayout>0 &mdash; halt
[fcc02767]371 &mdash; Single user mode
[1b491eb]382 &mdash; User definable
[fcc02767]393 &mdash; Full multiuser mode
404 &mdash; User definable
415 &mdash; Full multiuser mode with display manager
[a3d0817]426 &mdash; reboot</literallayout>
[fcc02767]43
44 <para>The usual default run level is 3 or 5.</para>
45
46 <bridgehead renderas="sect3">Advantages</bridgehead>
47
48 <itemizedlist>
49 <listitem>
50 <para>Established, well understood system.</para>
51 </listitem>
52
53 <listitem>
54 <para>Easy to customize.</para>
55 </listitem>
56
57 </itemizedlist>
58
59
60 <bridgehead renderas="sect3">Disadvantages</bridgehead>
61
62 <itemizedlist>
63 <listitem>
[c34b4fb]64 <para>May be slower to boot. A medium speed base LFS system
65 takes 8-12 seconds where the boot time is measured from the
66 first kernel message to the login prompt. Network
67 connectivity is typically established about 2 seconds
[fcc02767]68 after the login prompt.</para>
69 </listitem>
70
71 <listitem>
72 <para>Serial processing of boot tasks. This is related to the previous
[c30b3cc]73 point. A delay in any process, such as a file system check, will
[fcc02767]74 delay the entire boot process.</para>
75 </listitem>
76
77 <listitem>
78 <para>Does not directly support advanced features like
[c30b3cc]79 control groups (cgroups) and per-user fair share scheduling.</para>
[fcc02767]80 </listitem>
81
82 <listitem>
83 <para>Adding scripts requires manual, static sequencing decisions.</para>
84 </listitem>
85
86 </itemizedlist>
87
88 </sect2>
89
90</sect1>
[a3d0817]91
Note: See TracBrowser for help on using the repository browser.