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)

debernardis 2010-09-28 11:30

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

Originally Posted by Saturn (Post 827822)
I don't find your idea bad but I would like debernardis' opinion first.

Personally, I prefer it like now and find it clear enough.

I'd like, now, that someone starts exploring other parameters value to see if we can put together some better set of parameters, or optimize them for various tasks.

I'm currently exploring the effect of vfs_cache_pressure - you'll find references to it both on talk.maemo.org and on the big Internet, in several places where there are discussions on linux desktop tuning.

Vfs_cache_pressure: "Controls the tendency of the kernel to reclaim the memory which is used for caching of directory and inode objects.

At the default value of vfs_cache_pressure = 100 the kernel will attempt to reclaim dentries and inodes at a "fair" rate with respect to pagecache and swapcache reclaim. Decreasing vfs_cache_pressure causes the kernel to prefer to retain dentry and inode caches. Increasing vfs_cache_pressure beyond 100 causes the kernel to prefer to reclaim dentries and inodes."


Other readings:
http://duopetalflower.blogspot.com/2...speed-and.html
http://rudd-o.com/en/linux-and-free-...ow-to-fix-that

Saturn 2010-09-28 19:00

Re: [announce] swappolube to lubricate your gui
 
Uploaded an updated version (0.2.0-3) in extras-devel and promoted to testing.

This update brings a couple of fixes (there is no new functionality). Both where nasty and quite hidden.

changelog:
* Fix in the update of the VFSCachePressure value. Previous version did not store this correctly. (thanks to debernardis).
* Fix in the reading of values from the system. A hiden linebreak (shown as space) was added in all values after hitting "Current" which blocked their later update.

See the wiki for more details.
Feel free to vote in extras-testing after your tests.

James_Littler 2010-09-29 10:19

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

Originally Posted by Saturn (Post 827505)
I had followed up and eventually solved this for a user few pages back. The last steps where done offline.

So here is what helped in his case.

Disable all repos that come from outside maemo.
Disable the devel repo.
Code:

apt-get remove --purge swappolube
apt-get remove --purge swappolube-nogui
apt-get update
apt-get install python2.5-qt-common
apt-get install swappolube

If you don't understand the above then don't do it!

HIH

Should be

Code:

apt-get remove --purge swappolube
apt-get remove --purge swappolube-nogui
apt-get update
apt-get install python2.5-qt4-common
apt-get install swappolube


lemmyslender 2010-09-29 12:09

Re: [announce] swappolube to lubricate your gui
 
Found what might be an issue (or perhaps a tool).

Yesterday, I lost all my widgets 2 times. It also happened again this morning. Reboot does not return them, identical activity in Activity Manager does not return them. I can add them all back without issue.

I have been running my own file for a week or two, and swapolube for the last couple of days. I have been using the "kill allocating task" setting (to kill the requesting app).

What I am thinking has happened is that one of my widgets has a memory leak, and hildon-home (or is it hildon-desktop) gets killed once the leak gets too big? This might cause the disappearance of all my widgets.

My first suspicion is calendar-home widget, followed by mycontacts and maybe omweather. I believe those are the only widgets that were updated recently. I need to keep an eye on this to see if I can isolate it.

Anyone else seeing anything similar?

zimon 2010-09-29 12:23

Re: [announce] swappolube to lubricate your gui
 
Swappolube (GUI) could give descriptions (from the kernel documentation) to the every setting as a yellow hint window when the text area is clicked. Would be educational and helpful when different tunings are tested.

debernardis 2010-09-29 13:08

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

Originally Posted by lemmyslender (Post 829182)
Anyone else seeing anything similar?

It's been reported by another guy, maybe on the my-maemo.com forums (can't remind) so you're not alone.

hawaii 2010-09-29 14:47

Re: [announce] swappolube to lubricate your gui
 
I've been using the kernel VM tweaks I posted, as originally, and have never had this happened.

I'm not sure if this package is a good thing for people to start tuning values they don't understand. Hell, I'm not 100% about the TRUE repercussions of changing them, especially with the hardware and bus that the N900 uses.

debernardis 2010-09-29 16:11

Re: [announce] swappolube to lubricate your gui
 
Well, Hawaii, we're here to have fun with our device, mostly. Fiddling with tech is fun, and a chance to learn, at every level of knowledge you start from, including close to zero. Albert Einstein started from a compass, a gift from his dad. So, don't worry too much.
Your blog post made me (and others) learn interesting things on our computerphone innards, and made the majority of us have a much more pleasant experience with it. Life's good :)

lemmyslender 2010-09-29 16:32

Re: [announce] swappolube to lubricate your gui
 
I'm only speculating on a cause and effect. The last day or two my N900 had also been unusually sluggish and slow to respond. After updating a couple of widgets today, it is back to its' normal self.

It may just have been a mis-behaving widget, or a combination of these tweaks, widgets, power-kernel, updated modest, updated hildon-desktop, etc. Not exactly running a stock N900 here. If it continues to behave, I'll just chalk it up to a fluke.

Wouldn't be half the fun if we couldn't tweak the heck out of it.

slender 2010-09-29 19:20

Re: [announce] swappolube to lubricate your gui
 
Hmm. Maybe I should report here that with all these settings my hildon-home virtual memory size just kept getting bigger. Also opening up contacts took sometimes little too long to my taste. I ended up disabling all other tweaks expect swappiness and cache pressure. Now it seems to be ok.

.edit
swappines 30, pressure 50

..edit
looks like hildon-desktop and home are leaking for me. Probably some faulty widget or applet. I just wish that we had easy way of detecting what widgets&applets leak.


All times are GMT. The time now is 16:10.

vBulletin® Version 3.8.8