![]() |
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
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. |
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
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.. |
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
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. |
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
|
Re: [DISCUSS] SDCard Swap Partition Methods..
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. |
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
Quote:
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? |
Re: [DISCUSS] SDCard Swap Partition Methods..
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" 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}' 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. |
Re: [DISCUSS] SDCard Swap Partition Methods..
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.
|
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
/Estel |
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
Quote:
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. |
All times are GMT. The time now is 07:22. |
vBulletin® Version 3.8.8