Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

Things that use RAM ... or how to reduce RAM usage


This topic has been archived. This means that you cannot reply to this topic.
39 replies to this topic

#1 Hellek

Hellek
  • Members
  • 35 posts

Posted 31 August 2010 - 04:36 PM

There is a lot of discussion on compcache vs. swap and I too opened a thread on this topic. Nevertheless since with CM6 RAM it is that much of a problem, we should discuss as well what ways to reduce RAM usage exist since I don't see a centralized discussion of that issue. I'll start by writing my findings:

What I (for myself) confirm to help:
- deactivating screen caching in ADW. Gives 1-2MB it seems to me.
Tipps for reducing the negative effect in user experience: If you set scrollspeed to i.e. 350 (lower values might work too) you don't notice that much that it is deactivated (other wise scrolling looks a bit choppy). Also deactivate the setting below scroll speed (over-..., dunno, I use german language but can't translate "Überschwingen" to english).

- only use one input language. it seems to me that the android keyboard is keeping dictionaries of all checked input languages in memory (0.5-1 MB per language it seems to me) even if you can only use one at a time.


Things that did not show any effect to me that I would have been able to measure/quantify:
- deactivate "Scrollable Widgets" in ADW

- deactivate Dithering in CM-Settings

- deactivate animations in Display Settings


What more recommendations do you have?

Edited by Hellek, 31 August 2010 - 04:38 PM.


#2 Frankie C

Frankie C
  • Members
  • 53 posts

Posted 31 August 2010 - 05:54 PM

Remove unneeded apps. I had a few apps chewing up memory, like News & Weather and DSP Manager.

#3 Hellek

Hellek
  • Members
  • 35 posts

Posted 31 August 2010 - 06:44 PM

Thanks. Yes, News & Weather is a memory hog and I removed it as well, forgot to post it.
I now began to investigate that topic once more and apart from what you said, these Apps can be safely removed:

VoiceDialer.apk (com.android.voicedialer) - AFAIK no use because VoiceSearch.apk has the better VoiceDialer and is what everybody uses anyway, VoiceDialer seems obsolete
com.amazon.mp3 - if I buy mp3, I do it on the computer

There are a lot of other apps (Development.apk, Term.apk, kickback, voiceback, soundback .apk, Protips.apk) which I found safe to remove and don´t miss, but unlike those above, this apps are rather passive and I never find them present in memory (or in adb logcat) without starting them. More Details are to be found here: http://wiki.cyanogen...title=Barebones

#4 Frankie C

Frankie C
  • Members
  • 53 posts

Posted 31 August 2010 - 07:12 PM

I smoked Rom Manager and Amazon MP3 too, but they didn't appear to be resident either. I just wasn't going to use them so I deleted 'em. If you have a keyboard, removing the Android Keyboard entirely frees up a couple 3 megs. Even with all that removed I find my phone desperately seeking memory, even with compcache on.

#5 emi

emi
  • Members
  • 11 posts

Posted 31 August 2010 - 10:28 PM

The Uninstall button is disabled for all my apps (Settings/Applications/AmazonMP3), and running "pm uninstall com.amazon.mp3" says "Failure"... It may as well say PC Load Letter...

Edited by emi, 31 August 2010 - 10:29 PM.


#6 Frankie C

Frankie C
  • Members
  • 53 posts

Posted 31 August 2010 - 10:32 PM

You have to use something like Titanum Backup to remove those apps or remove them manually via shell.

#7 Hellek

Hellek
  • Members
  • 35 posts

Posted 31 August 2010 - 10:34 PM

Use this guide: http://wiki.cyanogen...title=Barebones
In short: First, remove the .apk, then do the "pm uninstall <package name>"
To remove the apk, you need to mount /system as "rw" instad of read-only. If you don't know how to do that, it is all explained in the link.

#8 d3vilskid

d3vilskid
  • Members
  • 31 posts

Posted 01 September 2010 - 12:58 AM

