[maemo-developers] [maemo-developers] swapfile is a huge improvement!

From: Dirk Kuijsten Dirk.Kuijsten at xs4all.nl
Date: Wed Jan 18 13:48:33 EET 2006
> -----Oorspronkelijk bericht-----
> Van: maemo-developers-bounces at maemo.org [mailto:maemo-developers-
> bounces at maemo.org] Namens Andy
> Verzonden: dinsdag 17 januari 2006 5:14
> Aan: maemo-developers at maemo.org
> Onderwerp: Re: [maemo-developers] swapfile is a huge improvement!
> 
> On Sat, 2006-01-14 at 01:30 -0700, Brad Midgley wrote:
> > hey
> >
> > I decided to try the swap partition on my flash card and it made a HUGE
> > difference. Even with only 25mb swap (30mb wouldn't work for me), now
> > memory is not nearly the concern it was. I can run multiple apps, look
> > at complex pdf documents, etc. Just like I expected my 770 to do in the
> > first place!
> 
> What do you mean "30mb wouldn't work"?  I put a 32meg swapFILE on the
> 64meg mmc I received and it worked fine (/proc/meminfo and /proc/swaps
> showed swap usage, and I could get numerous things running with out
> problems.  Now I'm trying to partition a 512meg MMC into two partitions,
> and neither 128meg nor 64meg of swap as a dedicated partition
> (/dev/mmcblk0p2) works.  As soon as I issue swap on, the "low on memory,
> close some applications" window pops up.  I can immediately exit the
> shell, but if I wait too long, I start getting "sh: can't fork" (a usual
> OOM sign).  If I can get back to the home interface, I can't do anything
> and it keeps telling me "Not enough memory" or some such.  It did
> hardcrash, auto-reboot at one point also (I assume an OOM condition).
> 
> Is there some upper limit on the size of the allowed swap file on this
> arch?  I could get 32meg to work, but you say you couldn't get 30?
> 
> I swear I saw something about the max size of the swap file for the 770,
> but I can't find it now.
> 
> --
> Andy <maemo at thwartedefforts.org>
> 
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers

I have a 32MB swap file working great using the trick to first setup a
smaller swap file (100kb).
After you swapon the small file, wait 15 seconds, then swapon your large
swap file and you can swapoff the small file.

I don't know if this solves anything for swap partitions.

See daf's post at:
http://www.internettablettalk.com/forums/showpost.php?p=4079&postcount=16
in this thread:
http://www.internettablettalk.com/forums/showthread.php?t=602&page=2&pp=10 


More information about the maemo-developers mailing list