Any way to fix the horrible memory management? - Shield Tablet Q&A, Help & Troubleshooting

The aggressive memory optimization of the Shield Tablet (K1) is well documented. I'm talking about how apps are cleared from memory when switching to another app. Is there any way to fix it?
My use case: Car tablet. So I switch between apps a lot. Don't game much on it anymore.
- I known about disabling stock apps, like Facebook, etc. Doesn't help.
- I'm unlocked / rooted
- Any kernels that fix this issue?
- I'm willing to use a custom ROM

I think you should go back to Marschmallow (1.5), optionally flash BitO kernel and change zram and swappiness.
Nougat eats much more RAM. @mageus

It's not a RAM issue. Memory settings show the memory is not capping out. Swap algorithms have to do with the kernel's management of memory in general. This is the problem where Nvidia aggressively task-kills (presumably to optimize gaming).
Based on posts, it seems that ROMs (such as Lineage) don't fix this problem.
Does Bit0 fix the multitasking issue? Why can't you use Bit0-k10 on nougat?

I assume Doze is switched off?

mageus said:
It's not a RAM issue. Memory settings show the memory is not capping out. Swap algorithms have to do with the kernel's management of memory in general. This is the problem where Nvidia aggressively task-kills (presumably to optimize gaming).
Based on posts, it seems that ROMs (such as Lineage) don't fix this problem.
Does Bit0 fix the multitasking issue? Why can't you use Bit0-k10 on nougat?
Click to expand...
Click to collapse
You can use the k10 kernel on nougat, though I am not sure if it helps with memory management since I pretty agressively greenified and uninstalled apps and only left the few apps I use. Never the less, perfomance is better, but I still struggle to keep google chrome tabs from refreshing after not using them for a few minutes.

I solved the problem.
Galaxy Tab S2 9.7", $270 Black Friday deal.
I love the K1, but the couple glaring issues ruin it for my purposes.

Related

Slow/Stuttery Performance

Hey guys, I just did a fresh install of the stock 5.0.1 ROM, rooted and emotion kernel because everything was running unbearably slow. Games are always fine but apps like Facebook were extremely laggy and stuttery as well as general UI things. After doing a full wipe in recovery, everything was good again but then I restored all my apps and now things are jittery again. Not as bad as before but still pretty annoying. I just wanted to ask if there is an app that can tell me what is causing this or the best way to find out short of uninstalling each app one by one? Like what is hogging up system resources? My internal storage still has 15GB left so it shouldn't have anything to do with that. Thanks a lot in advance!
Info
so you have to check ur apps
is thr any app that related to control system?
like apps for cache cleaning, ram booster, battery saver?
these kindda app slow down the system
+ If there is no Mode that installed through recovery
check it out and inform me
:good:
As for as cleaning goes, I just have SD Maid which has been on my phone since it used to run smoothly. I don't use a RAM booster and for battery saver, I have the Avast Battery Saver which basically just manages the Wi-Fi so that when the screen is off, it only periodically turns it on. I also don't think this is affecting my performance at all since it's been on my phone since ages ago. I also have Battery Stats Plus installed but that's just a battery monitor.
For my Device Administrators, I just have McAfee Security and Android Device Manager. I understand McAfee might affect performance a little but it didn't seem to affect it much when I was using the Resurrection Remix ROM.
"+ If there is no Mode that installed through recovery"
Sorry I don't understand what this means.

H81010o issues

