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