[Q] batt drain, slow down and gc_for_malloc - Desire HD Q&A, Help & Troubleshooting

hi all
ive been having major difficulties controlling batt drain and 100% cpu usage after rooting and then flashing a custom firmware.
it usually...almost always..in fact- happens when i switch on wifi together with auto-sync data.
so i thought it must be one of the sync accounts, plus I'd read a bit about htc sync accounts sucking batt. So I disabled most...and there was improvement. but then it still does happen once in a while..once or twice in the middle of the night, meaning i woke to a dead phone in the morning. every time it gets so bad that I just have to reboot the phone.
when the slow down happens, i open up osmonitor, watched Android's own process log or the HTC launcher's log and i'd usually see a million of these:
gc_for_malloc freed xxxx objects / xxxx bytes in xxx ms
but am unable to troubleshoot further because it seems to be nothing meaningful.
anyone got any ideas?

yellowchilli said:
hi all
ive been having major difficulties controlling batt drain and 100% cpu usage after rooting and then flashing a custom firmware.
it usually...almost always..in fact- happens when i switch on wifi together with auto-sync data.
so i thought it must be one of the sync accounts, plus I'd read a bit about htc sync accounts sucking batt. So I disabled most...and there was improvement. but then it still does happen once in a while..once or twice in the middle of the night, meaning i woke to a dead phone in the morning. every time it gets so bad that I just have to reboot the phone.
when the slow down happens, i open up osmonitor, watched Android's own process log or the HTC launcher's log and i'd usually see a million of these:
gc_for_malloc freed xxxx objects / xxxx bytes in xxx ms
but am unable to troubleshoot further because it seems to be nothing meaningful.
anyone got any ideas?
Click to expand...
Click to collapse
I have the same problem just like yours!
I don't know how it happens?
But I founded a way to solve it temply.
when you saw the CPU load are 100% and system runs lagging.
First, launch the "set CPU" if you had installed.
Than you'll see the frq. Goes to 245 Mhz if you're set profile to "ondemand"
don't need doing anything, At least, you can see that CPU load are back to 5%~15%
As normalized. I don't know how it works? But it works everytime.
I'm using coredroid v3.2 and O/C 1.2G Hz, desire hd.
Can anyone who can tell us how it happend?

I've read that this is a common problem with many custom ROMs. If I remember correctly it had something to do with a file being constantly read. So you have to set permissions for that file which forbid reading. The trouble is that the system changes permissions again, and you have to constantly change the permissions using a sheduled script. It works but doesn't really solve the problem. The solution is to flash a custom ROM which has this fixed. Android Revolution HD 3.2 is one of them. With 3.1 I had this issue, now with 3.2 it's gone for good.

haha i don't know how you managed to get to setcpu..
mine is a near-freeze most of the time and would probably take forever to get there
but if i do get the chance i'll give it a try, thanks.

thanks, am indeed running on 3.0 so i'll give 3.2 a try.

Related

defrost problems

Hello,
I find things very funny on my phone let me describe. This happens on both opendesire 4.0.25 and defrost 4.9 . I am downloading defrost 4.7 now to see if the problem solves. This is it, my phone clock speed is always at 998MHZ and the CPU usage is always at 100% . I realised that is why my phone always got hot and the battery drains fast. I hope someone could give me a solution, or is it the new kernal that is giving the problems?
Thank you.
On Defrost you can try a different kernel directly from the Defrost setup.
I am now using HAVS 1113and the phone works great and the battery life has increased significally
Thank you for your reply
but that is not the problem. This is, my CPU usage is always at 100% (checked with many apps) also the CPU setting is ondemand which means my usage being at 100%, makes the clockspeed always at 998. The process that took up 76% of the CPU was named android.process.media or something like that. Anyone knows what it means and what I am supposed to do now? How am I to disable the process and what process is that? How can I disable it?
Thank you and I'm hoping for more replys its quite upsetting to have your processor running high all the time
Sounds like a background app is stopping the Desire going into a sleep state...you might have to reset the phone and add 1 app at a time to see what it is...
install Android System Info on your Desire and take a look at the tasks list.
There press the menu button to sort the list by CPU load.
The total CPU load should be around 10%, which gets consumed by the Android System Info process itself, and a small amount by Android System Info.

