Debian Codegraph @

help/C/mem-swap.page

raw
1 <page xmlns="http://projectmallard.org/1.0/"
2 type="topic" style="task"
3 id="mem-swap">
4
5 <info>
6 <revision pkgversion="3.11" date="2014-01-28" status="final"/>
7 <link type="guide" xref="index#memory" group="memory" />
8
9 <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
10
11 <credit type="author copyright">
12 <name>Phil Bull</name>
13 <email>[email protected]</email>
14 <years>2011</years>
15 </credit>
16
17 <credit type="author copyright">
18 <name>Michael Hill</name>
19 <email>[email protected]</email>
20 <years>2011, 2014</years>
21 </credit>
22
23 <desc>Swap memory allows your computer to run more applications at the same
24 time than will fit into the system memory (RAM).</desc>
25 </info>
26
27 <title>What is "swap" memory?</title>
28
29 <comment>
30 <cite date="2011-06-18" href="mailto:[email protected]">Phil Bull</cite>
31 <p>Explain what swap is and how it helps. Explain that the computer may run
32 slowly if it's swapping too much.</p>
33 </comment>
34
35 <p>Swap memory or <em>swap space</em> is the on-disk component of the virtual
36 memory system. It is pre-configured as a <em>swap partition</em> or a
37 <em>swap file</em> when Linux is first installed, but can also be added
38 later.</p>
39
40 <note>
41 <p>Disk access is <em>very</em> slow compared to memory access. The system
42 runs more slowly if there is excessive swapping, or <em>thrashing</em>,
43 when the system is unable to find enough free memory. In this situation the
44 only solution is to add more RAM.</p>
45 </note>
46
47 <p>To see whether swapping, or <em>paging</em>, has become a performance
48 issue:</p>
49
50 <steps>
51 <item>
52 <p>Click the <gui>Resources</gui> tab.</p>
53 </item>
54 <item>
55 <p>The <gui>Memory and Swap History</gui> graph shows memory and swap use
56 as percentages.</p>
57 </item>
58 </steps>
59
60 </page>