memory managment

brochaos

Member
Joined
Dec 23, 2009
Messages
771
Reaction score
0
i have some questions about memory, free ram specifically. when i restart my phone, and then go to applications>running servies> and then look at the bottom colored line, i usually see "57 in 4" in the red area to the left. i've always understood this to be 57mb being used by 4 processes that can't be killed. then in the yellow and green you have something like 30+40 in 6. where this means you have 30mb free plus 40mb being used by 6 applications in the background that can be killed if needed.

am i correct in that thinking?


fast forward about 100+ hours of uptime, the red area grows to about 85mb in 4. the right side changes to like 8+10 in 6. after about 120 to 140 hours of uptime, things start to get weird on my phone. the right side might say 8+0, and most of my services will say "restarting".

can anyone explain what is happening? to me it seems like a memory leak of some sort, but i have no idea how to track it down.
 
bumpity bump...sniffle, cvpcs? any ideas anyone?
 
I think a good restart every once in a while would be good enough. I reboot every day or two for different reasons and I never have this problem. I just don't think these phones are supposed to stay up for so long...

Sent from my Droid
 
understood. i think most rom addicts are so busy messing with things that we all end up restarting at least once every other day or so. there's just something about the linux user in me that thinks these phones should be able to run forever, and be just as snappy as it was right after a reboot.
 
understood. i think most rom addicts are so busy messing with things that we all end up restarting at least once every other day or so. there's just something about the linux user in me that thinks these phones should be able to run forever, and be just as snappy as it was right after a reboot.

Well if you drop by the IRC you are sure to come across cvpcs sooner or later. He is in there way more than anyway else so you would have a better chance to talk to him. He isn't around right now though.
 
understood. i think most rom addicts are so busy messing with things that we all end up restarting at least once every other day or so. there's just something about the linux user in me that thinks these phones should be able to run forever, and be just as snappy as it was right after a reboot.

Well if you drop by the IRC you are sure to come across cvpcs sooner or later. He is in there way more than anyway else so you would have a better chance to talk to him. He isn't around right now though.

IRC? What's that? I did a search and couldn't find anything.
 
understood. i think most rom addicts are so busy messing with things that we all end up restarting at least once every other day or so. there's just something about the linux user in me that thinks these phones should be able to run forever, and be just as snappy as it was right after a reboot.

Well if you drop by the IRC you are sure to come across cvpcs sooner or later. He is in there way more than anyway else so you would have a better chance to talk to him. He isn't around right now though.

IRC? What's that? I did a search and couldn't find anything.

http://www.droidforums.net/forum/cvpcs/56580-irc-channel.html
 
well my phone had been up for about 80 hours now, and it started its usual wackiness. i do want to point out though that the memory usage seems to be better. i removed a few apps, switched home launchers, switched weather providers, so not sure if it really is fixed or what caused it, but it is definitely better. however, weird things still happened.

while pandora was playing, a call came in, and i answered it. when i went back to pandora, all of my music sounded like it was being sped up and slowed down. i quit pandora, and started up eliot stocker, and it did the same thing. i went to do the new voice search (long press search button) and got a voice error. normally taking a call while in pandora works fine.

logcat! any ideas what is going on?

