View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#86
Originally Posted by impeham View Post
I just increased the SD's swap size to 1.5GB instead of just 768MB in order to increase the time needed between reswap operations.
should probably be much better this way.
Yep, good idea. As filling up this much space takes longer until fragmentation starts, the need for swap refreshing will also take longer. And this minimizes the wear (each time you change swap location, all data -of currently used swap size- is moved).
Will increase my swap file also (as I fill it up once/twice a day during heavy usage).


Originally Posted by Estel View Post
Using both swaps on microSD card with backup swap on eMMC (for being able to boot, if microSD refuses to work) is very good.
Agree.

BTW, I agree that flip/flop on microSD only is slightly faster and saves eMMC from wear, but it doesn't affect SD card wear&tear - wear leveling is implemented on hardware level of microSD card, so it doesn't matter - for that case - if 1 or 1 partition is used on microSD (flip could be used all the time, with flop being idle, and wear would be exactly same as with flip and flop used one after another).
/Estel
Right.
But to minize wear to the maximum:
what about not disabling flip location, but enabling flop location with higher priority?
This will lead to flip still used (only read of old data) and all new swap on flop. Or/and vice versa. This way we do not have the need to move the currently used swap data.

Maybe I do not increase, but create second swap ....
 

The Following 4 Users Say Thank You to peterleinchen For This Useful Post: