White space fix only. Translators can ignore.

Sponsored by:	iXsystems
This commit is contained in:
Dru Lavigne 2014-05-06 14:34:23 +00:00
parent 44cc58d407
commit cdd8ddaea0
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=44771

View file

@ -2709,29 +2709,29 @@ kern.maxvnodes: 100000</screen>
on an existing partition.</para>
<para>For information on how to encrypt swap space, which options
exist, and why it should be done, refer to
<xref linkend="swap-encrypting"/>.</para>
exist, and why it should be done, refer to <xref
linkend="swap-encrypting"/>.</para>
<sect2 xml:id="new-drive-swap">
<title>Swap on a New Hard Drive or Existing Partition</title>
<para>Adding a new hard drive for swap gives better performance
than using a partition on an existing drive. Setting up
partitions and hard drives is explained in
<xref linkend="disks-adding"/> while
<xref linkend="configtuning-initial"/> discusses partition
layouts and swap partition size considerations.</para>
partitions and hard drives is explained in <xref
linkend="disks-adding"/> while <xref
linkend="configtuning-initial"/> discusses partition layouts
and swap partition size considerations.</para>
<para>Use <command>swapon</command> to add a swap partition to the system.
For example:</para>
<para>Use <command>swapon</command> to add a swap partition to
the system. For example:</para>
<screen>&prompt.root; <userinput>swapon <replaceable>/dev/ada1s1b</replaceable></userinput></screen>
<warning>
<para>It is possible to use any partition not currently
mounted, even if it already contains data. Using
<command>swapon</command> on a partition that contains data will
overwrite and destroy that data. Make sure that the
<command>swapon</command> on a partition that contains data
will overwrite and destroy that data. Make sure that the
partition to be added as swap is really the intended
partition before running <command>swapon</command>.</para>
</warning>
@ -2750,8 +2750,8 @@ kern.maxvnodes: 100000</screen>
<sect2 xml:id="create-swapfile">
<title>Creating a Swap File</title>
<para>To instead create a swap file, specify its size. The following
example creates a 64MB file named
<para>To instead create a swap file, specify its size. The
following example creates a 64MB file named
<filename>/usr/swap0</filename>.</para>
<example>
@ -2760,10 +2760,9 @@ kern.maxvnodes: 100000</screen>
<orderedlist>
<listitem>
<para>The <filename>GENERIC</filename> kernel already
includes the required memory disk driver.
When building a custom kernel,
make sure to include the following line in the custom
configuration file:</para>
includes the required memory disk driver. When building
a custom kernel, make sure to include the following line
in the custom configuration file:</para>
<programlisting>device md</programlisting>
@ -2793,10 +2792,9 @@ kern.maxvnodes: 100000</screen>
</listitem>
<listitem>
<para>To enable the swap file
immediately, specify a free memory device. Refer to
<xref linkend="disks-virtual"/> for more information
about memory devices.</para>
<para>To enable the swap file immediately, specify a free
memory device. Refer to <xref linkend="disks-virtual"/>
for more information about memory devices.</para>
<screen>&prompt.root; <userinput>mdconfig -a -t vnode -f <replaceable>/usr/swap0</replaceable> -u <replaceable>0</replaceable> &amp;&amp; swapon /dev/md<replaceable>0</replaceable></userinput></screen>
</listitem>