CPU usage through the roof, may be causing the reboots, any ideas?

So I hve been going nuts trying to figure out why my phone keeps rebooting. I'm in another country so getting a replacement isn't an option for me and it seems it hasn't helped some people anyways (After a while it comes back).
THe only constant I see is that the CPU usage after maybe 30 seconds after the phone comes on stays at 95-100% all the time. Only thing that makes sense is that the phone is shutting itself down before it melts down.
This kinda makes sense since it seems the more I try to do the more random the reboots become.....and battery life is beyond horrible. I did the steps to increase battery life and battery life is making this phone virtually unusable off AC power (EXample: Leaving from my Brother in laws apartment and travelling 10 floors down to my car results in 89% battery left. Phone is dead within the hour if i use it and 3 or 4 if leave it idling.
I tried killing all the tasks that te phone starts up with but nothing change the CPU usage. I thought maybe it was the kernel but I flashed the latest one from this thread: http://forum.xda-developers.com/show...RI+version+PRL [the undervolted version]. Not sure if that would help (THe info in this forums is so scattered and disorganized it makes my head spin.....and I'm a techie).
Also try flashing the combo package of the latest radio, PRI, NV etc and that doesn't work also....CPU usage is still through the roof.
I just got this a few days ago. I'm currently on:
HBoot 2.10 [s-off]
H/W 0004
Basband 2.15.00.11.19 [I was on this before I was rooted]
Kernel version 2.6.32.27-SBC-net-4.2.2-less-havs [email protected] #19 [Just flashed] ROM myn's Warm TwoPointTwo 9RLS 4)
Software: 3.3-.651.3
PRI Version: 1.90_0003
PRL Version: 60662
Can I get some help from people smarter then me. I'm at the end of my rope and I'm not convinced a handset swap is going to fix my issue esp. since this was BNIB straight from Sprint and other people who've had this issue and had a new phone seem to somehow have it later.
If i leave it alone it will reboot on its own eventually. If i switch from airport to turning on the cell data, reboot, turning on wifi......reboot, toggling 4g.......reboot, After a few web page searches......reboot, open up an application.....reboot.
This isn't temperature related as far as I can tell.....The app I have monitoring temp has seen this happen at 25 degrees and sometimes less.
PLEASE HELP
Ok.. firs tthings first..
when your phone is unstable and rebooting, dont use an undervolt kernel. Undervolt kernels provide less power to the CPU at set frequencies.
In my case, I discovered undervolting CAUSED reboots, because my phone couldnt handle anything under 950mv... there is such a range in the quality of the components that theres no way to always say yes, undervolting this much will work with every phone.
so 1: Use stock kernel ( for whatever rom your using.. also use a well established rom, not one of the 'hey, last night i got bored and made this' ones.. it may work, but it may be so buggy its what is causing your crash )
2: do a fresh install. run the phone with 0 apps added, see if it has the same issue. If it does, may be the phone itself. If it doesnt, its one of your apps.. install one at a time, and see if it improves.
and you made two posts why?
Didn't know they would move it. Posted in the wrong forum and they moved it as well. lOL. My bad.
I've been on a stock kernel up until I started trying different kernels. I will try the other one then.
My CPU usage is the problem I think. I have both memoryusage and system monitor and both report the same thing.....95-100% usage constantly. If I could resolve that then maybe my phone would work properly.
Didn't know they would move it. Posted in the wrong forum and they moved it as well. lOL. My bad.
I've been on a stock kernel up until I started trying different kernels. I will try the other one then.
My CPU usage is the problem I think. I have both memoryusage and system monitor and both report the same thing.....95-100% usage constantly. If I could resolve that then maybe my phone would work properly.

lag on motorola defy!

my defy is just 2 weeks old and i have started experiencing trememdous lags....
its 2.2.2 running , kernel is 2.6.32.9-g0671d13 , just in case it could help in finding a solution...
1. the screen goes off on its own half of the time (even though the time out is of 1 minute) and even when i unlock it , it again goes off.. ITS REALLY FRUSTRATING
2. i have just 1 game installed, but even then the phone lags a lot, the game lags and so does the entire phone..!
3. the internet isnt getting activated (i guess thats a network problem though), anyone with a similar problem!?
please post replies as soon as possible..
well i too experience the same, mine is 30 days old...
I have disabled gps/data/wifi/auto brightness to get max battery yet it fails to go beyond 1 day even if i use max an hour of wifi.
screen going blank on it own is frustrating
moto widget for time and date does not keep current time
lag in touch even after running ATK on auto aggressive mode
defy is running indian 2.2.2
p.s. any idea if i can get data on first date of use for battery? I somehow feel a new one should give more standby life.
my phone does last around 1 1/2 days with an hours gaming....and it does keep the current date and time (as of now)...
mine too lags inspite of the ATK being on autokill.... even the homescreen takes time to load after pressing the home button ...
Might want to try getting rid of ATK.
Tasks/services run for a reason on android. When something kills them, they'll start back up, causing more cpu and memory usage than if you'd just leave the service running.
Run for a reason, but not necessarily a good one. Stock motorola/vodafone firmware that I had on my defy would run many completely irrelevant processes - VF360, newsandweather, amazon mp3, etc. Task killing isn't the solution because they just start up again.
The best way to get best performance from the phone is to install CM7.
You could try to wipe in stock recovery. Check http://forum.xda-developers.com/showthread.php?t=1216982, point witch says Froyo laggy. You will lose all data.
If you find it laggy afterwards, you will never be happy with the preferments on stock froyo. Then try CM7. You will be able to downgrade to send it to warranty as I also did this. It is quite a difference.
shreymehta said:
1. the screen goes off on its own half of the time (even though the time out is of 1 minute) and even when i unlock it , it again goes off.. ITS REALLY FRUSTRATING
Click to expand...
Click to collapse
Is it going off while you are holding it by the top, with a finger on the left of the speaker hole?
If it is the case, it is because you are masking the proximity sensor. And if you have the "Pocket detection" feature activated, it will cause this annoying stuff...
Well not to worry even mine was laggy before, i had just installed 2-3 apps. I had to restart my phone at least once then i installed cm7 rc1.5 Now its very fast and i dont remember the last time when my phone was lagging and freezing.
I guess it has something to do with the froyo and motoblur on defy that makes it laggy.
You have to have get rid of stock froyo after owning a defy.. thats the truth..
I did a readup on the ATK stuff and the excerpt from the and dev documents... well since the read i have uninstalled all task killers... (kept one just in case with all auto actions disabled)
I do hope the lag issue is resolved after moving to CM7/Jboogie3 etc
however the battery issue is a major hurdle for now as one day is too less, i probably have to take it to the service center for a checkup and/or claim warranty on battery. till them no flashing for me...
att: patriiice - even when the proximity sensor is not covered, i do experience screen blanks, almost immediately asa the power button is pressed to wake the device.
The lag presented on the Defys running Froyo is a "super nice feature" by Motorola it has an easy fix tho.
Its caused by the VM consuming all memory, all its needed is adjusting the amount of MB the VM should leave free.
There are a few ways to it:
1) Run a terminal emulator, or use GScript Lite to run this:
su
vm.min_free_kbytes=8192
(Not permanent, need to be ran every time you reboot)
2) Get Sysctl from market and do it from there.
3) Get SetVSel and do it from there.
Lag
I have that problem to. The bad thing is that i can`t answer call during the lag, it says i have my phone is closed or i don`t have signal. I`ve installed Temp+CPU and during lag it shows that the proc is running at 100%. Memory has all the time, around 130 min and 230 max. Closed all programs one by one, no change. I restart the phone and everything is running smooth and it lasts max 1 day. i have stock rom 2.2.2. (please excuse my spelling)
mmariann2001 said:
I have that problem to. The bad thing is that i can`t answer call during the lag, it says i have my phone is closed or i don`t have signal. I`ve installed Temp+CPU and during lag it shows that the proc is running at 100%. Memory has all the time, around 130 min and 230 max. Closed all programs one by one, no change. I restart the phone and everything is running smooth and it lasts max 1 day. i have stock rom 2.2.2. (please excuse my spelling)
Click to expand...
Click to collapse
I also use 2.2.2 stock and my defy runs without lag... you should consider to root the phone and freeze some unnecessary stock-preinstalled apps like Kindle, Voice command, etc... the ones you will never use. I freezed about 20 apps and there is no lag at all. (I even froze Maps, Streets, SIM toolkit, and some others)
Zephyrot said:
The lag presented on the Defys running Froyo is a "super nice feature" by Motorola it has an easy fix tho.
Its caused by the VM consuming all memory, all its needed is adjusting the amount of MB the VM should leave free.
There are a few ways to it:
1) Run a terminal emulator, or use GScript Lite to run this:
su
vm.min_free_kbytes=8192
(Not permanent, need to be ran every time you reboot)
2) Get Sysctl from market and do it from there.
3) Get SetVSel and do it from there.
Click to expand...
Click to collapse
My Defy was lagging until I rooted and installed SetVSel. Now its running as breeze with Stock Indian Froyo.
stock froyo is not good but it shouldn't be that bad. there were some faulty battery issue that i have heard of before too. but in your case your defy might even be faulty. so i would suggest you get it replaced or fixed under warranty first before flashing any custom rom.
lag on defy
with rootunistaller i`ve frozen skype and yahoo and i haven`t had any lag since. If i want 2 use them "defrost" and when i`m finished i just "freeze" back the app
mmariann2001 said:
with rootunistaller i`ve frozen skype and yahoo and i haven`t had any lag since. If i want 2 use them "defrost" and when i`m finished i just "freeze" back the app
Click to expand...
Click to collapse
Easy as that...
Lag on defy
Nope. I was wrong after 3 days of normal proc usage it started again. I`ve installed OS Monitor (free on market) and there was a process the ate all my resources: "DRM Protected Content Storage". Selected watch log and there was something like "enter,delete update, uri: content://media/external/audio/media/1 ../44.... /254..."
This process is searching ur phone for media, video audio and looked like it was stucked at this folder. I`ve searched the phone for that folder but couldn't find it so i just killed the app in OS Monitor. After the process restarted at log was showing "media search finished:182 audio files found and 1 video found". Looks like that's my problem and maybe yours to. Cheers mates
so I might visit the service center this weekend to have my battery life checked.. one day life with all wifi/data/gps disabled and below average voice calls is not acceptable at all.
what is stock recovery?? and will it void my warranty???
thanks a lot guys for ur replies!!
but the thing is my phone has become even slower!!
when i first switch on the phone i have around 240MB free RAM but just after an hour everything becomes too slow, even opening of the menu! and after 2-3 hours of usage it keeps on reducing and finally reaches as low as 40MB .....
what could be causing this??
i have android assistant by which i clear cache, ram still it doesnt help....

