[Q] ART vs Dalvik - Verizon Galaxy Note 4 Q&A, Help & Troubleshooting

Under developer options, you can choose either ART or Dalvik as a runtime system. What are the differences here? I've heard that ART is supposed to be give smoother performance. The only difference I've noticed since switching to ART though is every time my phone restarts, it has to optimize 112 apps, which takes about 10-15 minutes and makes my phone blazing hot.
Sent from my SM-N910V using Xparent Blue Tapatalk 2

Till lollipop comes out stick with dalvik. Its more of a experimental on kitkat, it uses more space and has to optimize apps and some apps wont work under it.

Related

trouble shooting slowness

Maybe someone already asked but I couldn't find it. I've had my rooted Inc for about 4 months and still trying Roms out. However whatever rom I use, except cm7, I get some lag. Some slow load times and such when I unlock or open a new app. I'm just curious if its an Inc problem, a sense problem, or maybe my hardware was ddamaged. I bought the phone refurbished from verizon
Sent from my ADR6300 using XDA App
infidelmatt said:
Maybe someone already asked but I couldn't find it. I've had my rooted Inc for about 4 months and still trying Roms out. However whatever rom I use, except cm7, I get some lag. Some slow load times and such when I unlock or open a new app. I'm just curious if its an Inc problem, a sense problem, or maybe my hardware was ddamaged. I bought the phone refurbished from verizon
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
If it was a hardware issue, even CM7 would show it. Sense ROMs have a lot going on, especially when you go to unlock the screen. Some kernels will switch governors to Performance as soon as the screen is turned on and until it's unlocked. Scripts can be written to accomplish this in most kernels.
Certain widgets, such as the SetCPU widget, will bring things to a grinding halt with the graphics. I can't tell you why, but I've used a few apps where the widget for it was whacky like that.
Newer Sense versions are also going to entail some lag as well. Overclocking will help a little, but the GPU in that device isn't real powerful and is easily overwhelmed by a Sense 3.0 environment. The limited memory is an issue as well.
If you can, create a swap file. That will free up some memory.
Do NOT use task killers. They slow everything down by killing apps that need to be restarted, thus taking up NAND bandwidth, eating power, and freeing up RAM that's there to allow for recently used apps to run faster.
Wipe your Dalvik cache with each new ROM/Kernel. A properly built Dalvik cache is there to minimize app launch lag. Basically, it's a cache of application byte code that's been pre-compiled so that it can be executed while the JIT compiler determines the most efficient compiling of the remaining application code.
On the dInc, my SCcard seemed to access files quicker than if stored on the internal eMMC. Moving your Dalvik cache to the SDcard could allow it to be accessed faster since it's not sharing bandwidth with the rest of the system trying to access OS and app data from eMMC. I don't know if there's a way to test that or not, but it might be worth a try.
Check number and frequency of items synched; quick hit on responsiveness. Task killer or antivirus installed? Uninstall to see whether they are the culprit.
Sent from my ADR6300 using XDA Premium App

improve gnex performance?

