Active Topics

 


Reply
Thread Tools
Posts: 915 | Thanked: 3,209 times | Joined on Jan 2011 @ Germany
#61
Originally Posted by sixwheeledbeast View Post
Would there be any benefits in having 2 swap spaces on Micro SD?
Leaving the standard swap space as backup (for no card inserted).
Maybe use cron to Swap between the SD Swaps at night?
That depends on what you consider to be a benefit.
If you don't need these additional 768MB on your emmc it doesn't hurt to keep the stock swap partition anyway.
Changing between swap partitions via a cron essentially does what Estel's ereswap does if you set it up to automatically switch the partition, so it has the same pros and cons:
pro: You get a "fresh" swap every morning.
con: Each copy of the swap contents means another writing process on a fairly limited amount of flash cells, eventually decreasing the cell's lifetime. But I don't think that's an issue unless you intend to keep your N900 for a decade or so.
 
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#62
Originally Posted by michaaa62 View Post
Very interesting! Please keep informing on your proceedings.
Well, the time I can dedicate to this is severly limited , but at the moment I have removed a whole bunch of stuff from a standard PR1.3 install and copied the whole rootfs to a folder under /home (which I partitioned to be 8GB).

Now I'm working on making a version of KP50 with many modules built-in so that it can boot via U-boot without needing an initrd or anything from the NAND chip.

That'll take some time though..
 

The Following 9 Users Say Thank You to reinob For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#63
Originally Posted by sulu View Post
con: Each copy of the swap contents means another writing process on a fairly limited amount of flash cells, eventually decreasing the cell's lifetime. But I don't think that's an issue unless you intend to keep your N900 for a decade or so.
This is why I am thinking of using only Micro SD swap but two of them. I do plan to reduce the wear on the N900's flash in doing this.

If there both on the SD, I only have to switch between the swaps (swap2 on, swap1 off) compared to a full reswap (swap2 on, swap1 off, swap1 on then swap2 off).

On my 64Gb card I am thinking 2x 800Mb swap spaces, 5Gb Document partition and whatever's left for a Music partition.

Can anybody see any issues I may come across with this?

With music on the card I am hoping for smooth multi tasking while playing music under heavy load.
__________________

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 User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 804 | Thanked: 1,598 times | Joined on Feb 2010 @ Gdynia, Poland
#64
Originally Posted by sixwheeledbeast View Post
On my 64Gb card I am thinking 2x 800Mb swap spaces, 5Gb Document partition and whatever's left for a Music partition.

Can anybody see any issues I may come across with this?

With music on the card I am hoping for smooth multi tasking while playing music under heavy load.
You will reduce wear, but having files on microsd and swap on microsd it can still lag as hell (same situation as swap on internal flash + files on internal flash), as the microsd controller will have conflicts on writing/reading to swap and files partition (I hope you understand what I mean).
 

The Following 3 Users Say Thank You to misiak For This Useful Post:
Posts: 915 | Thanked: 3,209 times | Joined on Jan 2011 @ Germany
#65
Music (read-only) and documents (small files, very few writes) shouldn't cause much trouble if they are on the SD card with the swap partition. Of course there may still be conflicts but the device should be able to handle them.
I have swap and (mostly) music on my SD card and almost never experience any hickups.
 

The Following 3 Users Say Thank You to sulu For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#66
Originally Posted by misiak View Post
(I hope you understand what I mean).
This was exactly what I was getting at as reguard to issues.

Originally Posted by sulu View Post
Music (read-only) and documents (small files, very few writes) shouldn't cause much trouble if they are on the SD card with the swap partition.
This is what I was thinking.

I can test the different methods and check for conflicts.
Starting with ideal for less N900 wear and adjust until happy.
Time will tell.

Are there any recommendations for Swappolube settings with swap on uSD or will it depend on the card?
__________________

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


Before posting or starting a thread please try this.
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#67
Well my 64GB card arrived and so far so good.
No issues with lag and the system feels snapier at the moment.

I made two swaps of 800mb (1p2 and 1p3) and the rest FAT32 (1p1).

To start swap on MMC I created a file in event.d

etc/event.d/relocateswap
Code:
description "Micro SD Swap Location on Startup"
author "sixwheeledbeast"

console output

start on started rcS-late

script
        swapon /dev/mmcblk1p2        
        sleep 10
        swapoff /dev/mmcblk0p3
end script
It seems (from testing) if the memory card is not accessable the script can not run and swap goes on (0p3) as per rcS-late.

Also I have added three QBW to view current swaps and swap between swap spaces.

Check Swaps
Code:
cat /proc/swaps | awk '/dev/ {print $1}'
The other two buttons are swap 1p2 on, swap 1p3 off and vice versa.
I am hoping when I have time to turn this into one script that can be run from cron or QBW etc.

Ideally something like:

if swap = 1p2 then swap on 1p3, swap off 1p2
if swap =1p3 then swap on 1p2, swap off 1p3
if swap = 0p3 then swap on 1p2, swap off 0p3
with some way of knowing if it's failed or not possible.

I would just use ereswap but that would defeat the object of lowering flash wear by only swapping one way.
__________________

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


Before posting or starting a thread please try this.
 
Raimu's Avatar
Posts: 139 | Thanked: 181 times | Joined on Nov 2011 @ Oulu, Finland
#68
Hee, that's a nice looping swap. Not just wear, this also should shorten the swapoff/on refresh slowness a fair bit since this ring moves the swap one way.
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#69
Originally Posted by sixwheeledbeast View Post
I would just use ereswap but that would defeat the object of lowering flash wear by only swapping one way.
Why so? In ereswap config, uou can define both main and "backup" swap as partitions on microSD ,(mmcblk1p2 and mmcblk1p3 in this case) which leaves internal swap out of use (it can even not exist) making it fully compatible with your use case

/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 User Says Thank You to Estel For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#70
Originally Posted by Raimu View Post
Not just wear, this also should shorten the swapoff/on refresh slowness a fair bit since this ring moves the swap one way.
Exactly

Originally Posted by Estel View Post
Why so? In ereswap config, you can define both main and "backup" swap as partitions on microSD ,(mmcblk1p2 and mmcblk1p3 in this case) which leaves internal swap out of use (it can even not exist) making it fully compatible with your use case
Compatible yes, but not exactly my plan.

My idea of having two swaps on microSD is so they can be used equally.
With ereswap IINM you can only have a primary and a temporary swap space.
I wish to have two swaps which I can "flip/flop" to.

The benefit's are quicker swap refresh and reduced, equal cell usage.
__________________

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 08:13.