I ended up getting the latest ATT/LG software update, build LMY47D / H81010o. It actually let me choose when to install it so I'm happy about that, but I'm having a few problems. The screen seems to be working better now, taps, touches, swipes, and drags seem to be working correctly - but my phone is running really hot - even after a couple reboots. and for some reason all of my task killers no longer work. I use CCleaner and AVG to flush out ram because even though the G4 has 3gb, about 1.6gb is always in use with factory apps only. None of the task killers detect any running apps now, even the built-in LG task killer doesn't find anything running in the background.
Anyone else having issues with task killers? I've cleared the cache out of them, dumped the data, re-installed them, and they still don't work. I had a few other apps that quit working but once I dumped the cache they started to work again. Also, the phone seems to boot a little quicker and charge faster too, seems like mixed results with the latest upgrade.
Everything I've EVER read about task killers says that they don't really help because they are at odds with Android. And RAM is supposed to be used. Android will drop things out of RAM if it needs more.
The issues with memory leaking are inherent to Lollypop and are "supposedly" addressed in Marshmallow. We'll see.
But I had the same issues with my S6 and S6 Active.
Sent from my LG-H810 using XDA Free mobile app
Task killers shouldn't be used with anything later than Gingerbread. They simply serve no purpose. Android's stock RAM management keeps everything how it needs to be run, and shouldn't be messed with. For example, every time you go and use one of those task killers to flush out your RAM, Android is going to turn around and load those same apps right back into RAM because they're set with certain OOM values that tell Android when to kill them off or when to let them stay in memory.
So, in practice a task killer is probably robbing you of battery power.
The only thing I still don't like about LG's software is that they HAVE tweaked the stock RAM management system that Lollipop uses to favor keeping things in RAM for longer... and things on the G4 can get a little slow sometimes because of it. Just use the app switcher and swipe them away though, that way the app services can still run in the background like they're supposed to.
The G4 would be my ideal Android device if they would ship it with stock Android and just put their apps on top of that. RAM management doesn't need to be messed with, and UI elements don't need messed with (lollipop is quite elegant).
As for the "o" version, I was forced into it. It never asked. It installed itself while my phone was laying on the coffee table. Really pisses me off.

Addressing screen stutter.

Hi fellow Mate 7 owners. I've seen mention of stuttering here before. The phone is reasonably powerful and it intrigued me as to why it stutters, especially when scrolling. It helped to remove the Huawei launcher after setting up Smart Launcher Pro and de-bloat system apps, but I still saw some stutter so turned animations to. 5, then off altogether. My phone runs quite efficiently but that minor jerkiness bothered me. I've now enabled the "force GPU rendering" setting in developer options and re-enabled animations. It runs a lot nicer. Smooth and fast.
I'm assuming the cause was just that where possible, it tries to run on the 1.3GHz economy processor which is not fast enough for frequent screen redraws where content has to be recalculated.
So, my question to those who are tech savvy with the more complex workings of Android is, can we edit something in the system that tells the phone how to control CPU governing so that it steps up to the 1.8GHz processor easier for a smoother operation?
I don't want to install an extra governor app from Google Play.
Edit:
I've ended up installing Kernel Adiutor (needs root) so that I can alter settings and see how it's affected in case it's possible to alter the kernel permanently.
Changed a few settings with CPU governor and I/O scheduler. Kept forced GPU setting in developer options and animations at 0.5.
Edit:
Uninstalled Kernel Adiutor as I had trouble with settings not all sticking and sometimes performance suffering.
I've now installed EX Kernel Manager and two good monitoring apps by same dev. Better result so far. Settings seem to stick and the phone is more reliable. It's smoother, snappy to use. Another thing this has also benefited is stable bluetooth streaming of music. I used to get dropouts, now it's like it's connected by aux cable. This is a big thing for me as I use it on BT for music a lot. It can multitask whilst streaming music and still not drop out momentarily.
https://play.google.com/store/apps/details?id=flar2.exkernelmanager&hl=en

[TIP]Getting the best out of your phone.