i have a feeling this phone is starting to show its age. it seems whenever i install more than 100 apps on this phone it just becomes laggy as hell. to the point where right now the keyboard doesn't even open until 10 seconds later and phone constantly make weird noises when using tune in radio or youtube. the phone is also so slow that it can't even run temple run 2 or any of the games that came out recently. im using xylon rom with trinity kernel for those wondering. i honestly cannot use this phone anymore without having to do a factory reset every month just to stop the lag.
this could be a sign that its time to get a new phone but for now is there anyway to improve performance at all? i already am using the fastest trinity kernel and i have tried multiple roms and all of them seems to lag after hitting 100 apps mark which is ridiculous.
Have you made sure that the phone is not running out of memory as that is what usually causes the slow problems...I too have a 100+ apps and little or no lag. Try a different kernel and Rom maybe u could also tweak the processor speeds and stuff to get your desired performance...
If I helped hit thx
«««««««CYANOGENMOD 10.1 and FRANCO KERNEL»»»»»»»»»
Flash stock factory ROM and do a full wipe.
If you want later then flash custom ROM which is "STABLE".
Then make sure you have enough free memory on your Nexus's internal memory to avoid the lags.
You actually can't improve your Nexus's performance any other way, tweaks speed up very much..
I have over 60 apps installed (usually apps that I need) and some games..
I have 1.4 GB free memory on My Nexus and I use some cleaner apps to get more free space and I don't have any lags..
I use stock ROM that I've modified and stock default kernel..
The hardware slows primarily because of software (apps). Once the hardware fails, it fails.
Check and reign in the number and frequency of apps that sync, update and or check in.
Are you syncing an email client and or keeping them on the device rather than say the Exchange server?
Sent from my Galaxy Nexus using xda premium
kudoboi said:
i have a feeling this phone is starting to show its age. it seems whenever i install more than 100 apps on this phone it just becomes laggy as hell. to the point where right now the keyboard doesn't even open until 10 seconds later and phone constantly make weird noises when using tune in radio or youtube. the phone is also so slow that it can't even run temple run 2 or any of the games that came out recently. im using xylon rom with trinity kernel for those wondering. i honestly cannot use this phone anymore without having to do a factory reset every month just to stop the lag.
this could be a sign that its time to get a new phone but for now is there anyway to improve performance at all? i already am using the fastest trinity kernel and i have tried multiple roms and all of them seems to lag after hitting 100 apps mark which is ridiculous.
Click to expand...
Click to collapse
I have 276 apps on my Nexus and (perceived) performance is better than ever using XENON HD Stable-4.0 and the Franco kernel r364. For the latest update of the ROM, I decided to risk a dirty flash. I seem to have gotten away with it. Performance "feels" excellent, whatever that is worth. My last factory reset was about 2 months ago.
The ROM and kernel have a variety of performance tweaks. I wish there was a way to benchmark performance in a controlled fashion. I hate feeling and perception in the performance department.
On the new ROM, WiFI performance is now solidly pegged at my account's limit of 30 MBs. It was all over the map before, although I realize that many factors affect the Speed Test app.
The "seeder" app helped a lot for my device in reducing lag. The overall community is sharply divided about the effectiveness of the seeder: YMMV. Its worth trying, though. I've been using it for about 6 weeks. Other than the Google Play Store updates, I don't have lag any more. Before the seeder, I felt like you -- the phone was almost unusable.
Regarding the device feeling dated, this ROM supports the expanded desktop and the pie. Wow, the phone feels new again. No kidding.
smtom said:
The hardware slows primarily because of software (apps). Once the hardware fails, it fails.
Check and reign in the number and frequency of apps that sync, update and or check in.
Are you syncing an email client and or keeping them on the device rather than say the Exchange server?
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I also observed that the apps that run sync/update/check in were slowing down the phone. Check for apps that have daemons associated with them. Decide whether its worth having.

[Q] Galaxy nexus gaming ridiculous lag