Code:
logcat
--------- beginning of /dev/log/main
D/dalvikvm(31310): GC_EXPLICIT freed 5261 objects / 298224 bytes in 93ms
--------- beginning of /dev/log/system
I/ActivityManager( 1237): Start proc com.android.settings for broadcast com.andr
oid.settings/.widget.SettingsAppWidgetProvider: pid=31472 uid=1000 gids={3003, 3
002, 3001, 1015}
I/ActivityManager( 1237): Starting activity: Intent { act=android.intent.action.
SEARCH_LONG_PRESS flg=0x10000000 cmp=com.google.android.voicesearch/.Recognition
Activity }
I/ActivityManager( 1237): Start proc com.google.android.voicesearch for activity
 com.google.android.voicesearch/.RecognitionActivity: pid=31479 uid=10049 gids={
3003, 1015}
I/ActivityThread(31479): Publishing provider com.google.android.voicesearch: com
.google.android.voicesearch.AudioProvider
D/VoiceSearchLogger(31479): masf client string = googlemobile,2.0.1,android-2.2-
sholes,dc,en_US
D/dalvikvm(31479): GC_EXTERNAL_ALLOC freed 2468 objects / 168808 bytes in 48ms
D/WifiService( 1237): acquireWifiLockLocked: WifiLock{NetworkLocationProvider ty
pe=2 [EMAIL="binder=android.os.Binder@45e34750"]binder=android.os.Binder@45e34750[/EMAIL]}
I/RecognitionController(31479): startRecognition(#Intent;action=android.intent.a
ction.SEARCH_LONG_PRESS;launchFlags=0x10000000;component=com.google.android.voic
esearch/.RecognitionActivity;B.fullRecognitionResultsRequest=true;l.android.spee
ch.extras.SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS=750;B.useLocation=true;B.c
ontact_auth=true;l.android.speech.extras.SPEECH_INPUT_POSSIBLY_COMPLETE_SILENCE_
LENGTH_MILLIS=-1;end)
I/RecognitionController(31479): State change: STARTING -> STARTING
D/GoogleLoginService(30855): onBind: Intent { act=android.accounts.AccountAuthen
ticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
E/AudioHardwareMot( 1173):
E/AudioHardwareMot( 1173): AudioMgr Error:AudioStreamInMot::openFd() Open codec
device failed
E/AudioRecord(31479): Could not get audio input for record source 6
E/AudioRecord-JNI(31479): Error creating AudioRecord instance: initialization ch
eck failed.
E/AudioRecord-Java(31479): [ android.media.AudioRecord ] Error code -20 when ini
tializing native AudioRecord object.
E/RecognitionController(31479): Audio error
E/RecognitionController(31479): java.io.IOException: not open
E/RecognitionController(31479):         at com.google.android.voicesearch.endpoi
nter.MicrophoneInputStream.<init>(MicrophoneInputStream.java:64)
E/RecognitionController(31479):         at com.google.android.voicesearch.speech
service.MicrophoneManagerImpl.getMicInputStream(MicrophoneManagerImpl.java:105)
E/RecognitionController(31479):         at com.google.android.voicesearch.speech
service.MicrophoneManagerImpl.setupMicrophone(MicrophoneManagerImpl.java:95)
E/RecognitionController(31479):         at com.google.android.voicesearch.speech
service.RecognitionController.startRecognition(RecognitionController.java:437)
E/RecognitionController(31479):         at com.google.android.voicesearch.speech
service.RecognitionController.access$200(RecognitionController.java:75)
E/RecognitionController(31479):         at com.google.android.voicesearch.speech
service.RecognitionController$1.handleMessage(RecognitionController.java:300)
E/RecognitionController(31479):         at android.os.Handler.dispatchMessage(Ha
ndler.java:99)
E/RecognitionController(31479):         at android.os.Looper.loop(Looper.java:12
3)
E/RecognitionController(31479):         at android.os.HandlerThread.run(HandlerT
hread.java:60)
E/RecognitionController(31479): ERROR_AUDIO
I/AudioService( 1237):  AudioFocus  abandonAudioFocus() from android.media.Audio
[EMAIL="Manager@45c558a8"]Manager@45c558a8[/EMAIL]
I/ActivityManager( 1237): Displayed activity com.google.android.voicesearch/.Rec
ognitionActivity: 2082 ms (total 2082 ms)
D/LocationMasfClient( 1237): getNetworkLocation(): Returning cache location with
 accuracy 56.0
D/libgps  ( 1237): GpsInterface_inject_location( 34.150126, -118.106975, 56.000
)
I/RecognitionController(31479): State change: STARTING -> CANCELED
I/RecognitionController(31479): State change: CANCELED -> PAUSED
I/AudioService( 1237):  AudioFocus  abandonAudioFocus() from android.media.Audio
[EMAIL="Manager@45c558a8"]Manager@45c558a8[/EMAIL]
I/SpeechServiceHttpClient(31479): Closing the HTTP client.
D/WifiService( 1237): releaseWifiLockLocked: WifiLock{NetworkLocationProvider ty
pe=2 [EMAIL="binder=android.os.Binder@45e34750"]binder=android.os.Binder@45e34750[/EMAIL]}
E/Tethering( 1237): active iface (usb0) reported as added, ignoring
D/WifiService( 1237): ACTION_BATTERY_CHANGED pluggedType: 2
I/ActivityManager( 1237): Starting activity: Intent { act=android.intent.action.
MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.piratemedia.m
usicmod/.MusicBrowserActivity bnds=[245,252][355,370] }
I/ActivityManager( 1237): Start proc com.piratemedia.musicmod for activity com.p
iratemedia.musicmod/.MusicBrowserActivity: pid=31505 uid=10085 gids={3003, 1015}
I/ActivityManager( 1237): Starting activity: Intent { act=android.intent.action.
PICK dat= typ=vnd.android.cursor.dir/artistalbum flg=0x4000000 cmp=com.piratemed
ia.musicmod/.ArtistAlbumBrowserActivity (has extras) }
I/ActivityManager( 1237): Start proc android.process.media for content provider
com.android.providers.media/.MediaProvider: pid=31513 uid=10016 gids={1015, 2001
, 3003}
I/ActivityThread(31513): Publishing provider media: com.android.providers.media.
MediaProvider
V/MediaProvider(31513): Attached volume: internal
V/MediaProvider(31513): /mnt/sdcard volume ID: -4713965
V/MediaProvider(31513): deleting obsolete album art /mnt/sdcard/Android/data/com
.android.providers.media/albumthumbs/RockOnNg
V/MediaProvider(31513): Attached volume: external
I/ActivityThread(31513): Publishing provider downloads: com.android.providers.do
wnloads.DownloadProvider
I/ActivityThread(31513): Publishing provider drm: com.android.providers.drm.DrmP
rovider
I/AudioService( 1237):   Remote Control   registerMediaButtonEventReceiver() for
 ComponentInfo{com.piratemedia.musicmod/com.piratemedia.musicmod.MediaButtonInte
ntReceiver}
D/MediaPlaybackService(31505): restored queue, currently at position 91427/18907
4 (requested 91427)
I/ActivityManager( 1237): Displayed activity com.piratemedia.musicmod/.ArtistAlb
umBrowserActivity: 2539 ms (total 3172 ms)
I/ActivityManager( 1237): Process com.twitter.android (pid 31391) has died.
I/ActivityManager( 1237): Starting activity: Intent { cmp=com.piratemedia.musicm
od/.MediaPlaybackActivity }
D/dalvikvm(31505): GC_FOR_MALLOC freed 3181 objects / 204368 bytes in 87ms
I/ActivityManager( 1237): Displayed activity com.piratemedia.musicmod/.MediaPlay
backActivity: 692 ms (total 692 ms)
D/dalvikvm(31505): GC_EXTERNAL_ALLOC freed 1288 objects / 104840 bytes in 55ms
I/AudioService( 1237):  AudioFocus  requestAudioFocus() from android.media.Audio
[EMAIL="[email protected]$4@45c5c0c0"][email protected]$4@45c5c0c0[/EMAIL]
I/AudioService( 1237):   Remote Control   registerMediaButtonEventReceiver() for
 ComponentInfo{com.piratemedia.musicmod/com.piratemedia.musicmod.MediaButtonInte
ntReceiver}
W/AudioFlinger( 1173): write blocked for 192 msecs, 42 delayed writes, thread 0x
11c48
D/dalvikvm( 1237): GC_EXTERNAL_ALLOC freed 15495 objects / 739776 bytes in 283ms
I/ActivityManager( 1237): Process com.android.mms (pid 31416) has died.
D/dalvikvm(31249): GC_EXPLICIT freed 16121 objects / 1014584 bytes in 129ms
D/dalvikvm(31505): GC_FOR_MALLOC freed 1989 objects / 544248 bytes in 67ms
D/WifiService( 1237): acquireWifiLockLocked: WifiLock{NetworkLocationProvider ty
pe=2 [EMAIL="binder=android.os.Binder@45e34750"]binder=android.os.Binder@45e34750[/EMAIL]}
D/LocationMasfClient( 1237): getNetworkLocation(): Returning cache location with
 accuracy 56.0
D/libgps  ( 1237): GpsInterface_inject_location( 34.150126, -118.106975, 56.000
)
D/WifiService( 1237): releaseWifiLockLocked: WifiLock{NetworkLocationProvider ty
pe=2 [EMAIL="binder=android.os.Binder@45e34750"]binder=android.os.Binder@45e34750[/EMAIL]}
D/dalvikvm(31320): GC_FOR_MALLOC freed 4980 objects / 514832 bytes in 65ms
D/dalvikvm(30855): GC_EXPLICIT freed 935 objects / 45072 bytes in 130ms
D/dalvikvm(31505): GC_FOR_MALLOC freed 2562 objects / 516680 bytes in 77ms
D/dalvikvm(31051): GC_EXPLICIT freed 6271 objects / 312352 bytes in 86ms
D/dalvikvm(31320): GC_EXPLICIT freed 1623 objects / 82480 bytes in 62ms
D/dalvikvm(31505): GC_FOR_MALLOC freed 2522 objects / 514896 bytes in 58ms
D/dalvikvm( 1325): GC_FOR_MALLOC freed 15448 objects / 838656 bytes in 117ms
D/dalvikvm(31505): GC_FOR_MALLOC freed 2662 objects / 520840 bytes in 55ms
D/dalvikvm(31310): GC_EXPLICIT freed 2553 objects / 152232 bytes in 93ms
D/WifiService( 1237): acquireWifiLockLocked: WifiLock{NetworkLocationProvider ty
pe=2 [EMAIL="binder=android.os.Binder@45e34750"]binder=android.os.Binder@45e34750[/EMAIL]}
D/LocationMasfClient( 1237): getNetworkLocation(): Returning cache location with
 accuracy 56.0
D/libgps  ( 1237): GpsInterface_inject_location( 34.150126, -118.106975, 56.000
)
D/dalvikvm(31505): GC_FOR_MALLOC freed 2537 objects / 515672 bytes in 59ms
D/WifiService( 1237): releaseWifiLockLocked: WifiLock{NetworkLocationProvider ty
pe=2 [EMAIL="binder=android.os.Binder@45e34750"]binder=android.os.Binder@45e34750[/EMAIL]}
D/dalvikvm(30657): GC_EXPLICIT freed 213 objects / 10248 bytes in 77ms
D/dalvikvm(31505): GC_FOR_MALLOC freed 2561 objects / 516456 bytes in 66ms
E/MP3Extractor( 1173): Unable to resync. Signalling end of stream.
I/AudioService( 1237):  AudioFocus  requestAudioFocus() from android.media.Audio
[EMAIL="[email protected]$4@45c5c0c0"][email protected]$4@45c5c0c0[/EMAIL]
I/AudioService( 1237):   Remote Control   registerMediaButtonEventReceiver() for
 ComponentInfo{com.piratemedia.musicmod/com.piratemedia.musicmod.MediaButtonInte
ntReceiver}
D/dalvikvm(31505): GC_FOR_MALLOC freed 2570 objects / 496472 bytes in 77ms
 
Back
Top