View Single Post
Posts: 461 | Thanked: 358 times | Joined on May 2010 @ Bilbao (Basque Country [Spain])
#90
Originally Posted by Estel View Post
Any input - like patches or even improved ereswap - highly appreciated. It would be great, to allow - tuneable by configuration - usage of any variant, no matter of partition layout (2 swaps, 3 swaps, eMMC, microSD...)
Ok, I suppose I will have time to try it

Originally Posted by Estel View Post
it doesn't affect SD card wear&tear - wear leveling is implemented on hardware level of microSD card, so it doesn't matter
All SD cards have wear leveling? Mine is a old 2Gb SD from my old Nokia N81.

Originally Posted by sixwheeledbeast View Post
@malkavian I don't understand the need for the RANDOM part of your script?
You (or we) wanted to share the damage to each swap partition on SD card so when it changes from backup swap to another, it doesn't use always the same partition, uses RANDOM to equally distribute the use. If, as said by Estel wear leveling is implemented, then it's not needed at all.

Originally Posted by sixwheeledbeast View Post
http://wiki.maemo.org/Talk:Swap_on_microSD
Great!

Originally Posted by Estel View Post
maybe after giving higher priority for swap 2, we could wait some time, and then quickly disable and re-enable (with still lower priority) swap 1, so it will be ready for taking higher priority again? Due to sitting with lower priority for some time, it should contain low amount of data for read, anyway.
Great solution... ops, more work to do XDDD. The time to wait might be big, to move the less possible data. We don't have "at" command in N900, so maybe a cron could be created and autoremoved, because an "sleep" command would be lose if you reboot the phone.
 

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