[maemo-users] Swap on mmc after six or more months

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Hi,

I added a modified 'CPU/Mem/Screenshot applet with swapon/off' to the 
ITOS2006 Maemo Application Catalog 
http://maemo.org/maemowiki/ApplicationCatalog2006

Again I modified Jakub's original version of the CPU/Mem/Screenshot 
applet to include swapon/off. This is useful for those of us who 
prefer to continue to have their swap in a dedicated partition on the 
MMC, e.g. '/dev/mmcblk0p2'. 

Default now with ITOS2006 is to have a swap file '/media/mmc1/.swap', 
which is within the filesystem in '/dev/mmcblk0p1'. You do not need 
the modified applet if you are happy with the new default swap file 
in ITOS2006! 

There are pros and cons with swap files versus swap partitions. For 
example ITOS2006 automagically swapoffs the swap file if the 
filesystems gets umounted when you connect the device via USB to the 
PC (and automagically swapons after the USB disconnect caused to 
mount '/media/mmc1' again). On the other hand, a swap partition 
simply can remain active in this situation, it is not affected by USB 
handling. The downside of swap partition versus swap file comes with 
phyiscal MMC ejection: With a swap partition you have to manually 
swapoff via the applet before you eject the card (and manually swapon 
again after MMC insertion), while ITOS2006 somehow automagically 
swapoffs the swap file before ejection (and swapons after MMC 
insertion). If you fail to swapoff before MMC ejection the device 
will crash. 

Note: If you want to use swapon/off of the modified CPU/Mem/Screenshot 
applet you have to edit /etc/sudoers, which requires you to gain 
root. 

Warning: Swap on dedicated partitions, messing around on your device 
being root, and editing /etc/sudoers is not intended for end-users 
but only for experts. Use with care. You have been warned. Create a 
backup. If unsure - stay with the default swap file in ITOS2006 and 
use Jakub's original applet without swapon/off.

http://armin-warda.de/load-applet-aw_0.4.4-2-0.1_armel.deb
http://armin-warda.de/load-applet-aw-0.4.4-2-0.1.patch

  regards, Armin.

On Friday 09 June 2006 12:15, Armin M. Warda wrote:
>   Hi,
>
> I am using a 31MBytes swap partition /dev/mmcblk0p2 on
> a 512MBytes RS-MMC for about 6 month without problems.
> No indication of excessive wear.
>
> For swapon/off I use load-plugin-aw v0.2.7-2 .
>
>   regards, Armin.
>
> On Thursday 08 June 2006 21:34, Michael P. Lococo wrote:
> > > Anyone been using a swap partition on an mmc for any length of
> > > time, say 5 or six months or more.  Any problems do you
> > > recommend it?
> >
> > I don't personally use swap, but I haven't heard any reports of
> > dead or dying cards due to swap usage (I've been lurking on
> > maemo-users and maemo-devel since the product release).  That
> > said, the device hasn't been available for a year yet, so who
> > knows what the card-life will turn out to be.  It certainly
> > appears to be more than a few months, though.
> >
> > Mike
> >
> > _______________________________________________
> > maemo-users mailing list
> > maemo-users at maemo.org
> > https://maemo.org/mailman/listinfo/maemo-users

-- 
   --- May the Source be with you! Linux. ---
   --- secure eMail: http://www.gnupg.de/ ---
   --- My Homepage http://armin-warda.de/ ---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-users/attachments/20060620/1de1ecc6/attachment.pgp 


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux