<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki3.micromint.com/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Adding swap space - Revision history</title>
		<link>https://wiki3.micromint.com/index.php?title=Adding_swap_space&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.3</generator>
		<lastBuildDate>Wed, 15 Apr 2026 11:03:22 GMT</lastBuildDate>
		<item>
			<title>Support:&amp;#32;Created page with 'You can create a file on a microSD card as swap space to extend system memory. Swap is significantly slower than RAM so performance will be affected, but you will reduce the chan…'</title>
			<link>https://wiki3.micromint.com/index.php?title=Adding_swap_space&amp;diff=3689&amp;oldid=prev</link>
			<description>&lt;p&gt;Created page with &amp;#39;You can create a file on a microSD card as swap space to extend system memory. Swap is significantly slower than RAM so performance will be affected, but you will reduce the chan…&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;You can create a file on a microSD card as swap space to extend system memory. Swap is significantly slower than RAM so performance will be affected, but you will reduce the chance of running out of memory .&lt;br /&gt;
&lt;br /&gt;
These steps allow you to create and mount a 64 MB swap file when booting from a microSD card.&lt;br /&gt;
&lt;br /&gt;
  # dd if=/dev/zero of=/swapfile bs=1024 count=65536&lt;br /&gt;
  65536+0 records in&lt;br /&gt;
  65536+0 records out&lt;br /&gt;
  67108864 bytes (67 MB) copied, 15.0498 s, 4.5 MB/s&lt;br /&gt;
  # chmod 600 /mnt/swapfile&lt;br /&gt;
  # mkswap /mnt/swapfile&lt;br /&gt;
  Setting up swapspace version 1, size = 65532 KiB&lt;br /&gt;
  no label, UUID=961c7861-e5fe-46c4-97b5-374b28e6adb2&lt;br /&gt;
  # swapon /swapfile&lt;br /&gt;
  [ 1567.710000] Adding 65532k swap on /mnt/swapfile.  Priority:-1 extents:90 across:86764k SS&lt;br /&gt;
  # free&lt;br /&gt;
               total       used       free     shared    buffers     cached&lt;br /&gt;
  Mem:         61192      59736       1456       8660        116      40488&lt;br /&gt;
  -/+ buffers/cache:      19132      42060&lt;br /&gt;
  Swap:        65532          0      65532&lt;br /&gt;
&lt;br /&gt;
To mount the swap file automatically after reboot add the following line to /etc/fstab&lt;br /&gt;
&lt;br /&gt;
  /swapfile none swap sw 0 0&lt;br /&gt;
&lt;br /&gt;
NOTE: swap files are not supported on compressed file systems like the JFFS2 used in NAND&lt;/div&gt;</description>
			<pubDate>Wed, 16 Mar 2016 20:23:40 GMT</pubDate>			<dc:creator>Support</dc:creator>			<comments>https://wiki3.micromint.com/index.php/Talk:Adding_swap_space</comments>		</item>
	</channel>
</rss>