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)

slender 2010-09-16 08:09

Re: [announce] swappolube to lubricate your gui
 
Oh facepalm
"swapoff/swapon/swapoff via a temporary swapfile"
Thatīs why I could not swapoff. Stupid me!

Bingley Joe 2010-09-16 12:56

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

Originally Posted by debernardis (Post 817524)
Concerning this issue, I want to implement the small memory-freeing command that Simon describes in his blog post, saying he runs it as a cron job.

Code:

I run a cronjob that drops buffer cache containing pagecache, dentries and inodes, to clear out unused dirty pages (sync; echo 3 > /proc/sys/vm/drop_caches).
This might take some time and resources to run, since there's a sync command which writes down to the flash memory.
Given that we haven't cron by default on our devices, and I don't know how to mess with the alarmd daemon (and I'm not sure I'll ever do), I would then add an icon to run the command and free memory when the user likes to, i.e. when the device isn't going to do critical things like answering a call or shooting a video.

What do you think? Button or alarmd?

I definitely like the idea of a button if I have to choose one, but I can see both being the most useful :p

P@t 2010-09-16 13:27

Re: [announce] swappolube to lubricate your gui
 
Adding my thanks too

But I have noticed that at least some of the parameters do not survive a reboot?! While it seems that it should.

kaos_king 2010-09-16 14:10

Re: [announce] swappolube to lubricate your gui
 
This certainly seems to have speeded things up.

Not rebooted as of yet though.

debernardis 2010-09-16 14:15

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

Originally Posted by P@t (Post 817878)
Adding my thanks too

But I have noticed that at least some of the parameters do not survive a reboot?! While it seems that it should.

Please control that it has installed a /etc/event.d/tuning file

gazza_d 2010-09-16 14:20

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

Originally Posted by debernardis;817524
Concerning this issue, I want to implement the small memory-freeing command that Simon describes in his blog post, saying he runs it as a cron job.

[code
I run a cronjob that drops buffer cache containing pagecache, dentries and inodes, to clear out unused dirty pages (sync; echo 3 > /proc/sys/vm/drop_caches).[/code]

This might take some time and resources to run, since there's a sync command which writes down to the flash memory.
Given that we haven't cron by default on our devices, and I don't know how to mess with the alarmd daemon (and I'm not sure I'll ever do), I would then add an icon to run the command and free memory when the user likes to, i.e. when the device isn't going to do critical things like answering a call or shooting a video.

What do you think? Button or alarmd?

I'm greedy, and would like to see both! The ability to have a "garbage collector" running automatically would be great.

Would an good idea be to spin this off and merge with the optimizeN900 thread.

There does seem to be a multitude of different threads each offering different parts of the jigsaw which is N900 optimisation.

P@t 2010-09-16 14:29

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

Originally Posted by debernardis (Post 817914)
Please control that it has installed a /etc/event.d/tuning file

I have the file 'tuning' and I can read the same values as in your first post.
However when I reboot, I can read for example:
40 for for the parameter dirty_ratio
while it should be 95

If I launch again the DEB, then the parameters turn to be at the correct values.

PS: some weeks ago I had modified the rcS file and did change the parameters of swappiness and page-cluster directly in the file. Could that be related? (I have serious doubt but...)

kaos_king 2010-09-16 14:40

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

Originally Posted by P@t (Post 817925)
I have the file 'tuning' and I can read the same values as in your first post.
However when I reboot, I can read for example:
40 for for the parameter dirty_ratio
while it should be 95

If I launch again the DEB, then the parameters turn to be at the correct values.

PS: some weeks ago I had modified the rcS file and did change the parameters of swappiness and page-cluster directly in the file. Could that be related? (I have serious doubt but...)

I can confirm this too, and it doesnt seem to matter what method reboot is used it always resets. Ive not tested any other figures than the dirty_ratio one as im at work (and supposed to be doing just that).

I doubt you manually changing the swappiness and page cluster made a difference, as I never have changed them and im getting it. I'd expect everyone would be the same?

debernardis 2010-09-16 14:43

Re: [announce] swappolube to lubricate your gui
 
@P@t: you're right. Both dirty_ratio and dirty_background_ratio don't get saved. I'm going to try to see why :)

kaos_king 2010-09-16 14:48

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

Originally Posted by debernardis (Post 817940)
@P@t: you're right. Both dirty_ratio and dirty_background_ratio don't get saved. I'm going to try to see why :)

Thanks for packaging it together. Really does seem snappier, and that was before I OC'd it after a reboot. It was so snappy, i thought i HAD OC'd it!

Would be good to get it to survive a reboot :D


All times are GMT. The time now is 08:11.

vBulletin® Version 3.8.8