The Following 6 Users Say Thank You to malkavian For This Useful Post: | ||
![]() |
2012-07-13
, 09:19
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#82
|
The Following 6 Users Say Thank You to impeham For This Useful Post: | ||
![]() |
2012-07-13
, 15:49
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#83
|
The Following 2 Users Say Thank You to Estel For This Useful Post: | ||
![]() |
2012-07-13
, 18:41
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#84
|
@sixwheeledbeast
This is not javascript, you can't simple equal a function to a variable.
Here you have your scripts corrected and improved I think. If you don't understand something of the code, just ask
![]() |
2012-07-13
, 19:52
|
Posts: 78 |
Thanked: 24 times |
Joined on Feb 2012
@ Moscow
|
#85
|
I have N900 with swap on sd card partition. Swap on emmc is disabled.
And i have a problem with some osso applications. RSS, for example, after returning from microb, refreshing to main window, contacts refreshing to top of list after call. Both programs showing "<app name> - resuming" on the top. With emmc swap enabled glitch disappears. What to do?
![]() |
2012-07-13
, 20:03
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#86
|
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.
Using both swaps on microSD card with backup swap on eMMC (for being able to boot, if microSD refuses to work) is very good.
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
![]() |
2012-07-13
, 20:08
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#87
|
Originally Posted by OMOIKANE
I have N900 with swap on sd card partition. Swap on emmc is disabled.
And i have a problem with some osso applications. RSS, for example, after returning from microb, refreshing to main window, contacts refreshing to top of list after call. Both programs showing "<app name> - resuming" on the top. With emmc swap enabled glitch disappears. What to do?
Anyone? Tell me the truth)
![]() |
2012-07-13
, 20:58
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#88
|
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 3 Users Say Thank You to Estel For This Useful Post: | ||
![]() |
2012-07-13
, 21:21
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#89
|
But, without moving swap data and physically turning one down, it doesn't get un-fragmented, so when swap 2 also hit the limit, changing priority to higher for swap 1 won't help in fighting fragmentation...
So, it works only, until both swaps hit the limit. But, 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.
/Estel
![]() |
2012-07-13
, 22:08
|
Posts: 461 |
Thanked: 358 times |
Joined on May 2010
@ Bilbao (Basque Country [Spain])
|
#90
|
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...)
it doesn't affect SD card wear&tear - wear leveling is implemented on hardware level of microSD card, so it doesn't matter
@malkavian I don't understand the need for the RANDOM part of your script?
http://wiki.maemo.org/Talk:Swap_on_microSD
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.
The Following 2 Users Say Thank You to malkavian For This Useful Post: | ||
This is not javascript, you can't simple equal a function to a variable.
Here you have your scripts corrected and improved I think. If you don't understand something of the code, just ask
Edited to upload a corrected scripts. swapswitch.sh had some stupid errors, I let spaces in assignations between "new" variable the equal and the value. swapswitchejectsd.sh some stupid too but long to explain.
Last edited by malkavian; 2012-07-12 at 23:57.