maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Drop cache issue (https://talk.maemo.org/showthread.php?t=91348)

kikujiro0208 2013-09-13 04:35

Drop cache issue
 
Hi all,

I am currently using drop cache to clear memory.

My problem is that after clearing, only 300rmb is free out of 985rmb.
6 Months ago, after clearing, I could get around 750rmb free.

Is there another solution or app that could help clear more memory?

To clear swap, I just reboot my phone.

Many thanks in advance for your replies.

ladoga 2013-09-13 06:59

Re: Drop cache issue
 
Why would you want to slow the system down by clearing cache?
Program startup gets noticeably faster once its cached and clearing cache forces the system to reload programs from flash memory instead of RAM, which is slower.

Only slowdowns I ever have are either caused by restarting the phone (indexing and loading from flash) or stuff that seems I/O related (updating feeds).

I usually have uptimes of >100 days and performance is as good if not better than first day. Only thing needed IMO is keeping track of possible runaway/crashed processes. Programs don't always exit cleanly and can get stuck (not freeing the memory claimed by them). In that case kill command is your friend.

dannejanne 2013-09-13 07:38

Re: Drop cache issue
 
Yep stop clearing your cache. Free memory is useless memory. The more memory is used and apps are cached the faster your device will be. Just close some of them knows possible battery hogs when you don't use them. You should know how painfully slow the device can be right after a reboot.

imaginaryenemy 2013-09-13 15:30

Re: Drop cache issue
 
For me, clearing the cache with DropCache helps with system lag. Yes, it might cause an app an extra half a second to open the first time after clearing the cache, but to me it is a fair trade to not see lag when switching homescreens, or scrolling through my messages. To each his own.
To OP, I have never cleared more than 300rmb at one time.

kikujiro0208 2013-09-13 16:59

I thought clearing cache/memory would make the phone faster... I use dropcache when my phine lags...

Arie 2013-09-13 20:44

Re: Drop cache issue
 
Quote:

Originally Posted by kikujiro0208 (Post 1374065)
I thought clearing cache/memory would make the phone faster... I use dropcache when my phine lags...

Dropcache really doesn't have positive effects on the day to day operation of the N9.

kikujiro0208 2013-09-14 18:02

Quote:

Originally Posted by dannejanne (Post 1374006)
Yep stop clearing your cache. Free memory is useless memory. The more memory is used and apps are cached the faster your device will be. Just close some of them knows possible battery hogs when you don't use them. You should know how painfully slow the device can be right after a reboot.

hi dannejanne, how can i check which apps are battery hogs?

kikujiro0208 2013-09-14 18:04

Quote:

Originally Posted by ladoga (Post 1373997)
Why would you want to slow the system down by clearing cache?
Program startup gets noticeably faster once its cached and clearing cache forces the system to reload programs from flash memory instead of RAM, which is slower.

Only slowdowns I ever have are either caused by restarting the phone (indexing and loading from flash) or stuff that seems I/O related (updating feeds).

I usually have uptimes of >100 days and performance is as good if not better than first day. Only thing needed IMO is keeping track of possible runaway/crashed processes. Programs don't always exit cleanly and can get stuck (not freeing the memory claimed by them). In that case kill command is your friend.

hi ladoga, how can i check if a program has a clean exit?

ladoga 2013-09-16 06:51

Re: Drop cache issue
 
Quote:

Originally Posted by kikujiro0208 (Post 1374243)
hi ladoga, how can i check if a program has a clean exit?

Close all applications, open terminal and then use ps (or top/htop) command to list all processes. Watch the listing to spot any applications that shouldn't be running. (those apps that you have installed yourself and have recently ran) Exception to this are prestarted stock applications like grob (the default web browser) which are always there and automatically restarted if killed.

For example if fennec (firefox) is listed even if not open, then you know it has crashed.
Code:

$ killall -9 fennec
does the trick and force kills it.

You'll soon find out the usual culprits and in the future can simply filter ps output for their names to quickly see if they have crashed or failed to close. For example:

Code:

$ ps -A | grep fennec


To monitor your battery usage you can use graphical Battery Usage app http://store.ovi.com/content/138659 and power analysis tools installable from developer mode menu in the Settings application. From command line you can use powertop and bmestat.


All times are GMT. The time now is 06:42.

vBulletin® Version 3.8.8