handbook: remove "creating a Swap File" for 9.x and older
9.x is no longer supported
This commit is contained in:
parent
a7d82f23f2
commit
e82e74c619
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=53775
1 changed files with 1 additions and 39 deletions
|
@ -2789,8 +2789,7 @@ kern.maxvnodes: 100000</screen>
|
|||
a custom kernel.</para>
|
||||
|
||||
<example xml:id="swapfile-10-and-later">
|
||||
<title>Creating a Swap File on
|
||||
&os; 10.<replaceable>X</replaceable> and Later</title>
|
||||
<title>Creating a Swap File</title>
|
||||
|
||||
<procedure>
|
||||
<step>
|
||||
|
@ -2824,43 +2823,6 @@ kern.maxvnodes: 100000</screen>
|
|||
</step>
|
||||
</procedure>
|
||||
</example>
|
||||
|
||||
<example xml:id="swapfile-9-and-earlier">
|
||||
<title>Creating a Swap File on
|
||||
&os; 9.<replaceable>X</replaceable> and Earlier</title>
|
||||
|
||||
<procedure>
|
||||
<step>
|
||||
<para>Create the swap file,
|
||||
<filename>/usr/swap0</filename>:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>dd if=/dev/zero of=<replaceable>/usr/swap0</replaceable> bs=1m count=<replaceable>64</replaceable></userinput></screen>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<para>Set the proper permissions on
|
||||
<filename>/usr/swap0</filename>:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>chmod 0600 <replaceable>/usr/swap0</replaceable></userinput></screen>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<para>Enable the swap file in
|
||||
<filename>/etc/rc.conf</filename>:</para>
|
||||
|
||||
<programlisting>swapfile="<replaceable>/usr/swap0</replaceable>" # Set to name of swap file</programlisting>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<para>Swap space will be added on system startup. 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> && swapon /dev/md<replaceable>0</replaceable></userinput></screen>
|
||||
</step>
|
||||
</procedure>
|
||||
</example>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
|
|
Loading…
Reference in a new issue