View Single Post
Posts: 2,292 | Thanked: 4,135 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.