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-16 14:57

Re: [announce] swappolube to lubricate your gui
 
OK, it can be corrected by letting the script start later. If you don't wont to wait for the next version, just edit as root /etc/event.d/tuning and change the start on rcSlate line into
Code:

start on started hildon-desktop
This will make it remember the changes after booting.

les_garten 2010-09-16 15:21

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

Originally Posted by debernardis (Post 817524)
@f2thak: sorry mate. Hope you have the flasher utility at hand, or you had backupmenu to restore the pristine state. Might be that when turning it off, it hadn't written everything on flash, due to the changes in the way read and write get managed? So, maybe it's better to issue a sync before turning off?

@Frank Banul: reboot is not needed, the parameter changes are made on-the-fly during the install of the script that makes them also applied at boot time. And, they are reverted at uninstall time, when that script gets erased.

@kennibal: yes, and if you read Simon's explanation of those params, you'll find that there is one that lets silently crash the latest program you start if it elicits an out-of-memory condition, instead of getting rid of one or more background processes. It's the price to pay for the fluidity. If you try again maybe it will start correctly after a cleanup of memory.

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?

How often is this cron job ran? I don't know who Simon is and therefore don't know his blog. I'd like to add this to my cron jobs.

v13 2010-09-16 15:23

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

Originally Posted by debernardis (Post 816676)
Code:

echo "0" > /proc/sys/net/ipv4/tcp_timestamps

Turning off TCP timestamps is a bad bad thing. By turning off timestamps you'll have bad RTT estimation which means bad retransmission timeout calculation. This will result in poor performance especially on conditions where there are frequent packet losses, which is the case of most 3G connections.

debernardis 2010-09-16 16:12

Re: [announce] swappolube to lubricate your gui
 
@v13: Thanks. Now, what I'd like is knowing the pros and cons of each parameter, and having a gui to turn them on/off or set their value - and save groups of them as profiles.
It's out of my skills but maybe someone will be interested to code it.

Quote:

Originally Posted by les_garten (Post 817975)
How often is this cron job ran? I don't know who Simon is and therefore don't know his blog. I'd like to add this to my cron jobs.

You'll find the link to Simon's blog in the first post of this thread. I asked him how often too, and I'm still waiting for his answer. In the meantime I think I'll make a button for that.

debernardis 2010-09-16 17:08

Re: [announce] swappolube to lubricate your gui
 
I've attached a new version 0.1-maemo1 which corrects the problem found by p@t concerning the permanence of some parameters

shadowjk 2010-09-16 20:16

Re: [announce] swappolube to lubricate your gui
 
Dropping caches sounds like a silly idea too. It's mostly only useful for running disk benchmarks when you want to make sure stuff takes the slow path from permanent storage rather than coming from the fast ram..

hawaii 2010-09-17 02:36

Re: [announce] swappolube to lubricate your gui
 
Hi.

I'm Simon. I wrote the article. I did receive your question - but I've been extremely busy with Nokia World and my birthday this week. I've just arrived back in Canada and I'll be sure to provide an updated post concerning all the questions that have been posted here.

Thanks guys.

Sorry I didn't get back to your comments or questions on the blog or via email. I'll be honest, it's much faster to reach me on Twitter.

te37v 2010-09-17 03:28

Re: [announce] swappolube to lubricate your gui
 
Happy Birthday!

WhiteWolf 2010-09-17 07:59

Re: [announce] swappolube to lubricate your gui
 
Happy Birthday! :D

pixel8 2010-09-17 12:28

Re: [announce] swappolube to lubricate your gui
 
great tweak! kudos to you debernardis.

happy birthday to you Hawaii


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

vBulletin® Version 3.8.8