use root explorer to delete the apks. and also the dalvik cache that is associated with it. but on my g1 with compcache on the phone lags, with it off the phone has been running smoothly and havent lagged since.

cm settings: dithering, jit, and compcache is disabled. home locked in memory, vm=16

adw settings: wallpaper hack, scrollable widget support, system persistent: are ticked off
use new icon selectors, wallpaper scrolling, auto stretch, animated drawer: are ticked off

apk that i deleted

cmpartshelper, cmwallpaper, development, dspmanager, latinime, latinimetuttorial, protips, rommananager(after i run fix permission), spareparts, speechrecorder, voicedialer

might be more that i deleted cant think of it right now, but my phone is not much of a memory hog anymore and runs really smooth.

ps. also runs pershoot oc kernal and firerats data partition(for more data space, i dont use apps2fat{froyo} slows the g1) planning on returning to ext4 file system tho.

Edited by d3vilskid, 01 September 2010 - 01:03 AM.


#9 emi

emi
  • Members
  • 11 posts

Posted 01 September 2010 - 01:00 AM

ha.. look at that. i tried again and this time it worked.  i must have mistyped something.  How come I can't uninstall from Settings/Applications?

#10 Hellek

Hellek
  • Members
  • 35 posts

Posted 01 September 2010 - 02:07 AM

Thanks a lot d3vilskid, your recommendations helped a lot. I am talking about those for ADW, for the rest I have similar stuff. No OC kernel though. Firerats partitioning patch is a must though. I was very happy when I found out a few days ago that it can be applied without re-flashing CM.

#11 Lint6

Lint6
  • Donators
  • 259 posts

Posted 01 September 2010 - 04:58 AM

I've been debating whether DSP Manager and Developer Tools are safe to delete...reading this I guess it is..

#12 Stryder

Stryder
  • Members
  • 133 posts

Posted 01 September 2010 - 06:01 AM

View PostLint6, on 01 September 2010 - 04:58 AM, said:

I've been debating whether DSP Manager and Developer Tools are safe to delete...reading this I guess it is..

They are: http://wiki.cyanogen...title=Barebones

DSP Manager is the app that can help manage audio equalizer settings. Developer Tools is the app for Developer Tools (not useful for typical users).

#13 d3vilskid

d3vilskid
  • Members
  • 31 posts

Posted 02 September 2010 - 12:27 AM

np, only thing is every time you flash a new ROM or update to a new version you have to do fire-rat partition patch again, but its worth it. cm6 is already oc from what i hear to 576. I just flashed a new oc kernel cause it feels like it makes my phone a tad bit smoother iono lol. It still does have its lags here and there, but not really often and a reboot fixes it right up.

Edited by d3vilskid, 02 September 2010 - 12:38 AM.


#14 Xeroproject

Xeroproject
  • Donators
  • 26 posts

Posted 02 September 2010 - 01:06 AM

Not to start up the ADWLauncher being included debate again but...

I removed ADWLauncher today, and switched to LauncherPro, then pulled ADW completely out of the system using the Barebones Guide (which btw, it mentions /system and /data apps instructions, do you have to run both or do you have to run one or the other?  if so how do you know if something in is /system or in /data?).

Anyway, long story short, prior to ADWLauncher removal, I was only running 11mb-13mb free mem with no processes running except ADW (without any effects turned on or anything) and Messaging apps.  With LauncherPro in its default config, I'm now running 21mb-23mb free, with Market and Messaging running in the background.

Compcache enabled, keep home in memory enabled.  Phone seems to be running much better now.

#15 julianjm

julianjm
  • Members
  • 32 posts

Posted 02 September 2010 - 01:40 AM

Did you install Launcherpro as a system app? Or from the market?

#16 rsnickell

rsnickell
  • Members
  • 4 posts

Posted 02 September 2010 - 02:37 PM

View Postd3vilskid, on 01 September 2010 - 12:58 AM, said:

