maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [announce] swappolube to lubricate your gui (https://talk.maemo.org/showthread.php?t=62312)

TiagoTiago 2010-09-22 05:12

Re: [announce] swappolube to lubricate your gui
 
i uninstalled and didn't notice any change it the performance (no overclock and no voltage changes here)

thebtman 2010-09-22 05:17

Re: [announce] swappolube to lubricate your gui
 
Brilliant - definitely works....much faster.

Noticed in particular its much quicker to go into messages and phone.

Thanks...great mod :D

ndi 2010-09-22 11:58

Re: [announce] swappolube to lubricate your gui
 
Tried the single commands and the only one that made a noticeable difference was the swappiness. I didn't expect much from the others and skipped the laptop mode and the TCP settings, as they seem to be not such a hot idea.

Frankly, once overclocked and swappled less it feels very fluent and nice. Actually, things that seemed like nice before started to annoy me, like image scrolling.

Oh, and, tracker.cfg tweaks. We need better tracker settings/code. Index on change is a BAD idea for recording. And imaging software. And other stuff. Delayed indexing.

slender 2010-09-22 12:18

Re: [announce] swappolube to lubricate your gui
 
btw.
http://rudd-o.com/en/linux-and-free-...ow-to-fix-that

Meanwhile as you test remember that we are dealing with mobile device with low ram. Not desktop machine.

Saturn 2010-09-22 13:45

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by debernardis (Post 823018)
@Saturn: great work, mate!
Would you mind adding /proc/sys/vm/vfs_cache_pressure, while we're in experimenting? Default value is 100. It's been researched for the N8x0 by brontide and co. :)

I'll see if it fits..

Quote:

EDIT: on my machine the /etc/event.d/tuning script doesn't get created when I push the save button or when I close the python app.
could you check the timestamps for the two files:
Code:

ls -al /etc/event.d/tuning
ls -al /home/user/swappolube_config

the second one is a temp file created before replacing the tuning.

I would also execute the GUI from xterm to see for messages:
Code:

/opt/swappolube/swappolube.py
Quote:

Also, one useful thing would be having at least two pre-defined configs, i.e. the the default one and the Simon-kaze.daniel-alltimeswerout one, just to start.
I could add two buttons that set the gui in two default set of values, then you will need to press the create settings to update. If you post the two configs I will do that.

Saturn 2010-09-22 18:46

Re: [announce] swappolube to lubricate your gui
 
3 Attachment(s)
Here is an updated version.

changelog:
* Added a selection in the menu to delete the tuning file.
* added default values (what I see in the first post) for when the gui opens.
* added some better messages when the file is created and copied.

I could upload it to extras-devel but cannot decide if it is a good idea.

TiagoTiago 2010-09-22 19:10

Re: [announce] swappolube to lubricate your gui
 
how do i revert the values when using that GUI? just unmarking the enable checkbox would revert to the original values?

caco3 2010-09-22 19:39

Re: [announce] swappolube to lubricate your gui
 
Version 0.1.0-6 does not work for me.
I installed it for first time.
Run it with default parameters, sais "Please wait. Update in progress" but nothing more.
Checking the terminal output, it gives an error on line 162, because a file is not existing.
You can fix it by putting line 162 into a try/except statement:
Quote:

try:
os.remove( Path + ConfigFile )
except:
pass
Afterwards it seems to work, how ever I had to reboot first.
If a reboot really is needed, it should be mentioned!

Beside of that, it looks cool.
GUI for sure could need some umprovement, but does its job.
A help with description of parameters and their default values would be usefull.
Also some suggested values would help.

Saturn 2010-09-22 20:04

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by caco3 (Post 823767)
Version 0.1.0-6 does not work for me.
I installed it for first time.
Run it with default parameters, sais "Please wait. Update in progress" but nothing more.
Checking the terminal output, it gives an error on line 162, because a file is not existing.
You can fix it by putting line 162 into a try/except statement:


Afterwards it seems to work, how ever I had to reboot first.
If a reboot really is needed, it should be mentioned!

Beside of that, it looks cool.
GUI for sure could need some umprovement, but does its job.
A help with description of parameters and their default values would be usefull.
Also some suggested values would help.

Do the following and see what is/has the file you have created.
Code:

cat /etc/event.d/tuning
ls -al /etc/event.d/tuning

If you need help post here.

EDIT: LOL by the time I replied you edited yours with a fix. It's a good idea/practice.
I will upload soon a new version with your fix.

Saturn 2010-09-22 20:31

Re: [announce] swappolube to lubricate your gui
 
1 Attachment(s)
Here is the update with the correction for the case described by caco3 above.

JonWW 2010-09-22 20:50

Re: [announce] swappolube to lubricate your gui
 
2 Attachment(s)
This thing is flying along.
For me, I created a Queen Beecon Widget, mainly because I found values set would sometimes unset themselves.
The QBW will display the default values and the current ones so you can see if values change.
It doesn't set values automatically at startup as someone complained it rebooted their device, so it needs to be clicked manually to set up values and clicked again to unset.