[Q] ARHD 7.0.2 "Phone" process keeping CPU at 100%

Hi everyone,
I just flashed ARHD 7.0.2 on my Desire HD last night and I'm experiencing the following problem:
The CPU remains at 99-100% all the time, the battery drains excessively fast and the phone gets really hot.
Using "Watchdog Lite", I detected that when the CPU does not stay at 100% (after a battery-pull), the "Phone" process uses 0,0% of CPU.
However, for some reason, after a while it will jump up to 80-90% and stay there, causing the CPU to go berserk.
I suppose the heat-issue comes from the fact that the cpu works all the time at 100%.
The battery drain issue comes also from the CPU.
However, I do not know why the Phone process would suddenly go crazy and use that much cpu - and keeps doing it until the battery is dead.
I'm thinking it is because the ARHD 7.0.2 ROM is actually a stock Sensation XL base and thusly requires another RIL than the one that was on it before that.
Before flashing another RIL or radio I would like it very much if somebody could confirm that the fact that the Phone process goes crazy like that could very well be linked to the fact that the RIL and Radio don't match.
It seems obvious, but I don't know enough of the inner workings to verify this, so therefor: this thread
Thanks in advance to all!
sstm
The RIL should be pretty standard between HTC devices so that shouldn't cause any issues. Did you do a full wipe before the install?
Hello TransientMotion,
Yes I did a full wipe, I even cleared the battery stats for good measure.
I even formatted my SD-card to make sure nothing remained from some app somewhere.
The phone is as if I'd have bought it fresh out of the store with ARHD 7.0.2 on it (and rooted of course)
It's just weird to see that the "Phone" process is using this much cpu, even when on Airplane mode.
Thanks for you reply,
sstm
It may be worth trying out an earlier version of the rom just to see what happens. I used 6..3.1 before I switched over to ICS and never had any major problems with it. If that works fine then try newer versions until you get glitches again or it works without the drain
Hey,
I just found out that it is Llama (kebabApp 'location aware' application) who is causing the problem.
Whenever I leave an area and then re-enter it, the CPU goes berserk and stays that way as if some loop can never be interrupted.
I didn't have this problem on ARHD 6.3.1, but I didn't have the same Llama configuration on it either so I tried the Llama config on ARHD 6.3.1 and it did the exact same thing: cpu 100% and slowness all over.
So conclusion: Llama config is the culprit.
Anyways, thanks for you help TransientMotion.
sstm

