![]() |
Re: [DISCUSS] SDCard Swap Partition Methods..
Just wait until current swap usage reaches its limit (with some safety margin, e.g. 10% of swap).So start dis-/enabling just shortly before switching.
And do it with lesser nice, like 'nice -20 switchswap.sh' |
Re: [DISCUSS] SDCard Swap Partition Methods..
Worth checking in practice - if dis/ena/-bling, at this point, would be very quickly, it could be done in background, automatically, without user's intervention at all.
OTOH, I've talked with ShadowJK on IRC about that, and he mentioned, that having fragmented swap with lower priority (as when enabling 2nd swap with higher priority, without disabling 1st one), won't work well, as due to flawed implementation, there are still writes occurring on lower-priority (=fragmented) swap: http://mg.pov.lt/maemo-irclog/%23mae...07-13T23:50:36 /Estel |
Re: [DISCUSS] SDCard Swap Partition Methods..
OK your RANDOM part makes sense now, probably not required tho.
Quote:
Do they work for everyone? Quote:
I started a GUI for ereswap but it got well out of my league. Feel free to take the reigns on the project. |
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
And, this swap is not yet fragmented, as we start switchswap about 10% (or similar) before maximum reached. Then it should work flawlessly. I did not have any negative effects with my setup (main swap on SD with eMMC always on with lower priority; dis-/reenabling SD swap after 700MB written). |
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
Quote:
|
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
|
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
Code:
run-standalone.sh /home/user/.myscript/swapswitch.sh | sudo gainroot I am certain I have seen some script that is "if not root - sudo me" |
Re: [DISCUSS] SDCard Swap Partition Methods..
i've seen several posts here regarding problems with swap implementation and multiple swap locations/files. are there any patches from meego/mainline we could backport to help?
|
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
Quote:
Code:
#!/bin/sh |
Re: [DISCUSS] SDCard Swap Partition Methods..
Hey guys, I got intrested in the swap switching idea that you have and i'm currently testing it (thou without the scripts, I prefer doing it manualy 'till i'm in testing phase) ..anyway I have few suggestion:
1. As you already said, it needs GUI ... not that i'm really good at GUI programming ...i kind of hate writing GUI stuff, but i'll try to find some free time to help out with that. 2. Adding the possability of automatic reswaping. 3. Don't edit startup scripts! It's a bad idea.... it think it will be better if you add the (or switch to) second swap at a later stage (maybe after Xstart with sleep for $user_defined seconds before X an then doing it) This way you'll only add dbus scripts. 4. Some changes in the scripts..... first one shoud only check if it is time to do the reswaping, and call the seconds one (if needed). The second one will do the actual reswaping. (not sure but I think that currently both scripts can do some of the same stuff, correct me if i'm wrong.... i'm to lazy to check it out right now) 5. About the automatic reswaping... one way to go is to start a script after phone is locked, sleep for 3-4-5 minutes (this can be user defined too) then check if the load is below some value (for example 0.5) and start reswaping if it is time. if the load is grater -> loop on the sleep and check again. Ofc kill the script on phone unlock. Anyway those are just my thoughts on the matter, tell me what you think and (if any) with what can I help :) |
All times are GMT. The time now is 12:16. |
vBulletin® Version 3.8.8