Play/Edit it as you so choose and enjoy.

Attachment 13974

Attachment 13947

mesho123 2010-09-22 21:34

Re: [announce] swappolube to lubricate your gui
 
I have a problem script did not change the speed or flexibility in my many still suffer from freezing, especially when some call me one I find that the screen gives the color black for a second then shows the caller's name and also the sound shredding
When you move in the icons I also find some freezing

Please help me

Saturn 2010-09-22 22:05

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by TiagoTiago (Post 823731)
how do i revert the values when using that GUI? just unmarking the enable checkbox would revert to the original values?

In the last version you'll find a delete button in the menu.

If you want to remove one of the options just leave the first checkbox unticked and create the settings.

Everytime you hit the "Create Settings" button the file is overwritten with a new settings file that has only the options enabled with the value specified on the second (check)box.

A reboot is necessary to propagate those changes. (Will add this last bit of info in the message in a future version).

debernardis 2010-09-23 04:38

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by Saturn (Post 823881)
A reboot is necessary to propagate those changes. (Will add this last bit of info in the message in a future version).

Why don't you also apply the changes on-the-fly? (Sorry if you did already, I haven't tested it yet).

EDIT: It's OK in creating the tuning script, doesn't change the parameters on-the-fly.
You could separate the two functions with two buttons in the bottom of the screen, one to "apply settings" and the other to "make settings permanent" - or you could have one button only to make the two things. I prefer the two buttons solution.
Also, if you want, don't forget to add /proc/sys/vm/vfs_cache_pressure which is another interesting parameter to play with.

Finally, I propose that you change your package name to swappolube-gui so that we can have the plain swappolube to change the parameters to a given profile for those who don't want to tinker with tuning, and the swappolube-gui package for the adventurous ones who want to make their own config.

mle79 2010-09-23 06:33

Re: [announce] swappolube to lubricate your gui
 
Do i have to uninstall swappolube_0.1-maemo1.deb
before installing GUI version swappolube_0.1.0-5_armel.deb?

debernardis 2010-09-23 07:04

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by mle79 (Post 824072)
Do i have to uninstall swappolube_0.1-maemo1.deb
before installing GUI version swappolube_0.1.0-5_armel.deb?

Nope, when you install the gui version (use the last one not 0.1.0-5), the no-gui one gets uninstalled automatically.

F2thaK 2010-09-23 07:27

Re: [announce] swappolube to lubricate your gui
 
the GUI version is a prick to install due to dependencies !!!!

cant get it to work !!!!!!!!!!!

debernardis 2010-09-23 08:12

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by f2thak (Post 824113)
the GUI version is a prick to install due to dependencies !!!!

cant get it to work !!!!!!!!!!!

Consider all versions attached here as experimental, and needing for cautious adaptation "by-hand" by brave, early adopters.

We (Saturn, me) started a garage project which hopefully will output an extras-devel version which is going to be just a little bit less adventurous :o

jabawok 2010-09-23 15:02

Re: [announce] swappolube to lubricate your gui
 
Saturn, debernardis, i'm fairly sure Dirty Expire Centisecs, Dirty Writeback Centisecs and Page Cluster are not boolean. Could you replace the checkboxes with textboxes (default "0"), like the first three options?

Also a nice feature would be checking the existance of the settings file on startup, and loading the values to the gui, if it exists.

Many thanks for the gui!

debernardis 2010-09-23 15:11

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by jabawok (Post 824422)
Saturn, debernardis, i'm fairly sure Dirty Expire Centisecs, Dirty Writeback Centisecs and Page Cluster are not boolean. Could you replace the checkboxes with textboxes (default "0"), like the first three options?

Also a nice feature would be checking the existance of the settings file on startup, and loading the values to the gui, if it exists.

Many thanks for the gui!

You're right jabawok, I was distracted :o.
It's better by now for users to install the no-gui version, which just works, while Saturn works on the gui interface.

Saturn 2010-09-23 16:52

Re: [announce] swappolube to lubricate your gui
 
2 Attachment(s)
Here is new version with some of the pending requests:

changelog:
- some options changed to strings (thanks jabawok)
- new button to apply the settings directly, those will last only till next reboot. Persistence button will save the file and the tunings will survive through reboots.
- addition of VFS Cache Pressure option (has been left by default unselected).
- some rearrangement on the gui to fit options.

Please report possible issues.

mele 2010-09-23 17:12

Re: [announce] swappolube to lubricate your gui
 