Android process (ksmd) high CPU usage

Hello,
My phone began to get hot since 1 week and the battery drains very quickly. I investigated and found out that it's the ksm deamon that is causing that (30% + cpu usage all time). The ksm deamon scans all the memory at an interval to do things with it... It is a normal linux process but :
The problem is that the interval is set to 20ms ! And that the run value is at 1. The files are here : /sys/kernel/mm/ksm/run
I changed run from 1 to 0 with the terminal emulator, it fixes the problem, but then it goes back to 1 after some minutes. Same for the interval, I set it manually to 10000000000000000000 and then it goes back to 20.
It's like there's a virus changing the value or something like that.
Help me please, I can't use my phone anymore, it lags, gets hot and the battery drains very quickly :crying:
Thanks.
I'm having the same damn problem on my oneplus. It get's so hot it causes the touchpad to stop working and the phone becomes unresponsive and I have to force shutdown. Did you find a solution to this problem? I might try a custom ROM on here, I didn't have this problem with my last oneplus so not sure if it was a recent kernel update to CM11 that did this or what.
skini26 said:
Hello,
My phone began to get hot since 1 week and the battery drains very quickly. I investigated and found out that it's the ksm deamon that is causing that (30% + cpu usage all time). The ksm deamon scans all the memory at an interval to do things with it... It is a normal linux process but :
The problem is that the interval is set to 20ms ! And that the run value is at 1. The files are here : /sys/kernel/mm/ksm/run
I changed run from 1 to 0 with the terminal emulator, it fixes the problem, but then it goes back to 1 after some minutes. Same for the interval, I set it manually to 10000000000000000000 and then it goes back to 20.
It's like there's a virus changing the value or something like that.
Help me please, I can't use my phone anymore, it lags, gets hot and the battery drains very quickly :crying:
Thanks.
Click to expand...
Click to collapse
into_311 said:
I'm having the same damn problem on my oneplus. It get's so hot it causes the touchpad to stop working and the phone becomes unresponsive and I have to force shutdown. Did you find a solution to this problem? I might try a custom ROM on here, I didn't have this problem with my last oneplus so not sure if it was a recent kernel update to CM11 that did this or what.
Click to expand...
Click to collapse
I kept disabling it manually with the terminal and was monitoring my phone with a process manager. Then it stopped by itself I don't know how....
But it may come back one day I really don't know why, I didn't even uninstalled an application. This is very weird and it's a core functionnality of linux, why is it designed like that ?
skini26 said:
I kept disabling it manually with the terminal and was monitoring my phone with a process manager. Then it stopped by itself I don't know how....
But it may come back one day I really don't know why, I didn't even uninstalled an application. This is very weird and it's a core functionnality of linux, why is it designed like that ?
Click to expand...
Click to collapse
I've noticed KSMD only pegs out like crazy on my phone when it's active. While the phone is asleep it does nothing.
I can tell it's not at all related to running the TOP process either to monitor things because if you do a ps -ef --sort +time, you can see KSMD process constantly climbing a few seconds of a time of CPU use the longer your phone uptime\Screen-on-time goes on. It's not growing at a massive rate, but like 1 second of CPU time for every 30 seconds of screen on time.
I did a little digging and apparently this is an issue on many Linux distributions and is generally seen as a bug from the user community(unsure how the dev community feels about it, but it's pretty old.. you'd think they would address it by now). It's possible that the Gamma kernel is based on a Linux kernel distro that has that bug in it.

Categories

Resources