Active Topics

 



Notices


Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#251
Originally Posted by sixwheeledbeast View Post
That is how ereswap works not flopswap.
Flopswap doesn't do that it is purposely designed to not use the device swap at all.
Not only does it reduce eMMC wear, it also takes half the amount of time and effort to refresh the swap. This is the whole method behind "flopswap".
eMMC is only manually used so you can remove the back cover.
Ereswap gives the option, which swaps to use. They can be well both on uSD. I think that the choice should be left to the user (it might be still recommended to have two swaps on uSD)
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#252
Originally Posted by marmistrz View Post
Ereswap gives the option, which swaps to use. They can be well both on uSD. I think that the choice should be left to the user (it might be still recommended to have two swaps on uSD)
ereswap is hardcoded which is not good.
flopswap uses blkid to locate the swaps at boot time this is the correct way to locate partitions, you should only use swap partitions specified in /etc/fstab.
Using hardcoded paths is bad as stock and upstream kernel issues locations randomly.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#253
Originally Posted by sixwheeledbeast View Post
ereswap is hardcoded which is not good.
flopswap uses blkid to locate the swaps at boot time this is the correct way to locate partitions, you should only use swap partitions specified in /etc/fstab.
Using hardcoded paths is bad as stock and upstream kernel issues locations randomly.
First of all: You could add options internal + external / 2 x external and read "swap2" only if 2x external used.
The relocateswap script seems to fail because it can't find 2nd external swap.

Second of all: It's a waste of space for me to have 3 swaps!

btw. I guess my emmc will anyway outlive my N900

/edit: So, sixwheeledbeast, do you still say a definite "no" to users who'd like to use internal + uSD even though it's in general not the best option (but there might be situations when this is still a good option)
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2014-07-17 at 17:05.
 

The Following User Says Thank You to marmistrz For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#254
Sixwheeledbeast: what's your final decision on my proposal: a definite "no"?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#255
Originally Posted by marmistrz View Post
Sixwheeledbeast: what's your final decision on my proposal: a definite "no"?
I don't plan on modifying flopswap to do this.
TBH now flopswap is in Extras, I don't plan to make any major changes.
I have already explained why flopswap was designed this way.

You really should consider making 2x 800Mb swaps on the uSD IMO.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#256
Originally Posted by sixwheeledbeast View Post
I don't plan on modifying flopswap to do this.
TBH now flopswap is in Extras, I don't plan to make any major changes.
I have already explained why flopswap was designed this way.

You really should consider making 2x 800Mb swaps on the uSD IMO.
As I said, 3 swaps are useless in my case, as my N900 might die any day and the defrag would take place in the night. (I'm still bewildered it's still alive - 2 keys pressed -> 3 keys input sometimes, tape damage which makes the first key press be interpreted as volume+, random rapid battery discharging episode, which disappeared as quickly as it appeared).

If I decided to upgrade N900 to neo900, would the eMMC wear matter?

Anyway, what about pushing the flopswap source to some git service?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#257
sixwheeledbeast: I finally gave in, made that two swap on uSD and now I'm experiencing a problem with Flopswap. The relocateswap script isn't executed at bootup (or it's effects are negated somewhere later)

If one runs `sudo start relocateswap`, the swap is properly relocated (using only 1 partition)

One more request: could you show a busy indicator while the scripts are running (e.g. swap is being flopped) and, even better, gray out the 4 buttons while flopswap is busy?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 3 Users Say Thank You to marmistrz For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#258
Originally Posted by marmistrz View Post
sixwheeledbeast: I finally gave in, made that two swap on uSD and now I'm experiencing a problem with Flopswap. The relocateswap script isn't executed at bootup (or it's effects are negated somewhere later)

If one runs `sudo start relocateswap`, the swap is properly relocated (using only 1 partition)
So to clarify, is the issue you are still on internal swap after boot?
Is Enable Flopswap checked in the Settings Menu?

If not, again the output of this will help me diagnose.
Code:
blkid | grep swap     -- ( need root)
dpkg-query -W -f='${Version}\n' upstart
dpkg-query -W -f='${Version}\n' flopswap
cat /etc/default/mount-opts-overwrite
cat /etc/default/mount-opts
cat /etc/fstab
Originally Posted by marmistrz View Post
One more request: could you show a busy indicator while the scripts are running (e.g. swap is being flopped) and, even better, gray out the 4 buttons while flopswap is busy?
This is a fair point. I am a bit busy at the moment. I have an idea how to implement, I'll see what I can do when I get a moment.

As an aside, what are peoples opinions of Checking the Status when the application is loaded? It's one thing I have been thinking of doing lately. If you think about it, when you load the application you do so to check the status; so it makes sense I suppose.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 2 Users Say Thank You to sixwheeledbeast For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#259
I'm on all 3 swaps, flopswap is enabled (otherwise I wouldn't have relocateswap in event.d)

http://paste.ubuntu.com/8426857/

Btw. it might be a good idea for scripts to only collect data and output it to stdout and/or some temp directory and for the GUI to be created with Qt only. The banners can be easily missed and we don't really need them if running from terminal - in this case stdout would be much better.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#260
Originally Posted by marmistrz View Post
I'm on all 3 swaps, flopswap is enabled (otherwise I wouldn't have relocateswap in event.d)

http://paste.ubuntu.com/8426857/
Well your output looks fine.
"I'm on all 3 swaps"
So if you boot up, open Flopswap and press "Show Current" do you have a list of swap spaces or one?

Originally Posted by marmistrz View Post
Btw. it might be a good idea for scripts to only collect data and output it to stdout and/or some temp directory and for the GUI to be created with Qt only. The banners can be easily missed and we don't really need them if running from terminal - in this case stdout would be much better.
FlopSwap was designed as a GUI and to be mainly used with the GUI.
I'll see what I can do, I think my initial plans will do this.

I actually like the hildon dialogs and banners BTW, it's useful while multitasking. I can tap Fresh Swap and go doing other things the banner will show when complete.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 20:01.