aboutsummaryrefslogtreecommitdiff
path: root/zh_CN.GB2312/books
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2005-08-28 17:36:25 +0000
committerXin LI <delphij@FreeBSD.org>2005-08-28 17:36:25 +0000
commit840de4ad30dcc5de2fbaa3f8c018001bbbed8f8f (patch)
tree36cd3dcb142339b33c9175214cdbc7d001944e44 /zh_CN.GB2312/books
parent20a4f062459402905840e323a0e9862a62430341 (diff)
Notes
Diffstat (limited to 'zh_CN.GB2312/books')
-rw-r--r--zh_CN.GB2312/books/handbook/kernelconfig/chapter.sgml75
1 files changed, 24 insertions, 51 deletions
diff --git a/zh_CN.GB2312/books/handbook/kernelconfig/chapter.sgml b/zh_CN.GB2312/books/handbook/kernelconfig/chapter.sgml
index 00c4f4af5d..1e4c7bec4a 100644
--- a/zh_CN.GB2312/books/handbook/kernelconfig/chapter.sgml
+++ b/zh_CN.GB2312/books/handbook/kernelconfig/chapter.sgml
@@ -2,7 +2,7 @@
The FreeBSD Documentation Project
The FreeBSD Chinese Documentation Project
- Original Revision: 1.155
+ Original Revision: 1.158
$FreeBSD$
-->
@@ -343,9 +343,15 @@
</procedure>
<note>
- <para>在&os;&nbsp;4.2老版本里面您必须用<literal>KERNEL=</literal>
- 来替换<literal>KERNCONF=</literal>。2001年2月2日以后生成的4.2-STABLE
- 就可以认出<literal>KERNCONF=</literal>。</para>
+ <para>使用这种方法构建内核, 需要完整的源代码。
+ 如果您只安装了内核的源代码, 就只能使用前面所介绍的传统方法了。</para>
+ </note>
+
+ <note>
+ <para>在 &os;&nbsp;4.2 和更早的版本中, 应把前面的
+ <literal>KERNCONF=</literal> 替换为 <literal>KERNEL=</literal>。
+ 2001 年 2 月 2 日 之前的 4.2-STABLE
+ 不能识别 <literal>KERNCONF=</literal>。</para>
</note>
<indexterm>
@@ -552,44 +558,6 @@ cpu I686_CPU</programlisting>
<literal>ident</literal> 后面的字符串在启动内核时会显示出来,
因此如果希望能够容易区分常用的内核和刚刚定制的内核,
就应该采取不同的名字 (例如, 您想定制一个试验性的内核)。</para>
- <indexterm>
- <primary>内核选项</primary>
- <secondary>maxusers</secondary>
- </indexterm>
-
- <programlisting>maxusers <replaceable>n</replaceable></programlisting>
-
- <para>这个 <literal>maxusers</literal> 选项设置了重要系统表的大小。
- 这个数值粗略地假设您的机器同时会有多少用户。</para>
-
- <para>从&os;&nbsp;4.5开始,如果手动设置这个值为<literal>0</literal>系统将会自动赋值。<footnote>
- <para>自动赋值算法是设置<literal>maxusers</literal>等于系统的内存总量,最小到32,最大到384。
- </para></footnote>.
- 在&os;&nbsp; 5.X 和更高版本中,<literal>maxusers</literal> 如果没有定义,将缺省为
- <literal>0</literal>。如果您使用的&os;早于4.5, 或者您想自己设置这个值,
- 那么您至少要设置<literal>maxusers</literal>为4, 特别是您要执行X Window或是编译程序。
- 原因是<literal>maxusers</literal>值决定了系统同时可有多少个进程(process),
- 其算法是<literal>20 + 16 * maxusers</literal>,所以如果您设置<literal>maxusers</literal>为1,
- 则您的系统只能同时存在36个进程,包括18个(或更多)系统启动要占去的进程。
- 如果您执行了X Window,则又要用掉15个以上。甚至阅读一个man page也会使用九个进程来过滤、解压缩、然后显示文件。
- 设置<literal>maxusers</literal>到64将允许您有1044个进程,对任何人应该都是足够的。
- 当您执行程序时, 得到像是<errortype>proc table full</errortype>这样的错误信息,
- 或者您要建一个同时会有很多人来访问的网站(比如<hostid role="fqdn">ftp.FreeBSD.org</hostid>)时,
- 您就要增加这个设置的值,然后重新编译内核。</para>
-
- <note>
- <para><literal>maxusers</literal> 并 <emphasis>不会</emphasis>
- 限制能够登录到您机器上的用户数量。
- 它只是简单地设置一些系统表的尺寸,
- 以适应您的系统中登录这样多的用户时能够执行的最大进程数。
- <emphasis>确实</emphasis> 会限制同时能够登录的远程用户以及
- X 终端窗口的关键字是 <link
- linkend="kernelconfig-ptys"><literal>pseudo-device pty
- 16</literal></link>。 在 &os;&nbsp;5.X 中, 您并不需要担心这个数值, 因为 &man.pty.4; 驱动提供了
- <quote>自动克隆(auto-cloning)</quote> 的能力;
- 在配置文件中您只需简单地指定
- <literal>device pty</literal> 就可以了。</para>
- </note>
<programlisting># Floating point support - do not disable.
device npx</programlisting>
@@ -846,10 +814,6 @@ options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
<para>如果您的主板有PCI总线,就加入这个选项。使用这个选项可以自动扫描PCI卡,并在PCI到ISA之间建立通路。</para>
- <programlisting>device agp</programlisting>
-
- <para>如果您有图形加速卡(AGP card),这个选项将打开图形加速支持。</para>
-
<programlisting># Floppy drives
device fdc</programlisting>
@@ -932,6 +896,7 @@ device ses # SCSI Environmental Services (and SAF-TE)</programli
<programlisting># RAID controllers interfaced to the SCSI subsystem
device amr # AMI MegaRAID
+device arcmsr # Areca SATA II RAID
device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID
device ciss # Compaq Smart RAID 5*
device dpt # DPT Smartcache III, IV - See NOTES for options
@@ -1006,18 +971,23 @@ device sc</programlisting>
<literal>sc</literal> 设备 &mdash; 而 <literal>vt100</literal>
则几乎每种平台都支持。</para>
+ <programlisting>device agp</programlisting>
+
+ <para>如果您的机器使用 AGP 卡, 请把上面一行加入配置。
+ 这将启用 AGP, 以及某些卡上的 AGP GART 支持。</para>
+
<indexterm>
<primary>APM</primary>
</indexterm>
- <programlisting># Power management support (see NOTES for more options)
+ <programlisting># 电源管理支持 (参见 NOTES 了解更多选项)
#device apm</programlisting>
- <para>Advanced Power Management support. Useful for laptops,
- although in &os; 5.X and above this is disabled in
- <filename>GENERIC</filename> by default.</para>
+ <para>高级电源管理支持。 对笔记本有用,
+ 不过在 &os; 5.X 和更高版本中的
+ <filename>GENERIC</filename> 里默认禁用。</para>
- <programlisting># Add suspend/resume support for the i8254.
+ <programlisting># 增加 i8254 的 挂起/恢复 支持。
device pmtimer</programlisting>
<para>用于电源管理事件, 例如 APM 和 ACPI 的时钟设备驱动。</para>
@@ -1242,6 +1212,7 @@ device pty # Pseudo-ttys (telnet etc)</programlisting>
<programlisting># The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
+# Note that 'bpf' is required for DHCP.
device bpf # Berkeley packet filter</programlisting>
<para>这是 Berkeley 包过滤器。这个伪设备允许网络接口被置于混杂模式,
@@ -1258,6 +1229,7 @@ device bpf # Berkeley packet filter</programlisting>
<programlisting># USB support
device uhci # UHCI PCI-&gt;USB interface
device ohci # OHCI PCI-&gt;USB interface
+#device ehci # EHCI PCI-&gt;USB interface (USB 2.0)
device usb # USB Bus (required)
#device udbp # USB Double Bulk Pipe devices
device ugen # Generic
@@ -1271,6 +1243,7 @@ device uscanner # Scanners
# USB Ethernet, requires mii
device aue # ADMtek USB Ethernet
device axe # ASIX Electronics USB Ethernet
+device cdce # Generic USB over Ethernet
device cue # CATC USB Ethernet
device kue # Kawasaki LSI USB Ethernet
device rue # RealTek RTL8150 USB Ethernet</programlisting>