![]() |
2010-09-16
, 15:21
|
Posts: 1,283 |
Thanked: 370 times |
Joined on Sep 2009
@ South Florida
|
#52
|
@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.
This might take some time and resources to run, since there's a sync command which writes down to the flash memory.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).
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?
![]() |
2010-09-16
, 15:23
|
Posts: 376 |
Thanked: 511 times |
Joined on Aug 2009
@ Greece
|
#53
|
The Following 7 Users Say Thank You to v13 For This Useful Post: | ||
![]() |
2010-09-16
, 16:12
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#54
|
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.
![]() |
2010-09-16
, 17:08
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#55
|
![]() |
2010-09-16
, 20:16
|
Posts: 1,258 |
Thanked: 672 times |
Joined on Mar 2009
|
#56
|
The Following User Says Thank You to shadowjk For This Useful Post: | ||
![]() |
2010-09-17
, 02:36
|
|
Posts: 1,030 |
Thanked: 792 times |
Joined on Jun 2009
|
#57
|
![]() |
2010-09-17
, 03:28
|
Posts: 137 |
Thanked: 34 times |
Joined on Jul 2010
@ United States
|
#58
|
![]() |
2010-09-17
, 12:28
|
Posts: 6 |
Thanked: 0 times |
Joined on May 2010
|
#60
|
![]() |
Tags |
bada lubes, bada rox, swappiness, tuning |
|
Ernesto de Bernardis