HEATING:
Heating while charging isn't an issue pls. You can let your phone cool down before charging it in a cool place. You can either power it off or put it on Airplane mode while charging. (This will reduce the charging time and also some activities by apps which slow the charging) Heating is normal while charging owing to the Quick Charge x.0 capability of Qualcomm Snapdragon 617 (MSM8952). It will heat up. Heating is reduced in the latest builds, especially while recording video via the camera. This semi-budget oriented processor isn't designed for heavy gaming pls, despite 3GB of DDR3 RAM available to it. If you're a hard core gamer or someone who likes to overclock stuff, this isn't the right phone.
If you feel your phone is heating with normal usage too, consider removing apps which are useless and clear the cache followed by a reboot. See to it that the apps are updated. You can switch to WiFi instead of Mobile Data (keeps my athene cool idk why). If nothing works, consider a factory reset; else shift to a custom ROM if you can and test.
PERFORMANCE:
General phone performance of Nougat has been better than Marshmallow for sure, but for many, 7.0 has had the notification drawer stuttering issue in some cases and Bluetooth being turned on automatically after turning Airplane mode ON. Overall experience is smooth. But many people do not like stock ROM very much, because of the lack of features. AOSP and LineageOS based ROMs are much better that stock in terms of speed. For god's sake don't use the task killer apps or battery savers like CCleaner / CleanMaster/ DU Battery Saver. Apps staying in the memory (RAM) are good for your device until your phone is lagging. Clearing the things from the recents panel will force them to start again from scratch, consuming the CPU and of course the battery.
BATTERY & CHARGING:
Stock N wasn't very good in terms of battery after all in comparison to MM despite the improved doze mode introduced in Nougat. Well this is the case in almost every android OEM that the battery performance went down in transition from one Android version to another. However, the March 1 update is said to fix a bit of battery and security issues. Android has the habit of collecting garbage (but that makes it smart too) and this can be one of the reasons why battery and performance issues occur after an OTA. The best thing after a "dirty/problem causing" update is to do a factory reset. Anyways, it is advised to clear the cache before and after doing an update. For god's sake don't use the task killer apps or battery savers like CCleaner / CleanMaster/ DU Battery Saver. Apps staying in the memory (RAM) are good for your device until your phone is lagging. Clearing the things from the recents panel will force them to start again from scratch, consuming the CPU and of course the battery.
Battery Saving and charging Tips:
Please understand the difference between Screen On time of a complete cycle and the usage time. People start judging the battery from the estimated time left after the first charge itself. A tip is to fully charge the battery after a clean flash and then let it drain till 15%. Do not let the battery drain completely, Li-ion batteries lose their capacity over time and are designed to run between 20-100 percent. Battery life of your phone is completely dependant on your usage. Turning off Auto-Rotation, WiFi, Bluetooth, Sync, Mobile Data, Location Services and scanning (almost everything ) when not needed can give you the best battery life possible. You can consider using Greenify although you should avoid any such thing. Android learns how you use it, no need to comment about the 2 H SOT you're getting after a clean flash. You might also want to uninstall the useless apps and block the wakelocks (which you understand) if possible. Turn off the SIM card if it's in very low network. If nothing is helping you, you might consider doing a factory reset too.
Checkout this amazing thread by @rirozizo and the video by XDA TV.
https://www.youtube.com/watch?v=3Zt2j8lFbJQ
Ghost Touch: Your touchscreen is at fault. Visit the service center please.
Screen Retention: Your display is defective. Turning the phone off for a while and then setting blue light filter at 5% for Black colour or changing the RGB values is a temporary fix. Visit the service center please.
Random Reboots: Try factory resetting your device, see if you installed something wrong and flash latest stock firmware, just in case, you know. Else the service center only can fix the issue if still present.
For not being called a noob:
1. Read XDA and other forums and think before you do anything to your phone.
2. Ask in the community if you have doubts. (Read Rules and XDA University's New User's guide first)
3. Always make backups before flashing new things. (Use TitaniumBackup and TWRP backups)
Check the videos by XDA-TV and Rootjunky ( @Tomsgt )
https://www.youtube.com/watch?v=_rEsgCrvEqY
https://www.youtube.com/watch?v=nyr3FstDKH0&index=1&list=PLgLZvFga2ml4Atl32E4c_ZslfrTJJDUfr
https://www.youtube.com/watch?v=j-i59R51Cys
4. See this video by XDA-TV:
https://www.youtube.com/watch?v=JmvCpR45LKA
5. Stop using useless apps and be patient pls.
Valar Morghulis!
Good thread, I'll add a couple of my tips here.
- ohmergerd, there's thousands of ROMs for the G4! Which ones are the best???? Nearly every single ROM for the G4 subtracting perhaps GZR ROMs and RevivorOS/optimized stock is LineageOS based (Invicta is basically Lineage with MM kernel blobs and faux/OMS integrated). There's basically no performance differences, just feature differences based on the discretion of the dev.
- If heating is STILL an issue for you, disable the 4 big cores. There isn't a significant difference in everyday use- the LITTLE cluster handles the UI and basic apps anyway.
- Haven't noticed notification bar lag since the 7.1.2 builds. If you have lag (depending on your ROM), using blur or transparency helps trick your eyes into seeing no lag. If lag persists, force enable scrolling cache and speed up the animations.
- If you have a custom kernel and your RAM usage isn't an issue, disable KSM, Adaptive Memory Killer, and/or ZRAM and Kernel Adiutor/EXKM. While useful if you let your memory use skyrocket, if you are conservative in your memory use these memory killers just suck up CPU cycles.
- Build prop tweaks/L Speed/HEBF don't work. Completely placebo, except for governor tweaks.
- USB-OTG is great, I recommend getting a dongle if you're a flashaholic. Much easier and quicker to simply plug in your USB to flash instead of plugging in your phone, transferring the ROM, flashing, etc.
- Use a trickle charger, and save that fast charger for emergencies (camping, flights, etc.).
- Disable a bunch of Google's **** in settings- I advise going through Activity controls as Google takes snippets of keyboard input, voice, web history, video history, etc. This adversely affects battery life especially if you have a weak signal, as Google Play Services continuously attempts to push through their telemetry data. This is also why you get 2hrs of SoT after a clean flash.
- On stock-based ROMs (to eliminate lag), boot the ROM once, then reboot to recovery and flash the latest Aroma GApps package with the apps you want. Then, mount /system, and start deleting all apps in /system/app or /system/priv-app that begin with "3c". This effectively removes Motorola updates and telemetry, and also updates your GApps- the stock GApps are very old, and updating them caused Play Store errors and miscellaneous battery sucking services.
- Mr. Shield Protectors suck. Badly cut-out, misaligned, etc.
Hard reset: A term with the common misconception here in the group. Hard reset means nothing in android smartphones. It is only a term for older computers where you manually had to reset the old electrical parts from the charge they held.
Factory reset via the settings is equivalent to the Wipe Data/Factory reset available in the stock recovery.
Also, always sign out from your Google account before doing the wipe, else chances are your device may enable Factory Reset Protection and lock the device.
Normally my phone was using two BIG cores (and the four LITTLE ones). Each core was utilized around 40-60%.
Withing kernel manager I have set the minimum value for the BIG cores to 1 and I have lowered the minimum frequency value for that core. Now the utilization on that core is close to 100%.
Now the phone is cold all the time (except when charging with the Fast Charger) and I have no lag issues whatsoever.
Oh, btw, on some kernels (EX 1.07, Vegito), workqueue power saving is built in which iirc tries to schedule tasks on the fewest cores as possible, so on these kernels which tend to turn off cores and lower frequencies while asleep the wakeup action, especially while dozing, the wakeup action will be met with significant lag/delay.
If you have a delay when turning on your phone with these kernels (or even stock kernels for some ROMs), disable the setting called wq_power_saving.
I have the solution for random reboots. But only for those devices that reboots 4 or 5 times every day. Just open your device and disconnect the battery for 30 minits. Or also you can change the battery (confirmated it works)
negusp said:
Good thread, I'll add a couple of my tips here.
- ohmergerd, there's thousands of ROMs for the G4! Which ones are the best???? Nearly every single ROM for the G4 subtracting perhaps GZR ROMs and RevivorOS/optimized stock is LineageOS based (Invicta is basically Lineage with MM kernel blobs and faux/OMS integrated). There's basically no performance differences, just feature differences based on the discretion of the dev.
- If heating is STILL an issue for you, disable the 4 big cores. There isn't a significant difference in everyday use- the LITTLE cluster handles the UI and basic apps anyway.
- Haven't noticed notification bar lag since the 7.1.2 builds. If you have lag (depending on your ROM), using blur or transparency helps trick your eyes into seeing no lag. If lag persists, force enable scrolling cache and speed up the animations.
- If you have a custom kernel and your RAM usage isn't an issue, disable KSM, Adaptive Memory Killer, and/or ZRAM and Kernel Adiutor/EXKM. While useful if you let your memory use skyrocket, if you are conservative in your memory use these memory killers just suck up CPU cycles.
- Build prop tweaks/L Speed/HEBF don't work. Completely placebo, except for governor tweaks.
- USB-OTG is great, I recommend getting a dongle if you're a flashaholic. Much easier and quicker to simply plug in your USB to flash instead of plugging in your phone, transferring the ROM, flashing, etc.
- Use a trickle charger, and save that fast charger for emergencies (camping, flights, etc.).
- Disable a bunch of Google's **** in settings- I advise going through Activity controls as Google takes snippets of keyboard input, voice, web history, video history, etc. This adversely affects battery life especially if you have a weak signal, as Google Play Services continuously attempts to push through their telemetry data. This is also why you get 2hrs of SoT after a clean flash.
- On stock-based ROMs (to eliminate lag), boot the ROM once, then reboot to recovery and flash the latest Aroma GApps package with the apps you want. Then, mount /system, and start deleting all apps in /system/app or /system/priv-app that begin with "3c". This effectively removes Motorola updates and telemetry, and also updates your GApps- the stock GApps are very old, and updating them caused Play Store errors and miscellaneous battery sucking services.
- Mr. Shield Protectors suck. Badly cut-out, misaligned, etc.
Click to expand...
Click to collapse
Thanks for the tips.
Using Root explorer I deleted the 3c stuff and updated the Gapps via Aroma installer (never knew this Aroma version existed).
Where do I find the Activity controls thing?
bluegrass55 said:
Thanks for the tips.
Using Root explorer I deleted the 3c stuff and updated the Gapps via Aroma installer (never knew this Aroma version existed).
Where do I find the Activity controls thing?
Click to expand...
Click to collapse
It's in settings>Google, first 3 menus iirc.
i just had to unroot, re-lock my boot, and flash the latest firmware because someone has been hacking my phone. I purchased a Samsung phone and been switching the SIM between phones. I wish custom ROMs were more secure, flashing every ROM available, some took longer then others. After seeing that the Samsung KNOX wasnt able to be hacked, i decided to flash your stock N package. They are yet to get in my XT-1644 since earlier after the flash.
Am i stuck on the Stock ROM or is there a way to keep from getting a rooted with unlocked bootloader, hacked?

