Reply
Thread Tools
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#121
@mr_pingu
Why do you do it every night?
I do it as my swap reaches (configurable) threshold of swap size. So I just swap when needed, start swap action with nice 19 and it lags abit, but it is fully okay/respondable (OK, you should not try to open multiple browser windows at that time, swapping swap space takes a few minutes ...).
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2012-11-23 at 13:13.
 
Posts: 262 | Thanked: 315 times | Joined on Jun 2010
#122
Can anyone confirm that larger swap partitions > 1 GB? 2 GB? actually have a performance benefit that compensates for the loss of MMC space?

Edit: I mean, does it provide a noticeable increase in the length of time between needing to defrag swap?

Last edited by Xagoln; 2012-12-21 at 00:33.
 
Posts: 669 | Thanked: 433 times | Joined on May 2010
#123
yes it does - i moved to 1.5GB and there is a need for much less cycles
 

The Following 3 Users Say Thank You to impeham For This Useful Post:
Posts: 262 | Thanked: 315 times | Joined on Jun 2010
#124
Thanks! Just by coincidence, I made the swap partitions on both of my N900s 1.5 GB each before receiving your reply
 

The Following User Says Thank You to Xagoln For This Useful Post:
Posts: 97 | Thanked: 55 times | Joined on Jun 2010
#125
There is a lot of useful info in this thread, I read through most of it but still unclear about the best solution for enabling swap on microsd with fallback to emmc when it is not available at boot time. Will using both giving higher priority to microsd do the trick? My main concern is if I run swap on microsd xclusively and it dies or somehow is unavailable the device won't boot making impossible to take a corrective action.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#126
The simplest setup for me is to have swap on an external microSD card, which i never take out. If it dies, i would just format another card to have a temporary swap on the partition i assigned in /etc/event.d/rcS-late.
For more complex setup, you could search for ereswap application http://talk.maemo.org/showthread.php...hlight=ereswap
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 2,292 | Thanked: 4,135 times | Joined on Apr 2010 @ UK
#127
Originally Posted by Val Demar View Post
My main concern is if I run swap on microsd xclusively and it dies or somehow is unavailable the device won't boot making impossible to take a corrective action.
Quick reply in lunch break...

This is incorrect if you setup the correct things at boot time, which you have to do anyway.

Ereswap modifies rcs-late to force swap to sd (if available).
FlopSwap has an optional checkbox this adds/removes a file in event.d, (IMO better than modifing rcs-late) this again pushes swap to sd at boot if available.
Both programs fallback to device swap if not available.

For more information lookup...
Flopswap, Ereswap, Swap on micro SD, The perfect N900 setup pages at wiki.maemo.org
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 2 Users Say Thank You to sixwheeledbeast For This Useful Post:
Posts: 1,163 | Thanked: 1,873 times | Joined on Feb 2011 @ The Netherlands
#128
Originally Posted by peterleinchen View Post
@mr_pingu
Why do you do it every night?
I do it as my swap reaches (configurable) threshold of swap size. So I just swap when needed, start swap action with nice 19 and it lags abit, but it is fully okay/respondable (OK, you should not try to open multiple browser windows at that time, swapping swap space takes a few minutes ...).
Seems I never responded to this one... You seem to manually swap it? Or have you written a script to automatically swap when threshold is reached? That way it wouldn't

The way I set this up, you never have to bother to swap manually, all will be done at night when I am sleeping. Also you (Atleast I do) never reach the threshold in 1 day so your phone is responsive, even after longer uptime

Said short: Set it up once, never bother anymore, it just works. That's why I prefer ereswap over FlopSwap.. Besides I dont have 3 swap partitions. However the way FlopSwap goes, is cleaner than Ereswap's way...
__________________
N900 loaded with:
CSSU-T (Thumb)
720p recording,
Pierogi, Lanterne, Cooktimer, Frogatto
N9 16GB loaded with:
Kernel-Plus
--
[TCPdump & libpcap | ngrep]
--
donate
 

The Following 3 Users Say Thank You to mr_pingu For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#129
It's true, that adding separate script on /etc/event.d/ is "cleaner", in a way that it have less chances or messing something up (not that I've heard about ereswap breaking anyone's rcS-late, ever, but there are always chances), or is just easier for manual managing. It's generally perceived, that touching default, boot-critical scripts - like rcS-late - is less "clean" way of doing things, and I absolutely agree with this.

Hoever, without modifying rcS_late, we have situation, where one script enables regular swap on eMMC, and another one disables it, just a moment later. It makes booting a little longer due to unnecessary operation being performed (although, in practice, it's hardly-to-non noticeable), but most importantly, just don't match my aesthetic, and can create problems, if one decide to go without any eMMC swap, at all.

That's why I've decided to go with the way of sed-modifying rcS-late, which was paincfully more hard to write, than just adding another script to /etc/event.d/, especially, that they way sed command was written, tries to be compatible with modified rcS-late's, too (unless the very swap lines vere touched, but in that case, one wouldn't need ereswap, probably).

After all, we have major respected packages touching boot-critical script - including things from CSSU - so why should we restrain ourselves

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following 2 Users Say Thank You to Estel For This Useful Post:
Posts: 2,292 | Thanked: 4,135 times | Joined on Apr 2010 @ UK
#130
Originally Posted by mr_pingu View Post
Said short: Set it up once, never bother anymore, it just works. That's why I prefer ereswap over FlopSwap.. Besides I dont have 3 swap partitions. However the way FlopSwap goes, is cleaner than Ereswap's way...
FlopSwap can be intrgated into cron/alarmd to run on a schedule if required. It's covered in the wiki.
I prefer to run everything on the card to reduce flash wear as I have said before.
While I agree FlopSwap is more restrictive in some ways (swap locations), it is designed to install and remove cleanly with no residue like applications IMO should.

This also makes it more user friendly hence the GUI, not a command tool like ereswap. Many beginners can utilise swap on SD with minimal knowledge using FlopSwap.

This is why I made FlopSwap instead of a GUI for ereswap.

Originally Posted by Estel View Post
It's true, that adding separate script on /etc/event.d/ is "cleaner", in a way that it have less chances or messing something up
Agreed hence my design.

Originally Posted by Estel View Post
Hoever, without modifying rcS_late, we have situation, where one script enables regular swap on eMMC, and another one disables it, just a moment later. It makes booting a little longer due to unnecessary operation being performed (although, in practice, it's hardly-to-non noticeable), but most importantly, just don't match my aesthetic, and can create problems, if one decide to go without any eMMC swap, at all.
Change in boottime is milliseconds.
FlopSwap is not designed to work with no device SD.
The device SD can be swapped to, so the back cover can be removed. Not everyone has modifed the magnet on the back cover.

Originally Posted by Estel View Post
That's why I've decided to go with the way of sed-modifying rcS-late, which was paincfully more hard to write, than just adding another script to /etc/event.d/, especially, that they way sed command was written, tries to be compatible with modified rcS-late's, too (unless the very swap lines vere touched, but in that case, one wouldn't need ereswap, probably).
This is were modifing rcs-late can cause problems, and would cause a boot loop if rcs-late fails.
If the extra event.d file fails it would be ignored and booting should continue on device swap.

Originally Posted by Estel View Post
After all, we have major respected packages touching boot-critical script - including things from CSSU - so why should we restrain ourselves
CSSU fair enough, these are"system" updates, but IMO applications shouldn't just start modifing root and adding files everywhere. This is how root starts to get full of unremovable rubbish, for people that have NFC.

At the end of the day it's nice to have options.
Both do the same thing and both have there place.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 2 Users Say Thank You to sixwheeledbeast For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 01:14.