Hi there
I have a Galaxy nexus on android 4.3 and running 3d games have lots of lag. For example, the game with the most amount of lag is Modern Combat 4 with the meltdown update. Is there a way to improve the gpu processor power on the phone so that itwouldboost the framerate? Its always about 5-15 fps and im so annoyed. If there is a solution, could you let me know? My galaxy nexus is not rooted.
Does it plays smoothly then, for no reason, it gets laggy for some seconds, then come back to play everything smoothly again, then repeats? Or it just keeps being laggy at all times?
ygorvaz said:
Does it plays smoothly then, for no reason, it gets laggy for some seconds, then come back to play everything smoothly again, then repeats? Or it just keeps being laggy at all times?
Click to expand...
Click to collapse
It does exactly that, it plays smooth for 5 seconds then ridiculous lag for 10 seconds then repeats like a loop.
--------deleted------------
speedsolve said:
It does exactly that, it plays smooth for 5 seconds then ridiculous lag for 10 seconds then repeats like a loop.
Click to expand...
Click to collapse
What I'm gonna tell you now may be related to what what is happening with your device or not. It was my problem, so if it's not this I don't know what can be happening.
First, the galaxy nexus can downvote it's processors when it's too hot, although it's probably not that, just keep that in mind.
Anyway, go to settings - apps then "running apps" and check the used and free ram. If you have high RAM usage (like, 600 mbs being used) than this is probably the problem. While you're in the game, your gnexus will try to clean RAM for it, but since your gnexus is already out of RAM, it will force close background app's and services, but since those are required to run all the time, all that's going to happen is that they will keep being restarted, causing lag in the apps that are running.
To check if this is the problem, just check how much free ram you have free. If it's too low, open a game (even temple run 2 or sub way surfers will do), then when the game starts, go back to settings-app-running apps and check for things restarting.
If this is the problem, then you need to see what is the apps that are consuming all your RAM (although it can be android itself, just keep reading).
Just check what apps are in the running part of the "running apps". If you have a lot of apps running, then you can try freezing some of them or unnistalling the ones that consume more RAM. BUT! it may be that there's just too much RAM being consumed even though you have few apps running, in this case, the problem is android itself.
I don't know if this happens to android 4.3 itself, the gnexus's version of it or if it's some app causing it, but there's a memory leak that will eventually consume all your RAM. I'll use my case as an exemple: I have some common apps running on background (facebook, messenger, whatsapp, airdroid, 3d watchdog). If everything is normal, my "used RAM" keeps aroung 430mb~. Leaving almost 200mb~ free for apps to use. But after some days using my phone, the used ram will grow to 500, then 550, then 600mb, eventually to 630mbs.
Check if this is happening to you. To check, simply reboot your device, then when it boots, check how your RAM is being used.
If it was normal before the reboot (around 500mb, probably even less) and stay this way after the reboot, then your problem is another one, then I can't help you.
If your RAM was high and after the reboot it's still high, check your running apps.
If it's high but after the reboot it's back to normal, then you just "solved" your problem. Just keep rebooting daily.
If this was your problem, then enjoy your phone. If it's not, you can try checking some other things like the I/O speed (which was solved in android 4.3. Check this thread http://forum.xda-developers.com/showthread.php?t=1971852&highlight=trim ).
ygorvaz said:
What I'm gonna tell you now may be related to what what is happening with your device or not. It was my problem, so if it's not this I don't know what can be happening.
First, the galaxy nexus can downvote it's processors when it's too hot, although it's probably not that, just keep that in mind.
Anyway, go to settings - apps then "running apps" and check the used and free ram. If you have high RAM usage (like, 600 mbs being used) than this is probably the problem. While you're in the game, your gnexus will try to clean RAM for it, but since your gnexus is already out of RAM, it will force close background app's and services, but since those are required to run all the time, all that's going to happen is that they will keep being restarted, causing lag in the apps that are running.
To check if this is the problem, just check how much free ram you have free. If it's too low, open a game (even temple run 2 or sub way surfers will do), then when the game starts, go back to settings-app-running apps and check for things restarting.
If this is the problem, then you need to see what is the apps that are consuming all your RAM (although it can be android itself, just keep reading).
Just check what apps are in the running part of the "running apps". If you have a lot of apps running, then you can try freezing some of them or unnistalling the ones that consume more RAM. BUT! it may be that there's just too much RAM being consumed even though you have few apps running, in this case, the problem is android itself.
I don't know if this happens to android 4.3 itself, the gnexus's version of it or if it's some app causing it, but there's a memory leak that will eventually consume all your RAM. I'll use my case as an exemple: I have some common apps running on background (facebook, messenger, whatsapp, airdroid, 3d watchdog). If everything is normal, my "used RAM" keeps aroung 430mb~. Leaving almost 200mb~ free for apps to use. But after some days using my phone, the used ram will grow to 500, then 550, then 600mb, eventually to 630mbs.
Check if this is happening to you. To check, simply reboot your device, then when it boots, check how your RAM is being used.
If it was normal before the reboot (around 500mb, probably even less) and stay this way after the reboot, then your problem is another one, then I can't help you.
If your RAM was high and after the reboot it's still high, check your running apps.
If it's high but after the reboot it's back to normal, then you just "solved" your problem. Just keep rebooting daily.
If this was your problem, then enjoy your phone. If it's not, you can try checking some other things like the I/O speed (which was solved in android 4.3. Check this thread http://forum.xda-developers.com/showthread.php?t=1971852&highlight=trim ).
Click to expand...
Click to collapse
When I checked, I had about 300-400 megabytes of ram being used. Thank you for the info and the effort though. It has a dual core processor, it should be able to run well.
I figuare out the problem of the game lag, the CPU temperature limt!
If you're using custom kernel, set the limit to 74, and u will find out it smoothly on game play, plus if you of the gpu to 384, its almost lag free, but frame drop is also here coz the gpu power.
Does this work on stock kernel also? Last time i had custom kernel, lots of screen problems.
speedsolve said:
Does this work on stock kernel also? Last time i had custom kernel, lots of screen problems.
Click to expand...
Click to collapse
Nope, flash leankernel, wipe cacje and dalvik cache, install trickster mod, and adjust the settings.
Quite less you can do with stock kernel.
ok i have lean kernel but where do i change the setting in the franco kernel app
speedsolve said:
ok i have lean kernel but where do i change the setting in the franco kernel app
Click to expand...
Click to collapse
You need to use trickster mod not Franco app. The Franco app is optimized for the Franco kernel.
Sent from my Galaxy Nexus using XDA Premium HD app
OK I installed trickster but every time I try to change a setting, after a reboot, it goes back to stock. What now
Sent from my Galaxy Nexus using xda app-developers app
mrgnex said:
You need to use trickster mod not Franco app. The Franco app is optimized for the Franco kernel.
Sent from my Galaxy Nexus using XDA Premium HD app
Click to expand...
Click to collapse
FKU also incorporates LeanKernel Updater so why isn't it optimized
And just to add that the above trick of disabling thermal throttling works nicely for me. I always wondered about why playing PPSSPP produces random lag - setting the governor to "performance" won't help a bit - and FKU saved my ass!
Sent from Samsung Captivate Glide @ CM10.1.2