[KB2003_11_F.13] My apps are getting killed all the time

I cannot even switch from Chrome to System Settings -> while going back with copied build number I had my browser die on me.
That makes task switching unusable.
Obvious stuff:
background app limit in dev settings is set to standard
battery optimization is always ask for apps and disabled for the whole phone
wherever I can get autostart app to be toggled enabled I do and I think it works but not for system apps like Chrome or Maps…
Any ideas? I'm extremely frustrated.
Have a good one!
Developer options>standby apps
Are all buckets showing as active? If not global power management is enabled. However it can't be disabled here. It will be found somewhere in power management.
blackhawk said:
Developer options>standby apps
Are all buckets showing as active? If not global power management is enabled. However it can't be disabled here. It will be found somewhere in power management.
Click to expand...
Click to collapse
not seeing it really, please see the only area that seems related to me
Fun fact: I found I'm low on storage and RAM boost was disabled. Freeing space and rebooting seemed to improve behaviour a little. Still, with 8G RAM even without RAM boost I wouldn't expect as much killing. Or am I wrong?
Try using the search feature in settings to find it if you have that option.
Yup, tried that and there were no results.
Surprisingly after RAM boost switching even with it off killing dropped a lot… so maybe that was some leftover from an upgrade of 12 to 13?
So… "solved", sort of.
panaut0lordv said:
Yup, tried that and there were no results.
Surprisingly after RAM boost switching even with it off killing dropped a lot… so maybe that was some leftover from an upgrade of 12 to 13?
So… "solved", sort of.
Click to expand...
Click to collapse
12 is a mess... 13 seems to be tripping down the same gravel road as well. Stupid Gookill, their best is behind them.

Categories

Resources