View Single Post
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#13
Originally Posted by Estel View Post
I hope it is not off-topic here, as it is mean to increase uptime without lags - using swap on microSD (even class 2) and re-enabling it after total amount of data written to swap partition exceeds 600 (*not* data currently on swap, but data written totally, check iostat), result in absolutely 0 negative effects of long uptime.
"600" what? According to iostat I have mmcblk1p2 (swap) with blk_wrtn = 1455752 (blocks) = 710MB. Do you mean 600MB?

Using the above (re-swapping by semi-automatic script that I've based on shadowjk's work) I used to get uptimes like 30 days (sic!) without any negative effect on performance (used, because now I'm installing/tweaking etc. things, that many times require reboot to take effect).
My current uptime is 24 days. No sign of any lags. Swap is only on 768MB partition on sd card. Currently 140MB are being used.

I once tried recycling the swap (changing to mmcblk0 and then back to mmcblk1) but didn't notice any improvement. I sort of expected that the swap would be (almost) cleared, but it actually grew up.. after some time it sort of fell back to the previous usage (= before recycling), so I stopped thinking about it.

I suppose you're experience is different.. but in any case with my light usage I guess I'm fine..

Add: ivgalvez: sorry for continuing the off-topic!