swift 13/12/17 09:13:22 Modified: hb-install-x86+amd64-disk.xml Log: Move swap info to its own section
Revision Changes Path 1.25 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.25&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.25&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.24&r2=1.25 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.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- hb-install-x86+amd64-disk.xml 17 Dec 2013 09:10:19 -0000 1.24 +++ hb-install-x86+amd64-disk.xml 17 Dec 2013 09:13:22 -0000 1.25 @@ -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.24 2013/12/17 09:10:19 swift Exp $ --> +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v 1.25 2013/12/17 09:13:22 swift Exp $ --> <sections> @@ -13,7 +13,7 @@ This chapter describes how to partition a disk for future usage. </abstract> -<version>17</version> +<version>18</version> <date>2013-12-17</date> <section> @@ -214,6 +214,30 @@ </body> </subsection> +<subsection> +<title>What about swap space?</title> +<body> + +<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> + +</body> +</subsection> </section> <section id="fdisk"> <title>Using fdisk to Partition your Disk</title> @@ -414,25 +438,8 @@ 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. -</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. +the last cylinder, type <c>+512M</c> (or any other size you need for the swap +space) to create a partition 512MB in size. </p> <p>