cm settings: dithering, jit, and compcache is disabled. home locked in memory, vm=16

My phone was also performing rather sluggishly and these settings fixed all my problems.

My  myTouch 3G would delay when closing apps(gmail, calendar, facebook) for long periods before getting back to the home screen.  Then I would have to wait for any widgets to refresh/reload.  With the new settings suggested by d3vilskid, my phone feels like new.

I did not remove any apps to get the phone to operate better, just those settings.

Thank you for these tips.

#17 pconwell

pconwell

    It's okay, I'm from the Internet.

  • Donators
  • 345 posts

Posted 02 September 2010 - 02:54 PM

View Postemi, on 01 September 2010 - 01:00 AM, said:

ha.. look at that. i tried again and this time it worked.  i must have mistyped something.  How come I can't uninstall from Settings/Applications?
You cannot uninstall /system apps from settings because the phone system runs with user permissions (instead of root permissions). This is to prevent accidental damage, viruses, etc. That is why you have to run 'su' or 'adb remount' which both give you root access to /system.


View PostXeroproject, on 02 September 2010 - 01:06 AM, said:

(which btw, it mentions /system and /data apps instructions, do you have to run both or do you have to run one or the other?  if so how do you know if something in is /system or in /data?).
You only need to run the directions according to where the app is installed. Generally, anything you install from the Market will be in /data and anything pre-installed will be in /system.

If you don't know, you can run: 'ls /data/app' or 'ls /system/app' either from the term or from adb shell. This will list apks in those directories.

#18 invisiblewave

invisiblewave
  • Donators
  • 1,087 posts

Posted 02 September 2010 - 03:14 PM

View PostXeroproject, on 02 September 2010 - 01:06 AM, said:

Not to start up the ADWLauncher being included debate again but...

I removed ADWLauncher today, and switched to LauncherPro, then pulled ADW completely out of the system using the Barebones Guide (which btw, it mentions /system and /data apps instructions, do you have to run both or do you have to run one or the other?  if so how do you know if something in is /system or in /data?).

Anyway, long story short, prior to ADWLauncher removal, I was only running 11mb-13mb free mem with no processes running except ADW (without any effects turned on or anything) and Messaging apps.  With LauncherPro in its default config, I'm now running 21mb-23mb free, with Market and Messaging running in the background.

Compcache enabled, keep home in memory enabled.  Phone seems to be running much better now.

Mine's also running a LOT more smoothly without ADWLauncher.  I found I didn't need to push LauncherPro to /system/app, I just left it where it was.  I have compcache disabled but I run with Swap (phone's uselss without it).

#19 saxmachine

saxmachine
  • Members
  • 4 posts

Posted 02 September 2010 - 03:47 PM

View PostXeroproject, on 02 September 2010 - 01:06 AM, said:

Not to start up the ADWLauncher being included debate again but...

I removed ADWLauncher today, and switched to LauncherPro, then pulled ADW completely out of the system using the Barebones Guide (which btw, it mentions /system and /data apps instructions, do you have to run both or do you have to run one or the other?  if so how do you know if something in is /system or in /data?).

Anyway, long story short, prior to ADWLauncher removal, I was only running 11mb-13mb free mem with no processes running except ADW (without any effects turned on or anything) and Messaging apps.  With LauncherPro in its default config, I'm now running 21mb-23mb free, with Market and Messaging running in the background.

Compcache enabled, keep home in memory enabled.  Phone seems to be running much better now.

View Postjulianjm, on 02 September 2010 - 01:40 AM, said:

Did you install Launcherpro as a system app? Or from the market?

How do you install Launcherpro as a system app?

SM

Edited by saxmachine, 02 September 2010 - 03:47 PM.


#20 bchsun

bchsun
  • Members
  • 118 posts

Posted 02 September 2010 - 03:50 PM

for some reason i have 2 camera apps installed on my phone. one that takes up 600kb and one that takes up 264kb, anyone know why?