Hi,
I'm running CyanogenMod-4.2.13. 8 GB Class 6 SD card with Apps2SD formatted with EXT4 and something like a 20mb swap partition. I have around 35 applications on my phone.
My home screen consists of 3 screens - 1 widget (Power Control) and 12 icons.
Here's the issue: When I hit the home button from any application, it takes about 20 seconds to load the home screen. If I hit the phone button from any application, it takes about 20-35 seconds to load the Dialer application. The phone just feels laggy. Task manager apps only show a couple processes running - nothing excessive. Is this normal?
If this is not normal, how do I fix it? I wipe about once a month. I've tried clearing the dalvik cache from terminal with this:
mount system/sd
rm -r system/sd/dalvik-cache
reboot
... with no luck. Any suggestions?
Thanks in advance
Do you have compcache enabled in spare parts?
Do you have 'keep home in memory' checked in spare parts?
No, I didn't. I just checked them and the home seems to load a bit quicker. The phone app still takes awhile. Should I expect it to speed up as it starts caching stuff?
is the phone app taking 10 seconds?
What are you using to setup your swap?
Try changing the swap size to 32 or removing it all together. compcache should be enough for a donut rom.
You can download CacheMate (the one with the icon of a recyle bin/trash can) and try deleting all the cache. That can really speed up a phone.
Or go into the recovery and delete the dalvik-cache or just backup everything and wipe everything on the phone possible and partition your sdcard like this
512 mb ext 3/32 Mb swap (or if you want a swap size that is good for all roms like donut/eclair/hero then make the swamp 96 Mb)/ rest fat32
It looks like it's getting better. I restarted my phone and it's taking less than 5 seconds for the dialer app.
If it starts slowing down again, I'll try messing with the swap.
Good to hear. are you using the default launcher.apk from cyan mod? Because i know it comes with 5 screens, i know you're either using an alternate launcher or just using 3 of the 5 screens.
Related
I have the CyanogenMod and It comes with 5 screens but I cant use advantange of it because my phone gets so slow.. I use like 5 widgets and everytime I go to my home its frozen for like 10 seconds untill eveything is loaded again. I have apps2sd so im wondering is their a way to make the G1 lightning fast because its acting so slow it was like this in the stock rom also
What 5 widgets? Have you experimented with disabling them? What other apps do you have installed? Some wait in the background and use up memory / CPU. CM is pretty much the fastest ROM, so you need to look at the apps if things are slow.
You can also try the links in my sig for info on using compcache or swap to reduce the delays when you switch back home or in and out of the browser.
Well I have the free weather widget, retro time, retro date, and a battery widget and a few other application shortcuts on the home screen and it still lags when I go to home and its always like this and what does a swaper do?
blackfire1 said:
Well I have the free weather widget, retro time, retro date, and a battery widget and a few other application shortcuts on the home screen and it still lags when I go to home and its always like this and what does a swaper do?
Click to expand...
Click to collapse
I would activate your linux-swap partition or use the compcache userinit.sh. I wouldn't use swapper, its out-dated.
Basically what swapper (and linux-swap) is, is like creating extra memory for your phone to use, but places it on the sdcard. The increased memory allows for you phone to do more at once without having to constantly close programs left and right, speeding it up. But, the constant read/write of the sdcard wears it down quicker (don't worry, you'll still get about 2yrs of life out of that sdcard) and can become slow if it is writing/reading to the memory at the same time is it reading an app or file from the sdcard. Not noticeably slower, but slower nonetheless.
Compcache is a better solution IMO (its the new thing haha). What happens is that whatever RAM stores is compressed instead. Because its compressed, you can store more stuff on it. so like 24MB of RAM would be extended to 72MB of RAM and then you wouldn't have to read/write to the sdcard so often, saving its life and allowing for a small speed boost compared to a swap file.
There are threads on how to do both of these things in the development thread. The compcache is pretty easy, all you have to do is copy userinit.sh to your /system/sd/ and your pretty much done. Linux-swap requires you to create a 3rd partition in addition to the FAT32 and ext2/3. A little extra work, but well worth it. Most ROMs will automatically activate the linux-swap partition if you have it.
Note: Compcache can also use linux-swap as a backup, allowing for an even faster phone. I'm using jacHEROskiv1.4C_a2sd and it works pretty fast IMO. Certainly not as fast as Cyanogen's but fast enough for day-to-day use.
If you really really really really, don't want to mess with any of that, I would just use swapper. Its like linux-swap (follows the same principle), but its not as fast. If you do choose to use this solution, make sure you place the swapfile on /system/sd/ so that when you mount your SD you won't mess up your phone.
Can you please show me a link of how to do the Compcache because ive searched and only found nothing yet.
blackfire1 said:
Can you please show me a link of how to do the Compcache because ive searched and only found nothing yet.
Click to expand...
Click to collapse
Link: http://forum.xda-developers.com/showthread.php?t=537236
Also, the command to include linux-swap as a backup (if you choose to) is on page 14, last post on the page. Good luck
Does having 5 home screens use more memory than the original 3?
slightly, but not enough to make the kind of differences that the OP is describing. I know cyanogen and dude's builds both have 5 home screens, not sure about the rest, but this is the first slowdown complaint I've really heard.
The two questions I would ask to the OP is this: 1. how many applications do you have installed? 2. What size and class SD card are you using?
I have task killer set to ignore two applications: Battery Widget and Weather Widget (donation version).
I've rooted my phone and am running Cyanogen 4.0.1 with Ted's hero theme. And I've formatted my SD to have FAT32, EXT3, and Linux Swap partitions and have my apps installed to my SD.
However, when I use taskiller to close all my applications I'm usually left with only 28 to 30 M free. Sometimes I'll only have 26 M or all the way up to 33 M left. Is this normal?
How much memory do you guys have left after you kill your tasks? Are my numbers low enough to make you think I've not partitioned my SD correctly or something else?
I feel like my phone should be much much faster than it was before I rooted it, but I don't see the huge improvements many people seem to.
Any help is appreciated.
yeah, I have questioned this too. I use Advanced Task Manager with 2 apps excluded. I usually am at 41 MB when all are ended. Prior to rooting this was in the 50's. I assume it is because the ROM has used some of this memory?
I also seem to have a lot less internal memory than others. I have 54MB when I go review my memory under settings. Not sure how others are in the 70-80 MB range. I clear cache frequently.
Also have 3 partitions 7.5GB/500MB/32MB
to the OP - have you deleted the cache of programs like browser, google maps?
I'm not sure how. I'd love to delete both of those and a few others (voice dialing I will never use you!!). I've gone into the apps manager but it won't let me uninstall them.
Yes, I'm a complete noob at this .
One thing I may have done wrong. I didn't reflash my cyanogen rom after formatting my SD. Could that be a problem?
Nagh, the rom would do it on the next reboot... go to menu... settings... sd card and phone storage. It should show all memory there (including second partition).
To delete cache, go to menu... settings... applications... app manager.
Click on browser, scroll down and delete cache. How much was there?
There wasn't much. It was like 1 to 1.5 megs, but it's gone now. I also set my gmail sync down to 1 day and cleared out it's data. Still though, my phone just feels like it's not getting the big speed upgrades others talk about.
I am hoping someone else will chime in on the low memory reported by task killer/manager in our cases.
How much internal memory were you showing under settings and removing cache?
You can sort the app manager by size too (of course the apps are on your sd card) but the cache is not.
I take it you confirmed your partitions were working?
They seem to be working. I've got 486 MB for my ext3 partition and only 413 available. I'm assuming 73 MB are being used by my programs.
I have 64 MB of internal phone storage available. I don't know what it was before.
I also have 5 desktops with a lot of icons on each one, plus I have a background that is about twice as wide as normal (1067x480 vs 640x480). Still the background is only 70k.
If you want to delete stock apps
Code:
adb remount
adb shell
cd system/app
ls
This will let you see the actual names of apps. From there you can just rm -r them as usual
example
Code:
rm -r VoiceDialer.apk
rm -r com.amazon.mp3.apk
rm -r VoiceSearch.apk
rm -r LatinIME.apk
Don't forget to clear your dalvik-cache after you done nuking stuff!!!
Code:
rm -r system/sd/dalvik-cache
mkdir system/sd/dalvik-cache
You can do all of this from terminal as well but adb make is much easier.
@ OP. I too have only 28-33MB of free ram after closing most of my widgets but I think it's pretty normal as too much free memory means too much wasted memory. And you will not see HUGE improvements in speed neither... there's only so much developers can do. What Cyan is trying to do is to introduce new features (global search, vpn, exchange) without bogging down the system (and doing a great job at it IMHO).
Good luck
^ that is an awesome post. Thank you for that.
Thanks a ton for that. Very helpful post. If I won't see any speed improvements by uninstalling apps I'll just pass on doing that.
Are there any ways I could see speed improvements beyond what Cyanogen already provides?
Limit the amount of desktops, and limit the use of widgets. Power wideget from donut seemed to use a lot of ram and slow things down a little.
why are you people confusing internal storage with system ram?
The information available under settings/sdcard-phone storage/available space reffers to the space available in the /data partition of your phone. Wether you have 1 or 100 (well, 89) mb free in this partition is irrelevant to your phone's performance. All that gets written to this partition is installed apps (not part of the system), dalvik-cache (for ADP or AOSP based roms that don't have their classes pre-compiled), and user data and settings.
People who have 70-89 mb free in that partition are using a2sd, data2sd, and cache to sd, which, imho, is a flippin waste because the internal nand is a lot faster than the bottlenecked bus for the sd card and it's just going to waste if you're not using it. Nothing, i repeat NOTHING is gained by having a free data partition (much like having free space in system which is never going to be used).
Your system has 192 mb of RAM, which is the actual working memory of the device, of those 192, only 90 are available to the dalvik VM, which is the Android part of your phone. This ram can be checked using "free" (if your build has busybox) at the terminal, and this will tell you how much ram is being used by the system, along with how much swap space (if you're using it) is being used. The used ram space fills up fast, and that's a good thing, because unused RAM is wasted RAM. Linux manages things and drops processes as required (to a swap file if available) to free up ram for processes that require it.
To keep your phone running smootly, I'd recomend a reboot every night (when you put your phone to charge). Android is full of memory leaks that have to be fixed, and until they're worked out, the 90 mb ram you have available is all you have to go with (unless you use swap, but one should never really consider that space memory anyway)
The biggest performance difference I've seen has been to shut down my battery widget. After I did that phone's responsiveness has been great.
Hopefully there is someone out there who is smart enough to fix my issue!
I have a htc G1 rooted running the latest Cyanogen rom and i have a SanDisk micor sdhc 8GB class 6 card. Ok my issue: It seems like for the past 5 or more roms that cyanogen has put out every now in then when i go from like say a game or contacts to the home screen it lags for say 5 sec. During this lag i notice that my icons are visible on the homescreen but the widgets are missing and i only have like 3 widgets on the screen. I dont know if my SD card has taken a crap or what? Please help
dasoccerbomb said:
Hopefully there is someone out there who is smart enough to fix my issue!
I have a htc G1 rooted running the latest Cyanogen rom and i have a SanDisk micor sdhc 8GB class 6 card. Ok my issue: It seems like for the past 5 or more roms that cyanogen has put out every now in then when i go from like say a game or contacts to the home screen it lags for say 5 sec. During this lag i notice that my icons are visible on the homescreen but the widgets are missing and i only have like 3 widgets on the screen. I dont know if my SD card has taken a crap or what? Please help
Click to expand...
Click to collapse
You were doing something that was memory intensive, gmaes (especially 3d) tend to do that. They used up too much memory sot the system pushed the home out of memory. When you go home that means it has to reload everything, hence the lag
JAguirre1231 said:
You were doing something that was memory intensive, games (especially 3d) tend to do that. They used up too much memory sot the system pushed the home out of memory. When you go home that means it has to reload everything, hence the lag
Click to expand...
Click to collapse
@ Op, if your playing a game on i dont know, Xbox or Ps3 when you exit wouldn't be slower then lets exiting the browser or being in a chat?
Similar on Pc, closing browser is quicker then exiting a game like crysis or maybe flashpoint.
JAguirre1231 said:
You were doing something that was memory intensive, gmaes (especially 3d) tend to do that. They used up too much memory sot the system pushed the home out of memory. When you go home that means it has to reload everything, hence the lag
Click to expand...
Click to collapse
But it seems like even just from bouncing back and forth from contacts every now and then it lags and when its lags the phone is basically frozen until it starts to respond again.... Is there anything i can try to counter this issue
dasoccerbomb said:
But it seems like even just from bouncing back and forth from contacts every now and then it lags and when its lags the phone is basically frozen until it starts to respond again.... Is there anything i can try to counter this issue
Click to expand...
Click to collapse
Are you using 10MB hacks?
No i am not
dasoccerbomb said:
No i am not
Click to expand...
Click to collapse
Well if you don't play to many 3d games, then I would suggest using it. It takes away from the graphics to add 7.5mb more of memory for apps
i once had this issue (slowness, lagging), and i did the following, now the device is zippier and faster than ever:
Decide to do a complete make-over (reflashing the ROM)
0. backup your apps & files, copy SD to harddrive, in order not to lose data
1. reboot into recovery screen, WIPE
2. flash the ROM, reboot, flash the theme you like (and that fits to the ROM), reboot, flash AdvancedLauncher 2.1 if you like (i use it for its certain functions), reboot
3. if you can live without 3D-games, you can use the 10MB RAM-hack; in terminal emulator flash RAM-Hack image (boot.img) (IMPORTANT: it needs to be the boot image that fits to your ROM!
3. reboot
4. reboot recovery; in console or adb shell: fix_permissions
5. reboot
6. install "user.conf Creator" app, READ THE INSTRUCTIONS (inside the app), open it and:
--> enable permission_fix
--> enable compcache (i use 64MB)
--> enable ccbackinswap (i use swappiness 50)
--> enable linux-swap (my linux-swap partition is 128MB; i use swappiness 50)
--> backup files
--> push files
--> reboot
(i experimented with different "swappiness" values, 50 worked out best for me, but it may be different for you. at swappiness 80 loading of apps is really fast, but scrolling and going back to home screen is really slow. 50 seems a good middle value.)
7. done
this can easily take up to 1 hour. After applying user.conf it may take a while on first reboot until the phone is fully loaded, but it's well worth the effort.
i also use SetCPU, to set CPU clock to 528/528 when charging, 384/245 when sleeping, and 128/128 when power <10%
good luck
I get a black screen and have to wait 15-30 seconds for the launcher and icons to show up when exiting an application. This has happened to me with earlier cyanogenmod versions as well. I was thinking maybe I should wipe and reflash the ROM. Does anyone know the cause of this and any fixes?
Thanks.
Wipe is definitely in order but first you should look at your usage:
1. How many widgets do you have on your screens? How many apps do you have on your phone? Do you use "Advanced launcher"? Obviously all of those factors will make a difference.
2. Get an "Advanced Task Manager" from the market and see how many programs do you have running that you don't need. You can set it up so ATM closes unneeded programs once every 30 min thus freeing up your ram memory, make sure to exclude google stuff and programs that need to be running at all times (like weather widgets)
3. Do you use any 3D graphic intensive apps or watch a lot of video? If not, then 10mb hack is in order and is the best thing to happen to a man since the sliced bread.
4. Go into Spare Parts and activate "Keep home app in memory", it makes a world of a difference but may drain your battery faster, although not a big deal for me.
5. Wipe your dalvik-cache from SD. A regular wipe only goes so far so you need to make sure that you wipe Dalvik-cache every now and then.
All in all, let's face it, our G1s are very limited in terms of CPU power and Ram memory so anything we do will have trade-offs. Cyan's roms push it pretty much to the limit so lag is expected, although can be minimized.
Good luck.
nasman1993 said:
I get a black screen and have to wait 15-30 seconds for the launcher and icons to show up when exiting an application. This has happened to me with earlier cyanogenmod versions as well. I was thinking maybe I should wipe and reflash the ROM. Does anyone know the cause of this and any fixes?
Thanks.
Click to expand...
Click to collapse
get rid off linux swap it slows down the phone cuz cy doesnt use swap in his rom b get Set cpu or overclocking widget.
Thanks for the info borodin.
I wiped and reflashed the ROM, as well as flashing the 10 mb RAM hack. I've also done everything else you mentioned.
Is there a way to get rid of the regular launcher after installing advanced launcher?
Reboot into recovery, make a back-up, drop into console and
Code:
mount /system
mount /system
rm /system/app/Launcher.apk
rm -r /system/sd/dalvik-cache
reboot
Same thing with any other system apps you don't like (such as amazon.mp3, or whatever else). Just make sure to make a back up and stay away from google stuff. If you need to see exact names of apps you can use ls command
Hello team:
I have tried several Hero ROMs, and some of them are pretty fast once installed and even when you have installed 30 or 40 apps, but for some strange reasons, after 2 or 3 days of normal use, all of them become too slow...
I have noticed this annoying effect on MLGIN 3.2, Maxisma Sapphire 2.0.1 and MgthyMax 1.9.1
Anyone know the cause of this behaviour? any way to fix this?
I´m currently running MghtyMax with a Swap partition of 192 Mg (Class 2 8GB SD card, 60 Swappiness)
Many thanks
Rgds
iamarock said:
Hello team:
I have tried several Hero ROMs, and some of them are pretty fast once installed and even when you have installed 30 or 40 apps, but for some strange reasons, after 2 or 3 days of normal use, all of them become too slow...
I have noticed this annoying effect on MLGIN 3.2, Maxisma Sapphire 2.0.1 and MgthyMax 1.9.1
Anyone know the cause of this behaviour? any way to fix this?
I´m currently running MghtyMax with a Swap partition of 192 Mg (Class 2 8GB SD card, 60 Swappiness)
Many thanks
Rgds
Click to expand...
Click to collapse
how do you set the swappiness? I have mine 128 swap 512 ext4 and its class 6
Hero Roms are supposed to be used with Class 6 but I've been using Class 2.
I used ext3 (since not all ROMs support ext4 for some reason) - 512 mb, 96 swap, and rest fat32.
This is what I do to keep Hero Roms fast
1) Install the apps that you use a lot or need. You will be surprised at all the apps that you never used. I have about 20-25 apps installed in MLIGN 3.2B
2)Get the app CacheMate (the one with the trashcan icon) and use that to clear cache. This will speed up the phone a lot.
3)Once you boot up your phone go through all the homescreens and let everything load up (like widgets) and then go through and open up the Sense UI apps (stock apps that came with the ROM) and let them load. Go through all the options.
4)If things let you auto rotate, let them auto rotate for a while (like for camera, albums, browser, mail clients, etc) I let them auto rotate after I boot up the Hero Rom and the Rom gets faster.
5)Over clock to 528 min and max when the screen is off and 328 min and max when the screen is off. I use SetCPU and this helps with performance when using the phone and saves battery when the phone is in sleep mode.
6)If things start slowing down, reflash the ROM without wiping (like I flash MLIGN 3.2B and Deport 1.0 if the ROM starts slowing down and it speeds things back up)
AndroidNoobie said:
Hero Roms are supposed to be used with Class 6 but I've been using Class 2.
I used ext3 (since not all ROMs support ext4 for some reason) - 512 mb, 96 swap, and rest fat32.
This is what I do to keep Hero Roms fast
1) Install the apps that you use a lot or need. You will be surprised at all the apps that you never used. I have about 20-25 apps installed in MLIGN 3.2B
2)Get the app CacheMate (the one with the trashcan icon) and use that to clear cache. This will speed up the phone a lot.
3)Once you boot up your phone go through all the homescreens and let everything load up (like widgets) and then go through and open up the Sense UI apps (stock apps that came with the ROM) and let them load. Go through all the options.
4)If things let you auto rotate, let them auto rotate for a while (like for camera, albums, browser, mail clients, etc) I let them auto rotate after I boot up the Hero Rom and the Rom gets faster.
5)Over clock to 528 min and max when the screen is off and 328 min and max when the screen is off. I use SetCPU and this helps with performance when using the phone and saves battery when the phone is in sleep mode.
6)If things start slowing down, reflash the ROM without wiping (like I flash MLIGN 3.2B and Deport 1.0 if the ROM starts slowing down and it speeds things back up)
Click to expand...
Click to collapse
Many thanks for your reply, AndroidNoobie, very helpful
I will follow each one of your steps!!
Rgds
AndroidNoobie said:
Hero Roms are supposed to be used with Class 6 but I've been using Class 2.
I used ext3 (since not all ROMs support ext4 for some reason) - 512 mb, 96 swap, and rest fat32.
This is what I do to keep Hero Roms fast
1) Install the apps that you use a lot or need. You will be surprised at all the apps that you never used. I have about 20-25 apps installed in MLIGN 3.2B
2)Get the app CacheMate (the one with the trashcan icon) and use that to clear cache. This will speed up the phone a lot.
3)Once you boot up your phone go through all the homescreens and let everything load up (like widgets) and then go through and open up the Sense UI apps (stock apps that came with the ROM) and let them load. Go through all the options.
4)If things let you auto rotate, let them auto rotate for a while (like for camera, albums, browser, mail clients, etc) I let them auto rotate after I boot up the Hero Rom and the Rom gets faster.
5)Over clock to 528 min and max when the screen is off and 328 min and max when the screen is off. I use SetCPU and this helps with performance when using the phone and saves battery when the phone is in sleep mode.
6)If things start slowing down, reflash the ROM without wiping (like I flash MLIGN 3.2B and Deport 1.0 if the ROM starts slowing down and it speeds things back up)
Click to expand...
Click to collapse
I'm going to try that out too. What are the default min and max settings? Also, how low can I go when the screen is off?