The Following 5 Users Say Thank You to weedm8 For This Useful Post: | ||
![]() |
2012-07-10
, 06:40
|
|
Posts: 704 |
Thanked: 241 times |
Joined on Dec 2011
@ Johannesburg - South Africa
|
#2
|
![]() |
2012-07-10
, 06:52
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#3
|
sh /opt/dropcache-mdn/bin/dropcache.sh --1
sh /opt/dropcache-mdn/bin/dropcache.sh --2
sh /opt/dropcache-mdn/bin/dropcache.sh --3
The Following 9 Users Say Thank You to ajalkane For This Useful Post: | ||
![]() |
2012-07-10
, 07:00
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#4
|
![]() |
2012-07-10
, 08:26
|
Posts: 44 |
Thanked: 25 times |
Joined on May 2012
@ Karhula, Finland
|
#5
|
and what effect might this bring?
if the kernel needs memory it will free whatever memory can be freed (normally the cache). If not, what's the point of freeing the caches? your N9 will have to reload stuff again -> slower + more battery consumption.
please leave the kernel alone!
![]() |
2012-07-10
, 08:47
|
Posts: 7 |
Thanked: 0 times |
Joined on Nov 2011
|
#6
|
This should work... First of course install DropCache. Then add one of the following to ProfileMatic's Custom action.
Free pagecache:
Free dentries and inodes:Code:sh /opt/dropcache-mdn/bin/dropcache.sh --1
Free pagescache, dentries and inodes:Code:sh /opt/dropcache-mdn/bin/dropcache.sh --2
Code:sh /opt/dropcache-mdn/bin/dropcache.sh --3
![]() |
2012-07-10
, 08:48
|
Posts: 44 |
Thanked: 25 times |
Joined on May 2012
@ Karhula, Finland
|
#7
|
I tested the command in terminal:
sh /opt/dropcache-mdn/bin/dropcache.sh --2
/opt/dropcache-mdn/bin/dropcache.sh: line36: can't create /proc/sys/vm/drop_caches: permission denied
$ devel-su Password: BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) buil t-in shell (ash) Enter 'help' for a list of built-in commands. ~ # sh /opt/dropcache-mdn/bin/dropcache.sh --3 ~ #
![]() |
2012-07-10
, 08:53
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#8
|
The Following 4 Users Say Thank You to vi_ For This Useful Post: | ||
![]() |
2012-07-10
, 09:01
|
Posts: 44 |
Thanked: 25 times |
Joined on May 2012
@ Karhula, Finland
|
#9
|
...Why don't you just change your VM settings if you do not want any VFS cache?
Also, memory does not work that way.
![]() |
2012-07-10
, 09:03
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#10
|
I tested the command in terminal:
sh /opt/dropcache-mdn/bin/dropcache.sh --2
/opt/dropcache-mdn/bin/dropcache.sh: line36: can't create /proc/sys/vm/drop_caches: permission denied
aegis-exec /opt/dropcache-mdn/bin/dropcache.sh --3
The Following 4 Users Say Thank You to ajalkane For This Useful Post: | ||
I has an IDEA!
ProfileMatic comes with the "Custom action" -thingy which is nearly no use for me with my skills, but could we implement a script there which runs Drop Cache's "Free all"?
I don't know much of any scripting nor coding, but this could be a fantastic improvement. Free memory when ever you want, automatically.
Anyone?
Step-by-step guide:
1. Install Drop Cache & ProfileMatic
2. Fire up the ProfileMatic
3. Create a profile like:
4. Save
5. Enable rules in ProfileMatics settings.
6. Tsadamn! You've made a script which will clear your cache and free memory at 06:00 every day.
Good luck! It shouldn't be hard.
WARNING: This has not yet been tested enough. Report any problems like battery drain, sluggish phone, applications errors etc. to this thread!!!
I have been using this for 4 months without any noticeable battery drain, sluggishness, phone warming up.. Nothing at all. This trick seems cool to me. Just make it do the "refresh" by night time or when you usually charge your phone, just to make sure you don't get any surprising battery drain during your work-day.
Last edited by weedm8; 2013-03-12 at 07:42.