|
2010-09-16
, 12:56
|
Posts: 356 |
Thanked: 172 times |
Joined on Jan 2010
@ Canada
|
#42
|
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?
The Following User Says Thank You to Bingley Joe For This Useful Post: | ||
|
2010-09-16
, 13:27
|
Posts: 343 |
Thanked: 819 times |
Joined on Jan 2010
@ Paris, France
|
#43
|
|
2010-09-16
, 14:10
|
Posts: 284 |
Thanked: 74 times |
Joined on Mar 2010
@ Wigan, UK
|
#44
|
|
2010-09-16
, 14:15
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#45
|
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.
|
2010-09-16
, 14:20
|
Posts: 961 |
Thanked: 565 times |
Joined on Jul 2007
@ Tyneside, North East England
|
#46
|
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?
|
2010-09-16
, 14:29
|
Posts: 343 |
Thanked: 819 times |
Joined on Jan 2010
@ Paris, France
|
#47
|
The Following User Says Thank You to P@t For This Useful Post: | ||
|
2010-09-16
, 14:40
|
Posts: 284 |
Thanked: 74 times |
Joined on Mar 2010
@ Wigan, UK
|
#48
|
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...)
The Following User Says Thank You to kaos_king For This Useful Post: | ||
|
2010-09-16
, 14:43
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#49
|
|
2010-09-16
, 14:48
|
Posts: 284 |
Thanked: 74 times |
Joined on Mar 2010
@ Wigan, UK
|
#50
|
@P@t: you're right. Both dirty_ratio and dirty_background_ratio don't get saved. I'm going to try to see why
Tags |
bada lubes, bada rox, swappiness, tuning |
|
"swapoff/swapon/swapoff via a temporary swapfile"
Thatīs why I could not swapoff. Stupid me!