Let`s give it a try :)

Edit: well it seems to create the tuning file to etc/event.d/ and its still there after booting.

So maybe its working now, Everything seems quite right and same after updating this from earlien swappolube version.

simoneb 2010-09-23 17:27

Re: [announce] swappolube to lubricate your gui
 
Seems that I'm the only one that had issues with this?

I tried the commands described on post #1 and after some time (hours) all my widgets went away. Multiple reboots did not fix this.
I didn't mess with anything else on my phone lately (weeks/months) so I don't know what could cause it if not those /proc/sys/vm settings.

I didn't install the package, but just typed the stuff on post #1.
Any clue?

craftyguy 2010-09-23 17:29

Re: [announce] swappolube to lubricate your gui
 
Am I the only one that feels a little dirty installing this from Fapman?

mesho123 2010-09-23 17:33

Re: [announce] swappolube to lubricate your gui
 
hi

can you please Explanation of these VFS Cache Pressure

and so on ?

thank you I am new student in N900 :)

debernardis 2010-09-23 17:40

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by mesho123 (Post 824576)
hi

can you please Explanation of these VFS Cache Pressure

and so on ?

thank you I am new student in N900 :)

For vfs_cache_pressure see
http://talk.maemo.org/showpost.php?p...4&postcount=93
http://duopetalflower.blogspot.com/2...speed-and.html

but the best source is this: http://tinyurl.com/2a4xgo6

cfh11 2010-09-23 18:14

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by craftyguy (Post 824573)
Am I the only one that feels a little dirty installing this from Fapman?

You're right, "I pulled up Fapman to get me some Swappolube" does sound dirty :p

Saturn 2010-09-23 18:36

Re: [announce] swappolube to lubricate your gui
 
The latest version (0.1.0-8) has been uploaded to extras-devel to test if the autobuilder likes the packaging.
All went well, see status here: http://maemo.org/packages/view/swappolube/ (beware that the name might be changed as debernardis mentioned earlier)

All versions have been put also in the garage page: https://garage.maemo.org/projects/swappolube/

A big request to all people that understand those options is to head to wiki and add some comments.
Here's the link: http://wiki.maemo.org/Swappolube

mikec 2010-09-23 19:07

Re: [announce] swappolube to lubricate your gui
 
Just downloaded from Ham installed sweet.
Needs a tasty icon !:D

arnoldux 2010-09-23 23:19

Re: [announce] swappolube to lubricate your gui
 
so.... what are the best optiona for this? couls you please add a "default" option so everything oes normal?


cheers

debernardis 2010-09-24 05:11

Re: [announce] swappolube to lubricate your gui
 
1 Attachment(s)
Here's a simple 48x48 icon.

ragesoft 2010-09-25 08:25

Re: [announce] swappolube to lubricate your gui
 
as mentiont here:
http://talk.maemo.org/showpost.php?p...4&postcount=93
"swap file should be on external mmc if swapping is increased. "

how to get the swap on external mmc? did this mean on my microSD?
Can i increase the swap-partition? and rootfs :>

thx!

mikec 2010-09-25 14:29

Re: [announce] swappolube to lubricate your gui
 
dont konw if swapolube is causing the change, but my vodafone 3G seems to be flying. Its like being on the wifi :D

debernardis 2010-09-25 15:47

Re: [announce] swappolube to lubricate your gui
 
Well, this is the first time I figure out how to send a package to the autobuilder. But after getting Saturn's source as a model and fiddling with the wiki, I got to upload swappolube-nogui to extras-devel.

It's been just an exercise for me; the package is essentially the same one I described in the first post, and could be useful while Saturn irons out some bugs of the gui version. It could be good also for those who don't want to tinker with kernel virtual memory parameters and prefer to load a simple profile known to work.

Now I have to recover from the emotion of seeing my first package in maemo repos ;)

EDIT: Murphy's law is absolutely right. Mikko Vartiainen (thanks!) has discovered an error which prevents the full uninstall of the package. I'll correct it and make a new version.

ceroberts75 2010-09-25 22:34

Re: [announce] swappolube to lubricate your gui
 
nice job.


just like some other firsts eh?!

geohsia 2010-09-25 23:12

Re: [announce] swappolube to lubricate your gui
 
Hi,
I seem to be running into a Python conflict issue.

python2.5-qt4-network
python2.5-qt4-webkit

Do I uninstall python2.5?

Viny 2010-09-25 23:13

Re: [announce] swappolube to lubricate your gui
 
How do i get the dependicies for the gui version?

Saturn 2010-09-25 23:34

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by Viny (Post 826327)
How do i get the dependicies for the gui version?

Did you install through the application manager?
It should pick them up automatically.

Saturn 2010-09-25 23:35

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by geohsia (Post 826326)
Hi,
I seem to be running into a Python conflict issue.

python2.5-qt4-network
python2.5-qt4-webkit

Do I uninstall python2.5?

The editor doesn't directly depend on those. Can you give some output of the log or xterm?

Viny 2010-09-25 23:50

Re: [announce] swappolube to lubricate your gui
 
The one avaible in devel is the no gui one, if u mean if i ran the gui version with app manager , i think so.. i go to file manager and click on it, it opens with the app manger/ but says the dependecies are missing.


All times are GMT. The time now is 12:07.

vBulletin® Version 3.8.8