Art & dalvik

WHAT DOES ART AND DALVIK EXPERSSIONS MEAN IN THE NEW 4.4 ROMS?
aliesz said:
WHAT DOES ART AND DALVIK EXPERSSIONS MEAN IN THE NEW 4.4 ROMS?
Click to expand...
Click to collapse
Please do some reading and maybe googling: http://lmgtfy.com/?q=art+and+dalvik+explained
Sent from my Galaxy Nexus using XDA Premium HD app
ART is a new app runtime. It's more powerful than dalvik but it can't run all apps currently.
So after reading up and please correct me if I'm wrong, seems like ART is simply replacing dalvik "cache" with completely unzipping the APK files to the storage memory during install so no need for cache or virtual machines, but each app will take longer to install and may require additional storage.
Henceforth Android apps should load/run as fast/er as iOS/WP apps, regardless of phone/tablet CPU/RAM specs.
I think it's just a method to end(slowdown) piracy likely by implementing encrypted serial ID's to every APK install.
isajoo said:
So after reading up and please correct me if I'm wrong, seems like ART is simply replacing dalvik "cache" with completely unzipping the APK files to the storage memory during install so no need for cache or virtual machines, but each app will take longer to install and may require additional storage.
Henceforth Android apps should load/run as fast/er as iOS/WP apps, regardless of phone/tablet CPU/RAM specs.
I think it's just a method to end(slowdown) piracy likely by implementing encrypted serial ID's to every APK install.
Click to expand...
Click to collapse
ART doesn't "unzip" the "cache" from the APK files, but rather "compile" them into native code onto the device (which takes up more space but starts much more quickly).
Also, ART is still in an alpha/experimental stage, so it remains to be seen just how well it will improve app start-up time (although some benefits are already noticeable).
AFAIK, ART stands for Android Run Time (yeah, lame, i know).
ART simply compiles the apk during installation where dalvik compiles it as you load the app into memory. So ART will take up more space on your device, less load on cpu, thus being more battery friendly....less load on memory too i believe, although i am not too sure on that one....
dalvik on the other hand, might need to recompile the app everytime you load it back into memory, causing more load to cpu and thus, more battery drain.
speaking of which, is there any rom using ART atm? I am still waiting for the official CM11, kinda waiting for them to fix all the glitches and bugs. But is there any rom enabled ART already?
hhwong said:
AFAIK, ART stands for Android Run Time (yeah, lame, i know).
ART simply compiles the apk during installation where dalvik compiles it as you load the app into memory. So ART will take up more space on your device, less load on cpu, thus being more battery friendly....less load on memory too i believe, although i am not too sure on that one....
dalvik on the other hand, might need to recompile the app everytime you load it back into memory, causing more load to cpu and thus, more battery drain.
speaking of which, is there any rom using ART atm? I am still waiting for the official CM11, kinda waiting for them to fix all the glitches and bugs. But is there any rom enabled ART already?
Click to expand...
Click to collapse
I am currently running swordrune's Unofficial CM11 build on ART, I have been for almost 2 weeks with no reboots, lockups or app force closes. The rom is rock solid. The only issues left are the graphical glitch on the screenshot preview (which does not affect the actual screenshot) and the black screen on panoramic camera mode. Other than that this rom is 100% perfect, every app I have works fine with ART.
Thanks a lot my dear friends
Sent from my Galaxy Nexus using Tapatalk

