swift       13/12/17 09:10:19

  Modified:             hb-install-x86+amd64-disk.xml
  Log:
  Fix bug #445626 - Add info on swap space and possible sizing

Revision  Changes    Path
1.24                 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.24&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.24&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?r1=1.23&r2=1.24

Index: hb-install-x86+amd64-disk.xml
===================================================================
RCS file: 
/var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- hb-install-x86+amd64-disk.xml       11 Apr 2013 18:25:12 -0000      1.23
+++ hb-install-x86+amd64-disk.xml       17 Dec 2013 09:10:19 -0000      1.24
@@ -4,7 +4,7 @@
 <!-- The content of this document is licensed under the CC-BY-SA license -->
 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
 
-<!-- $Header: 
/var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 
1.23 2013/04/11 18:25:12 swift Exp $ -->
+<!-- $Header: 
/var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 
1.24 2013/12/17 09:10:19 swift Exp $ -->
 
 <sections>
 
@@ -13,8 +13,8 @@
 This chapter describes how to partition a disk for future usage.
 </abstract>
 
-<version>16</version>
-<date>2013-04-11</date>
+<version>17</version>
+<date>2013-12-17</date>
 
 <section>
 <title>Introduction to Block Devices</title>
@@ -103,7 +103,7 @@
 <tr>
   <ti><path>/dev/sda2</path></ti>
   <ti>(swap)</ti>
-  <ti>512M</ti>
+  <ti>512M or higher</ti>
   <ti>Swap partition</ti>
 </tr>
 <tr>
@@ -197,8 +197,8 @@
 /dev/sda8     ext4   1011M  483M  477M  51% /opt
 /dev/sda9     ext4    2.0G  607M  1.3G  32% /var
 /dev/sda1     ext2     51M   17M   31M  36% /boot
-/dev/sda6     swap    516M   12M  504M   2% &lt;not mounted&gt;
-<comment>(Unpartitioned space for future usage: 2 GB)</comment>
+/dev/sda6     swap   1516M   12M  1.4G   1% &lt;not mounted&gt;
+<comment>(Unpartitioned space for future usage: 1 GB)</comment>
 </pre>
 
 <p>
@@ -414,8 +414,29 @@
 partition, then <c>p</c> to tell fdisk that you want a primary partition. Then 
 type <c>2</c> to create the second primary partition, <path>/dev/sda2</path> in
 our case. When prompted for the first cylinder, hit enter. When prompted for 
-the last cylinder, type <c>+512M</c> to create a partition 512MB in size. After
-you've done this, type <c>t</c> to set the partition type, <c>2</c> to select 
+the last cylinder, type <c>+512M</c> to create a partition 512MB in size.
+</p>
+
+<p>
+There is no perfect value for the swap partition. The purpose of swap space is
+to provide disk storage to the kernel when internal memory (RAM) is under
+pressure. A swap space allows for the kernel to move memory pages that are
+not likely to be accessed soon to disk (swap or page-out), freeing memory. Of
+course, if that memory is suddenly needed, these pages need to be put back in
+memory (page-in) which will take a while (as disks are very slow compared to
+internal memory).
+</p>
+
+<p>
+If you are not going to run memory intensive applications or you have lots of
+memory available, then you probably do not need much swap space. However, swap
+space is also used to store the entire memory in case of hibernation. If you
+plan on using hibernation, you will need a bigger swap space, often at least
+the amount of memory you have in your system.
+</p>
+
+<p>
+After you've done this, type <c>t</c> to set the partition type, <c>2</c> to 
select 
 the partition you just created and then type in <c>82</c> to set the partition 
 type to "Linux Swap". After completing these steps, typing <c>p</c> should
 display a partition table that looks similar to this:




Reply via email to