<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Making Swap</title>
	<atom:link href="http://dillernet.com/apple/2005/12/27/making-swap/feed/" rel="self" type="application/rss+xml" />
	<link>http://dillernet.com/apple/2005/12/27/making-swap/</link>
	<description>iPhone, Nokia, PDAs, Smartphones, Entourage and the Mac - keeping it all in sync.</description>
	<pubDate>Thu, 28 Aug 2008 03:32:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Internet Tablet Users Blog &#187; Blog Archive &#187; Extending the root file system to the MMC card</title>
		<link>http://dillernet.com/apple/2005/12/27/making-swap/#comment-23</link>
		<dc:creator>Internet Tablet Users Blog &#187; Blog Archive &#187; Extending the root file system to the MMC card</dc:creator>
		<pubDate>Wed, 25 Jan 2006 17:54:29 +0000</pubDate>
		<guid isPermaLink="false">http://dillernet.com/apple/?p=84#comment-23</guid>
		<description>[...] At the same time, I will likely create a swap file in this partition too, which people have reported makes their system run more stably and faster. The itT FAQ page on swap cites Andy Diller writing at The Synching Apple as the originator of this notion (the initial post there points to a comment in the Maemo Users list about enabling swap). A thread here at itT forums, &#8220;Swap space on RSMMC card?&#8220;, contains more material on this. [...]</description>
		<content:encoded><![CDATA[<p>[...] At the same time, I will likely create a swap file in this partition too, which people have reported makes their system run more stably and faster. The itT FAQ page on swap cites Andy Diller writing at The Synching Apple as the originator of this notion (the initial post there points to a comment in the Maemo Users list about enabling swap). A thread here at itT forums, &#8220;Swap space on RSMMC card?&#8220;, contains more material on this. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Connecting geeks &#187; Adding swap, and adding a menu entry to activate it</title>
		<link>http://dillernet.com/apple/2005/12/27/making-swap/#comment-22</link>
		<dc:creator>Connecting geeks &#187; Adding swap, and adding a menu entry to activate it</dc:creator>
		<pubDate>Thu, 12 Jan 2006 20:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://dillernet.com/apple/?p=84#comment-22</guid>
		<description>[...] I followed the instructions given in this blog, and added a swap file on my removable card to try to improve the perfomance of the system. [...]</description>
		<content:encoded><![CDATA[<p>[...] I followed the instructions given in this blog, and added a swap file on my removable card to try to improve the perfomance of the system. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Syncing Apple &#187; 770 Previous Post Redux</title>
		<link>http://dillernet.com/apple/2005/12/27/making-swap/#comment-21</link>
		<dc:creator>The Syncing Apple &#187; 770 Previous Post Redux</dc:creator>
		<pubDate>Thu, 12 Jan 2006 01:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://dillernet.com/apple/?p=84#comment-21</guid>
		<description>[...] Swap [...]</description>
		<content:encoded><![CDATA[<p>[...] Swap [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rich</title>
		<link>http://dillernet.com/apple/2005/12/27/making-swap/#comment-20</link>
		<dc:creator>rich</dc:creator>
		<pubDate>Sat, 31 Dec 2005 16:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://dillernet.com/apple/?p=84#comment-20</guid>
		<description>Some info here on swap files/ partitions on the Zaurus

http://www.pdaxrom.org/index.php?showid=43&#38;menuid=8</description>
		<content:encoded><![CDATA[<p>Some info here on swap files/ partitions on the Zaurus</p>
<p><a href="http://www.pdaxrom.org/index.php?showid=43&amp;menuid=8" rel="nofollow">http://www.pdaxrom.org/index.php?showid=43&amp;menuid=8</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://dillernet.com/apple/2005/12/27/making-swap/#comment-19</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Thu, 29 Dec 2005 01:06:05 +0000</pubDate>
		<guid isPermaLink="false">http://dillernet.com/apple/?p=84#comment-19</guid>
		<description>Well, most of the mmcmobile cards I find seem to be specced for more like 100,000 erasures, but whatever.  It's kind of worth it.  The partition method is very clever!  I'll have to give it a shot once I get a card reader.

Oh -- and yeah, I crashed my 770 by USB-plugging the device while I had the swap running.  Took me a minute to realize what had happened, but the card/device were okay.</description>
		<content:encoded><![CDATA[<p>Well, most of the mmcmobile cards I find seem to be specced for more like 100,000 erasures, but whatever.  It&#8217;s kind of worth it.  The partition method is very clever!  I&#8217;ll have to give it a shot once I get a card reader.</p>
<p>Oh &#8212; and yeah, I crashed my 770 by USB-plugging the device while I had the swap running.  Took me a minute to realize what had happened, but the card/device were okay.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://dillernet.com/apple/2005/12/27/making-swap/#comment-18</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 28 Dec 2005 21:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://dillernet.com/apple/?p=84#comment-18</guid>
		<description>And- thanks Tommy for that vastly improved idea regarding swap partitions- I forgot what the USB does to the 770's MMC (since I use ssh via wifi mostly these days).

I'm going to use your method to keep my swap on its own partition.</description>
		<content:encoded><![CDATA[<p>And- thanks Tommy for that vastly improved idea regarding swap partitions- I forgot what the USB does to the 770&#8217;s MMC (since I use ssh via wifi mostly these days).</p>
<p>I&#8217;m going to use your method to keep my swap on its own partition.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://dillernet.com/apple/2005/12/27/making-swap/#comment-17</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 28 Dec 2005 21:43:39 +0000</pubDate>
		<guid isPermaLink="false">http://dillernet.com/apple/?p=84#comment-17</guid>
		<description>I'm not so sure that this is that much of an issue with the 770. If you had a regular desktop or workstation, perhaps you'd wear it out in a year or so (they are capable of millions of writes I think) , but on the 770-- I don't think there is that much activity. It's not like you are using it as a workstation.....

And with prices dropping, and capacity increasing, in 1 or 2 years you can just toss it and get the 16G RSMMC card for $20. :)

Here is some info about the NAND memory you find on these cards:
http://en.wikipedia.org/wiki/Flash_memory</description>
		<content:encoded><![CDATA[<p>I&#8217;m not so sure that this is that much of an issue with the 770. If you had a regular desktop or workstation, perhaps you&#8217;d wear it out in a year or so (they are capable of millions of writes I think) , but on the 770&#8211; I don&#8217;t think there is that much activity. It&#8217;s not like you are using it as a workstation&#8230;..</p>
<p>And with prices dropping, and capacity increasing, in 1 or 2 years you can just toss it and get the 16G RSMMC card for $20. <img src='http://dillernet.com/apple/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Here is some info about the NAND memory you find on these cards:<br />
<a href="http://en.wikipedia.org/wiki/Flash_memory" rel="nofollow">http://en.wikipedia.org/wiki/Flash_memory</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://dillernet.com/apple/2005/12/27/making-swap/#comment-16</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Wed, 28 Dec 2005 21:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://dillernet.com/apple/?p=84#comment-16</guid>
		<description>Agreed -- using the swap file helps me tremendously.  Why, oh why didn't they put 128mb in the 770?

The catch appears to be this: according to Karoliina, using flash memory as swap will wear out your flash pretty quickly, as flash memory has a limited number of write/erase cycles (I assume, for each bit) before it goes dead.

So the question is this: can somebody who knows the mechanics of Linux virtual memory better than I do the math on exactly *how* quickly this will wear out your flash?  I'd hate to get a 1GB mmcmobile card and kill it in a week just because I like having several windows open.</description>
		<content:encoded><![CDATA[<p>Agreed &#8212; using the swap file helps me tremendously.  Why, oh why didn&#8217;t they put 128mb in the 770?</p>
<p>The catch appears to be this: according to Karoliina, using flash memory as swap will wear out your flash pretty quickly, as flash memory has a limited number of write/erase cycles (I assume, for each bit) before it goes dead.</p>
<p>So the question is this: can somebody who knows the mechanics of Linux virtual memory better than I do the math on exactly *how* quickly this will wear out your flash?  I&#8217;d hate to get a 1GB mmcmobile card and kill it in a week just because I like having several windows open.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tommy Cheng</title>
		<link>http://dillernet.com/apple/2005/12/27/making-swap/#comment-15</link>
		<dc:creator>Tommy Cheng</dc:creator>
		<pubDate>Wed, 28 Dec 2005 20:52:46 +0000</pubDate>
		<guid isPermaLink="false">http://dillernet.com/apple/?p=84#comment-15</guid>
		<description>Thanks for the info.  Enabling some swap space really improve stability and performance a lot, now I can run opera, email, videoplayer, rss reader and FBReader all at once without any noticeable slowdown(thank god).  So after playing a little with the swap file on mmc card, I dig into the system to make a more premanent hack.  

With the above mentioned swap file method, I see 2 issues that I want to avoid: 1) having to reapply the mod manually each time the 770 boots; 2) when the 770 is connected to a PC via the USB cable, the mmc card is automatically unmounted and that seems like a very dangerous thing to do when the swap file is still in use. So here's what I did in case anyone is interested.

1.)  Prepare the MMC by re-partitioning it into 2 partitions, partition1 for normal data and partition2 for swap.  In my case, 46MB for partition1 and 16MB for partation2 (I am still using the factory 64MB mmc).  I've done this using fdisk on a Linux box

2.) Format partition1 using FAT16 and leave the 2nd one alone.

3.) Insert the MMC back into the 770 and log in using SSH, and do the following:

&lt;pre&gt;
~ $ sudo gainroot
Root shell enabled


BusyBox v1.00 (Debian 2:20041102-11) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # ls /dev/mmc*
/dev/mmcblk0    /dev/mmcblk0p1  /dev/mmcblk0p2
/home/user # echo '#!/bin/sh' &#62; /var/lib/install/etc/init.d/mmcswap.sh
/home/user # echo '#' &#62;&#62; /var/lib/install/etc/init.d/mmcswap.sh
/home/user # echo 'if [ -e /dev/mmcblk0p2 ] ; then' &#62;&#62; /var/lib/install/etc/init.d/mmcswap.sh
/home/user # echo '  mkswap /dev/mmcblk0p2' &#62;&#62; /var/lib/install/etc/init.d/mmcswap.sh
/home/user # echo '  swapon /dev/mmcblk0p2' &#62;&#62; /var/lib/install/etc/init.d/mmcswap.sh   
/home/user # echo 'fi' &#62;&#62; /var/lib/install/etc/init.d/mmcswap.sh
/home/user # more /var/lib/install/etc/init.d/mmcswap.sh
#!/bin/sh
#
if [ -e /dev/mmcblk0p2 ] ; then
  mkswap /dev/mmcblk0p2
  swapon /dev/mmcblk0p2
fi
/home/user # chmod +x /var/lib/install/etc/init.d/mmcswap.sh
/home/user # ln -s /var/lib/install/etc/init.d/mmcswap.sh /etc/rc2.d/S27mmcswap.sh
/home/user #

&lt;/pre&gt;

4.) Reboot and enjoy.

Now you get a swap upon boot-up that won't be affected when the USB cable is plug-in.  Also, if you insert a normal MMC(only 1 partition), the 770 will boot as normal, the only adverse affect is that you don't get the swap.  There is one caveat thou, the 770 needs to be turn off if you want to change/eject the mmc card.</description>
		<content:encoded><![CDATA[<p>Thanks for the info.  Enabling some swap space really improve stability and performance a lot, now I can run opera, email, videoplayer, rss reader and FBReader all at once without any noticeable slowdown(thank god).  So after playing a little with the swap file on mmc card, I dig into the system to make a more premanent hack.  </p>
<p>With the above mentioned swap file method, I see 2 issues that I want to avoid: 1) having to reapply the mod manually each time the 770 boots; 2) when the 770 is connected to a PC via the USB cable, the mmc card is automatically unmounted and that seems like a very dangerous thing to do when the swap file is still in use. So here&#8217;s what I did in case anyone is interested.</p>
<p>1.)  Prepare the MMC by re-partitioning it into 2 partitions, partition1 for normal data and partition2 for swap.  In my case, 46MB for partition1 and 16MB for partation2 (I am still using the factory 64MB mmc).  I&#8217;ve done this using fdisk on a Linux box</p>
<p>2.) Format partition1 using FAT16 and leave the 2nd one alone.</p>
<p>3.) Insert the MMC back into the 770 and log in using SSH, and do the following:</p>
<pre>
~ $ sudo gainroot
Root shell enabled

BusyBox v1.00 (Debian 2:20041102-11) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # ls /dev/mmc*
/dev/mmcblk0    /dev/mmcblk0p1  /dev/mmcblk0p2
/home/user # echo '#!/bin/sh' &gt; /var/lib/install/etc/init.d/mmcswap.sh
/home/user # echo '#' &gt;&gt; /var/lib/install/etc/init.d/mmcswap.sh
/home/user # echo 'if [ -e /dev/mmcblk0p2 ] ; then' &gt;&gt; /var/lib/install/etc/init.d/mmcswap.sh
/home/user # echo '  mkswap /dev/mmcblk0p2' &gt;&gt; /var/lib/install/etc/init.d/mmcswap.sh
/home/user # echo '  swapon /dev/mmcblk0p2' &gt;&gt; /var/lib/install/etc/init.d/mmcswap.sh
/home/user # echo 'fi' &gt;&gt; /var/lib/install/etc/init.d/mmcswap.sh
/home/user # more /var/lib/install/etc/init.d/mmcswap.sh
#!/bin/sh
#
if [ -e /dev/mmcblk0p2 ] ; then
  mkswap /dev/mmcblk0p2
  swapon /dev/mmcblk0p2
fi
/home/user # chmod +x /var/lib/install/etc/init.d/mmcswap.sh
/home/user # ln -s /var/lib/install/etc/init.d/mmcswap.sh /etc/rc2.d/S27mmcswap.sh
/home/user #
</pre>
<p>4.) Reboot and enjoy.</p>
<p>Now you get a swap upon boot-up that won&#8217;t be affected when the USB cable is plug-in.  Also, if you insert a normal MMC(only 1 partition), the 770 will boot as normal, the only adverse affect is that you don&#8217;t get the swap.  There is one caveat thou, the 770 needs to be turn off if you want to change/eject the mmc card.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