Memory usage

Hey,
So I've been using my Nexus 5x with much pleasure but lately it's getting impossible to switch tasks fast, because they're all closing because of memory shortage. Looking in my settings it shows me that Android OS (780mb), play services (150mb) and Android system (140mb) and System UI (90mb) together take up almost 1,2GB of the 1,8gb memory. I don;t know if this is related to me being in the preview program (and having a lot of preview images updates over the last year) or it's just that the newer Android takes up more memory.
I'm pondering stepping out of the bèta program and reflashing the stock rom, but I was wondering if any of you can shed some light if this will actually help.
Thanks!
eldinnie said:
Hey,
So I've been using my Nexus 5x with much pleasure but lately it's getting impossible to switch tasks fast, because they're all closing because of memory shortage. Looking in my settings it shows me that Android OS (780mb), play services (150mb) and Android system (140mb) and System UI (90mb) together take up almost 1,2GB of the 1,8gb memory. I don;t know if this is related to me being in the preview program (and having a lot of preview images updates over the last year) or it's just that the newer Android takes up more memory.
I'm pondering stepping out of the bèta program and reflashing the stock rom, but I was wondering if any of you can shed some light if this will actually help.
Thanks!
Click to expand...
Click to collapse
It's part of the new method for ram management. It's normal. You'll notice those take up tons of ram even on a fresh install. Over time the more apps you install the more processes they auto start. This is what will cause those things to happen. For me I noticed for example first when the HDR processing of taking a picture would push hangouts out of memory even when I was actively talking voice, it just wasn't in the front running. Android does much like windows now in claiming lots of memory to better manage and allocate it as needed
Sent from my Nexus 5X using Tapatalk
On a fresh boot, my phone takes up 1.2GB of RAM, and quickly rises to ~1.4-1.5GB. It usually says there, as I don't use a lot of apps, so I'm not multitasking a lot. It's pretty odd compared to my other devices that use anywhere from 500-700MB of RAM for the OS, but it seems to do it's job just fine nonetheless.
Side note, since I don't have a lot of Apps, and I'm not concerned about RAM usage, I've disabled zram and ksm. Haven't noticed any difference, TBH.
crazyates said:
On a fresh boot, my phone takes up 1.2GB of RAM, and quickly rises to ~1.4-1.5GB. It usually says there, as I don't use a lot of apps, so I'm not multitasking a lot. It's pretty odd compared to my other devices that use anywhere from 500-700MB of RAM for the OS, but it seems to do it's job just fine nonetheless.
Side note, since I don't have a lot of Apps, and I'm not concerned about RAM usage, I've disabled zram and ksm. Haven't noticed any difference, TBH.
Click to expand...
Click to collapse
On a fresh boot it loads every apps auto start process. So that doesn't change anything at all. I am not talking about apps using ram from being run. I'm talking about all the processes they have that are triggered and restart when things occur.
Sent from my Nexus 5X using Tapatalk

Categories

Resources