I'm playing rr3 now for years on my HDX7 and the 'out of memory' problem was always with us, starting with CM11 and growing over the time, because the game become bigger and bigger with every update.
I started to free up memory as much as possible by installing only the minimum of apps (nano gapps) and deactivating unnecassarcy system apps, but nothing helped.
Playing with the Low Memory Killer and setting it to 'very light' in Kernel Adiutor helped for some time.
With the latest update to LineageOS 14.1 from ggow [!! BIG THANKS !!] the problem seams to be controlled in rr3 V7.5.
But with the latest update from RR3 (V7.6) things become so bad, that I had to restart the game after nearly every round of lemans.
At this time I was searching the net for a way to make us of our 1GB Cache partition and by accident found a hint to my theory, that the problem with the systems garbage collection.
Here comes the solution, which is working for me now for a week without "out of memory".
Tweak 2 settings in the build.prop (Tip: Use also kernel adiutor) :
Set davlik.vm.heapsize from 512m to 256m (this makes the difference)
Set davlik.vm.heapgrowthlimit from 192m to 128m (this is perhaps not neccesarry, 64 worked also fine)
After restart, I got 1.15 GB free space on the home app. Checked with CPU Memory widget). The memory report from android settings is not real time.
After loadinng rr3, memory goes down to 580mb.
Playing the biggest course (lemans 10 laps), memory goes down to 430mb free.
Ending the 10 lapper, memory recycles to 580mb.
===> Problem solved.
Related
How much memory do you guys generally see as "available" when you first start up your phone. I generally have 160-180mb of supposedly "used" memory. This is after a root and almost all possible bloatware being removed. Normally I would just figure it'll be freed up when I need it but I have had such issues playing Dungeon Defenders which is memory intensive. Sometimes it plays smooth as a champ, other times it stutters a lot. Other times it freezes during load times.
So is all that memory available and it'll just free it when it needs it? Or is that number unusually high?
Oh also my comic book viewer will force close sometimes on some images, even with its options set to use less memory, and I don't think it takes hundreds of MB of ram to open a zipped 500kb image. Then again I could be wrong.
Memory is used differently on Android than on your PC. Just because you have 100+ megabytes of available memory doesn't mean an application can use all of it. Each app has a hard limit of how much RAM it can use, which I believe is around 16mb but differs from device to device.
If you experience issues when running a game I would check to see what background services are running at the time that could be using up CPU cycles.
I have a couple of problems which I want to fix. My system is 1.9.1 + perfmod +
up to 1,11 GHz.
First of all is the Cut the rope game. I'm getting continual freez at the end of every level after cardboard box with the message in system log: Exception! thread id=11: thread exeteng with uncaught exception (group=0x4001d888) and previous that can be the cause - failed to map the memory for fd=37 offs=7774208. I'm using version with perfmod. Original 351 firmware also has problems with this game (but I have no logs from it).
I've found that this game works stable only with 318 stock rom. 351 stock rom, 1.9.0/1.9.1 update of 351 or 318 rom with/without perfmod - made this game practically not playable. But has no sign on other bugs.
I've managed to solve the problem in Cut the rope by using 16 bit colour setting in chainfire. But do not know the normal solution.
The second is the problem with Juice defender. If I use it the system comes unstable and laggy. If I use tunable settings it comes fully unstable, inspite of my understanding of every setting.
And the last - my system was stable for some days but after I tried to use Juice defender my phone began to reboot continiously. Can I define the reasons of reboot somehow?
UPDATE
The problem with Juice defender/reboots was solved by reflashing firmware.
The problem with Cut the rope is appared to be the problem of memory heap size. Inspite of the max heap size of 64 mb the reaching of the 16 mb size cause an error of subsequent memory allocation. If I change start heap size to 20 mbytes the game working properly. But I don't think this is right, because it can lead to memory overflow by the apps that need few kilobytes of memory but getting 20 meters instead.
UPDATE
The problem with the game was fixed by applying the change of min heap size once without saving. So it IS the solution, but strange.
[Q] Free ram 0.0bytes android 4.1.2 [low memory msg for all apps & frequent crash]
Hi!
I bought iball andi 5li android smart phone a few days back. The configuration of the phone is:
512mb ram
4gb internal
1.2ghz cortex a9 processor
android 4.1.2
Although my device runs almost every app out there (including temple run, subway surfers etc.) but occasionally im facing problems.
problem occurs after 3-4 days of restarting the phone.
when i restart and check the ram usage it says 350 mb (approx) as used and 150mb(approx) as free ram every app runs smoothly but as days pass by gradually the free ram starts decreasing down to 30 mb where all the apps (games and browsers) start crashing with a low memory message. then the conditions get worse after approx 2 hrs free ram is now 0.0 bytes and even the launcher,settings etc crash with a low memory message. The only solution out is to restart the phone.
[used androids before and is quite aware of closing or killing apps but none is working]
Already Tried:
# removing apps from recent list
# stopping apps from Setting>apps>running apps & cached apps as well
# restoring to factory defaults
# used ram freeing apps (no change on ram)
Well just like on PCs if you keep your phone running for quite a while a lot of dead apps will fill your RAM and reduce performance, the workaround as you know it is restarting your phone.
I don't know that how this can be permanently solved. I myself restart my phone after one or two days.
Regards,
RaHBeR
Sent from my A2 using xda premium
One of your main issues is that your ram is the min to even run Android. With 5.0 they are supposed to optimize it for devices with low ram. Not a whole lot you can do right now.
Wayne Tech Nexus
a little fix
it is a common problem with all low ram devices
root your phone and install greenify (or maybe greenify pro with xposed framework ) and hibernate those apps that are using the ram on your device u will get much more free ram now explore around a bit
Hello everyone,
I don't know if there is any mention of this problem anywhere or it's been a common issue for Huawei devices, so please link me to the thread if there is.
So my Mediapad M5 has 4GB of RAM. Normally after a restart, there is about 2.5GB of free RAM presented. But after a couple of days of average usage, the free RAM starting to decrease. This is expected of course, but when the RAM decrease to about 500MB, the tablet becomes unusable. Apps couldn't be opened, current running apps constantly restarted and lagged. I tried to use the Tablet management app (come with EMUI) to optimise the system, but the problem still exists,and the RAM is still at 5-600MB.
I also tried to close all of the services in the Running services from the Developer option, but still, the "System processes" still took like 3.5GB of RAM, and with no other services or app running (not of I aware and the setting displayed), like in the screenshot I took:
drive.google.com/file/d/1ix27K_GjOahWLr-09U5Lfizn2vXbf_fE/view?usp=sharing
(Sorry I can't parse the image here, but here is the Google drive link)
I also tried to reset the tablet and install only some apps to test it, including Rotation manager, Netflix and VLC, and use them at normal rate. After a couple of days, like 4 days, the problem arises, and the only solution for me is to restart the device.
I also tried the option to Manually/Automatically manage apps launching in the Battery manager, but the problem still persists.
Is there any option that I haven't known of or haven't tried? The device works great until it's running out of RAM, and it seems like it don't know how to release them. Or maybe there is a leakage problem, I don't know.
Thank for reading! Have a nice day.
Editted: I'm in EMUI 9, Android 9, non-rootted
For reference, phone is on lineageos android 8.1, has 2gb of ram (1807mb to be exact). I currently have set zram at 256mb.
From monitoring personal usage, android straight up uses 1gb of ram (it goes as low as 900mb after internal app force kills, and as has a 1.2gb after opening some light apps but no internal app force kills).
For example, I know that if I play pokemon go, it will sometimes kill running background apps (like afwall and betterbatterystats), despite having 'enough ram'.
What I mean by this is, before launching pgo, the os with everything running normally (example- tasker, afwall, betterbatterystats) ram usage will be at 1gb.
After pgo launches, the game will use ~600mb of ram. This should leave a safe 200mb of free ram. However, any time I switch out of the game, android will kill the app despite ~200mb ram is free.
Playing pgo will also sometimes background apps as I mentioned, but it feels completely random. I could be doing the same stuff for 10 mins and it will kill the apps, but sometimes, I could be playing for 20-30mins and no background apps are killed.
I've played around with the LMK settings a bit, and I admit I don't understand the settings despite reading on the little, outdated documentation on it.
I don't know if the 256mb zram counts as reserved/invisible ram, but I did set it at 0 and didn't feel a difference.
I also tried the 'ram management fix' magisk module and again, didn't feel a difference.
tldr - How do you properly set LMK and zram settings. From personal usage, android seems to never use the last 200mb of ram for me and starts killing apps despite having ~200mb of free ram.
My answer may no longer serve you, but I hope to help other people.
As you already mentioned, the lmk cleans several applications before reaching that limit (minfree 200mb) the higher the number ... the more applications it removes, although drastically reducing the values would cause a ram saturation and give performance problems. I recommend that you put these values 9806,14136,17848,21560,24448,28278 and 1gb of Swap by default for 2gb of ram