1 |
swift 13/12/17 09:10:19 |
2 |
|
3 |
Modified: hb-install-x86+amd64-disk.xml |
4 |
Log: |
5 |
Fix bug #445626 - Add info on swap space and possible sizing |
6 |
|
7 |
Revision Changes Path |
8 |
1.24 xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml?rev=1.24&view=markup |
11 |
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 |
12 |
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 |
13 |
|
14 |
Index: hb-install-x86+amd64-disk.xml |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-disk.xml,v |
17 |
retrieving revision 1.23 |
18 |
retrieving revision 1.24 |
19 |
diff -u -r1.23 -r1.24 |
20 |
--- hb-install-x86+amd64-disk.xml 11 Apr 2013 18:25:12 -0000 1.23 |
21 |
+++ hb-install-x86+amd64-disk.xml 17 Dec 2013 09:10:19 -0000 1.24 |
22 |
@@ -4,7 +4,7 @@ |
23 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
24 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
25 |
|
26 |
-<!-- $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 $ --> |
27 |
+<!-- $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 $ --> |
28 |
|
29 |
<sections> |
30 |
|
31 |
@@ -13,8 +13,8 @@ |
32 |
This chapter describes how to partition a disk for future usage. |
33 |
</abstract> |
34 |
|
35 |
-<version>16</version> |
36 |
-<date>2013-04-11</date> |
37 |
+<version>17</version> |
38 |
+<date>2013-12-17</date> |
39 |
|
40 |
<section> |
41 |
<title>Introduction to Block Devices</title> |
42 |
@@ -103,7 +103,7 @@ |
43 |
<tr> |
44 |
<ti><path>/dev/sda2</path></ti> |
45 |
<ti>(swap)</ti> |
46 |
- <ti>512M</ti> |
47 |
+ <ti>512M or higher</ti> |
48 |
<ti>Swap partition</ti> |
49 |
</tr> |
50 |
<tr> |
51 |
@@ -197,8 +197,8 @@ |
52 |
/dev/sda8 ext4 1011M 483M 477M 51% /opt |
53 |
/dev/sda9 ext4 2.0G 607M 1.3G 32% /var |
54 |
/dev/sda1 ext2 51M 17M 31M 36% /boot |
55 |
-/dev/sda6 swap 516M 12M 504M 2% <not mounted> |
56 |
-<comment>(Unpartitioned space for future usage: 2 GB)</comment> |
57 |
+/dev/sda6 swap 1516M 12M 1.4G 1% <not mounted> |
58 |
+<comment>(Unpartitioned space for future usage: 1 GB)</comment> |
59 |
</pre> |
60 |
|
61 |
<p> |
62 |
@@ -414,8 +414,29 @@ |
63 |
partition, then <c>p</c> to tell fdisk that you want a primary partition. Then |
64 |
type <c>2</c> to create the second primary partition, <path>/dev/sda2</path> in |
65 |
our case. When prompted for the first cylinder, hit enter. When prompted for |
66 |
-the last cylinder, type <c>+512M</c> to create a partition 512MB in size. After |
67 |
-you've done this, type <c>t</c> to set the partition type, <c>2</c> to select |
68 |
+the last cylinder, type <c>+512M</c> to create a partition 512MB in size. |
69 |
+</p> |
70 |
+ |
71 |
+<p> |
72 |
+There is no perfect value for the swap partition. The purpose of swap space is |
73 |
+to provide disk storage to the kernel when internal memory (RAM) is under |
74 |
+pressure. A swap space allows for the kernel to move memory pages that are |
75 |
+not likely to be accessed soon to disk (swap or page-out), freeing memory. Of |
76 |
+course, if that memory is suddenly needed, these pages need to be put back in |
77 |
+memory (page-in) which will take a while (as disks are very slow compared to |
78 |
+internal memory). |
79 |
+</p> |
80 |
+ |
81 |
+<p> |
82 |
+If you are not going to run memory intensive applications or you have lots of |
83 |
+memory available, then you probably do not need much swap space. However, swap |
84 |
+space is also used to store the entire memory in case of hibernation. If you |
85 |
+plan on using hibernation, you will need a bigger swap space, often at least |
86 |
+the amount of memory you have in your system. |
87 |
+</p> |
88 |
+ |
89 |
+<p> |
90 |
+After you've done this, type <c>t</c> to set the partition type, <c>2</c> to select |
91 |
the partition you just created and then type in <c>82</c> to set the partition |
92 |
type to "Linux Swap". After completing these steps, typing <c>p</c> should |
93 |
display a partition table that looks similar to this: |