yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] msgfromside3:
For those of you who believe there is severe memory leak in 5.1, can you provide a screenshot for this? You can find it from developer options. I think this will give better idea than the app mem consumption screenshots, which I personally find useless for the debate.

Fyi, I have over 207 hours of uptime on my n5 stock only with Franco kernel r75.

BTW, make sure you check on "show system" and set the duration to 1 day, which is the max. It will be interesting to provide the screenshot from the screen when you touch on the bar graph. I don't see any strong indication that my phone is experiencing the memory leak, but it will be interesting to see how it looks like for those of you experiencing the leak.
[Nexus 5 General] osi13:
I'm not sure what you're talking about. 5.1 is a lot smoother than 4.4.4. My gf's iPhone 5s on 8.3 is about as smooth as my Nexus 5 on 5.1 and my Nexus 4 is smoother than my iPhone 5 on 8.1.2. Also, if you didn't do a factory reset, it's likely your problem.
[Nexus 5 General] markdapimp:
Android 5.1.1 will soon arrive for the N5, lets see if google has fixed it in 5.1.1_r3 (LMY48B)
[Nexus 5 General] kicksilver:
No N5 has seen stock 5.1.1 yet.
[Nexus 5 General] msgfromside3:
Sorry, I have N7 as well and that and this thread's subject line confused me. Corrected in my original message.
[Nexus 5 General] frigidazzi:
I can't make it a day before everything starts closing. Maybe my problem is just not rich ram for the amount of stuff I do? Everyone says 2gb is enough though.
[Nexus 5 General] and313:
Lol... You work at google?
[Nexus 5 General] markdapimp:
Why yes I do, I'm one of those who browse around XDA praising on how great iOS is and how Android needs to change.

Open your ..... Eyes.

There are many Nexus 5 users running 5.1 not experiencing the leak, it's just there are also a bunch of users who experience the memory leak (I myself seen it with my own eyes)
[Nexus 5 General] and313:
Yes and uninstalling apps that dont "cause" memory leak wont achieve anything. Install a completely stock rom and see what happens

After a day or so.. It just gets sloooow........

Sorry i jumped on you but the os is the problem
[Nexus 5 General] markdapimp:
OS is the problem, but not everyone will experience the leak

http://xdaforums.com/showpost.php?p=60779397&postcount=394

http://xdaforums.com/showpost.php?p=60771923&postcount=393

My leak test video below:

https://www.youtube.com/watch?v=Iu8r9EQ7N-g

If you DO NOT swipe away the app from the muli-tasking view it won't leak, if you do.. it'll leak
[Nexus 5 General] rolldroids:
Memory states of my devices with 24h setting:

Nexus 9, Android 5.1.1

1d1h normal

32m moderate

32m low

1h1m critical

Nexus 4, Android 5.1

24h normal

Nexus 7 2013, Android 5.1

23h normal

Nexus 7 2012, Android 5.1

24h normal

-> Nexus 9 does not work correctly. Moderate state should never occur, or max for one second or so!

---------- Post added at 06:43 PM ---------- Previous post was at 06:38 PM ----------

Oh I forgot to mention that I did not swipe out an app. My n9 waited at home while I was away this weekend. And, it has about 600 MB system RAM usage directly after booting. All other devices start with about 300 MB.
[Nexus 5 General] msgfromside3:
Are you experiencing so-called memory leak with N9? I don't think I am for my N5 (not much different from even KK in terms of things getting slower after a long uptime), and my N5 shows 51 min of Moderate memory state. I have HTC One M8 GPE that I don't use often but left it on (has very similar apps & background services though) and it doesn't show any moderate state. I don't know what it means by "moderate" though. Not much is said here, either.

http://android-developers.blogspot.com/2014/01/process-stats-understanding-how-your.html

So I cannot figure out which process is classified as "moderate". I do really hate it when there is no deeper tech doc is not available. It goes the same for Microsoft and Google.
[Nexus 5 General] rolldroids:
I have moderate, low or critical state for long periods of time and during this time nearly every app needs to reload. It is not for one process, but a systemwide state.
[Nexus 5 General] deepak21:
Please don't mind ..... but you cannot be a Googler as they're not allowed to talk or comment about any internal updates...
[Nexus 5 General] markdapimp:
the sarcasm is strong with this one
[Nexus 5 General] alexiuss:
For a moment I thought he was Sheldon Cooper.
[Nexus 5 General] NickFe:
No, it's not. Unless the garbage collector frees memory, it remains locked and cannot be used by other processes/system. From what we have seen, it's not that the GC is delayed and at some point memory is released. The only way to do it is rebooting. If the GC is not doing what it is supposed to, this doesn't make this bug any different than a memory leak or whatever you want to call it.
[Nexus 5 General] j3poii:
Less than 24 hrs. I had to reboot when my gn5 was running lollipop. Since I reverted to 4.4.4 it runs like iOS. The status says 365 hrs. of uptime. Buttery smooth uptime.
[Nexus 5 General] californicated:
If you wanted, you could easy achieve thousands of hours uptime with 4.4.4.

For myself, I'm playing a little game right know. If the memory leak hits my phone before the 5.1.1 factory image is released, I'm going back to KitKat until M is released or the N5 gets sold.
[Nexus 5 General] capt_f0r3st:
I tried latest rastapop and now I am on optipop and both roms don't have memory leak. I tried farm heros saga test. Are there any other apps that cause the same leak as farm heroes?
[Nexus 5 General] ChrKu:
So with the 5.1.1 ota installed, the memory management seems to be fine so far. Starting Farm Heroes Saga and swiping it away doesn't increase the ram use of the system. Let's keep our fingers crossed.
[Nexus 5 General] jlmcr87:
Confirmed, memory leak fixed in LMY48B
[Nexus 5 General] Isus <3:
How is it confirmed? It may be solved for you but not for others since many people experience this bug and some of them don't. We need changelog
[Nexus 5 General] Kotaless:
First, how it's start

Second, when I opened 20 apps

Third, when I swiped away

So I can say it's so much better. But when I opened 20 apps and want to pass older apps, some apps restarting.
[Nexus 5 General] renton82:
Just Flash 5.1.1 ota update... finger crossed! ;)
[Nexus 5 General] jlmcr87:
Because it´s confirmed by me. Passed the farm heroes saga test. But please tell me how it isn´t confirmed by you? speak less and test more.
[Nexus 5 General] Isus <3:
For me it was fixed when i flashed cyanogenmod 12.1 5.1.1, while for others it was fixed back in Android 5.1 and my friend still has this issue in Android 5.1.1 on nexus 4
[Nexus 5 General] jlmcr87:
Congratulations but this thread is about nexus 5 not nexus 4.
[Nexus 5 General] Isus <3:
Well I know but still...
[Nexus 5 General] anshmiester78900:
So now no one is gonna cry that we got the update first (b4 N6) ? There is always a huge cry when we dont get the update on the 1st day :p
[Nexus 5 General] jlmcr87:
Also nexus 4 image is stil LMY47.........is older than the nexus 5 LMY48, that could explain the things.
[Nexus 5 General] borgsta:
That's not exactly confirmation but is a very good sign
[Nexus 5 General] kicksilver:
Good signal.
[Nexus 5 General] hasdroid:
Deleted
[Nexus 5 General] renton82:
Seems ok now! When apps need memory, system ram decrease, before this update, once system ram increased, newer drop down! :D
[Nexus 5 General] Edge330:
Wait more few days, with 5..1 I also didnt notice bug during first day.
[Nexus 5 General] NoteboyTech:
My stock nexus 5 rooted..
[Nexus 5 General] renton82:
I also did the farm heros saga test, than i swiped away many times many apps, it's ok!
[Nexus 5 General] markdapimp:
Bout time Google got their Sh*t Together.
[Nexus 5 General] zerosum0:
24 hours on 5.1

SENT BY ENTANGLEMENT
[Nexus 5 General] zerosum0:
For some

SENT BY ENTANGLEMENT
[Nexus 5 General] TrieuHuan:
Sometimes on LMY48B
[Nexus 5 General] markdapimp:
And so it begins...
[Nexus 5 General] Shaky156:
Try opening 20-30 apps, the system slows down, issues still there?
[Nexus 5 General] markdapimp:
I think that's normal, does it solve itself after awhile?

if it does that means the GC is doing what it's supposed to.
[Nexus 5 General] Shaky156:
It doesn't solve itself, system crawls, stutters etc, like GC isnt working or may have wrong parameters
[Nexus 5 General] borgsta:
So you have to reboot to get it back to working like a decent phone?
[Nexus 5 General] markdapimp:
I'll try and see if I can replicate it on another video.
[Nexus 5 General] darthanubis:
No issues here.
[Nexus 5 General] Jakeuten:
Much better than before. 5.1.1.
[Nexus 5 General] Shaky156:
That is correct, also everyone that's uploading pictures, you want to upload the cached process page, not running services lol

On mines

Used .91GB

cached 743MB

Free 161MB

EDIT: got it to 49MB, system shows stuttering and slowdowns
[Nexus 5 General] markdapimp:
I'm unable to replicate your test also that looks normal since 0.7GB is cached (Ready to use when needed)
[Nexus 5 General] fuarkgl3:
I never had this issue:

5.0 Cataclysm + franco kernel r70

5.1 Cataclysm + elementalx

5.1.1 Cataclysm + franco kernel r75
[Nexus 5 General] Shaky156:
I think people are getting confused? As far as I am aware, cached is not reserved.

Heres more indepth information on memory:

MemTotal: 1900556 kB

MemFree: 41908 kB

Buffers: 1092 kB

Cached: 238412 kB

SwapCached: 0 kB

Active: 1214392 kB

Inactive: 134628 kB

Active(anon): 1117252 kB

Inactive(anon): 23652 kB

Active(file): 97140 kB

Inactive(file): 110976 kB

Unevictable: 1468 kB

Mlocked: 0 kB

HighTotal: 1158144 kB

HighFree: 2408 kB

LowTotal: 742412 kB

LowFree: 39500 kB

SwapTotal: 0 kB

SwapFree: 0 kB

Dirty: 12 kB

Writeback: 0 kB

AnonPages: 1115652 kB

Mapped: 235356 kB

Shmem: 25252 kB

Slab: 48416 kB

SReclaimable: 16308 kB

SUnreclaim: 32108 kB

KernelStack: 16864 kB

PageTables: 31148 kB

NFS_Unstable: 0 kB

Bounce: 0 kB

WritebackTmp: 0 kB

CommitLimit: 950276 kB

Committed_AS: 60239268 kB

VmallocTotal: 245760 kB

VmallocUsed: 88532 kB

VmallocChunk: 75648 kB

EDIT: Here is more information:

<4>[18460.768164] to free 58376kB on behalf of 'PackageInstalle' (917) because

<4>[18460.768167] cache 184192kB is below limit 184320kB for oom_score_adj 1000

<4>[18460.768169] Free memory is 5828kB above reserved.

<4>[18460.768171] Free CMA is 0kB

<4>[18460.768172] Total reserve is 44296kB

<4>[18460.768173] Total free pages is 41728kB

<4>[18460.768175] Total file cache is 209436kB

<4>[18460.768176] GFP mask is 0x220da

Anyways Ill go back to custom rom, as the issue does not exist on some custom roms.
[Nexus 5 General] luckana:
Memory leak seems to not have been totally fixed i guess :(
[Nexus 5 General] pfmiller:
It is easy to get confused with Android memory. For instance you are showing kernel memory stats. The Linux kernel has no concept of a cached process, so when Linux refers to the cache in memory it is talking about a cache for filesystem data. The Android runtime OTOH handles your apps and it has running apps and cached apps. The cached apps are still running from the kernels perspective though and the memory they are using is reserved for them, while to the runtime cached apps are available to kill to free memory at any time.

---------- Post added at 01:43 AM ---------- Previous post was at 01:40 AM ----------

I don't get it, what's the problem this is supposed to show?
[Nexus 5 General] markdapimp:
Have you forgotten how Android works?

Attached KK Vs Lollipop

Stop checking the running tab and continue to use your phone...

Check back after awhile, that 616MB will go down when things aren't as busy.
[Nexus 5 General] Shaky156:
I agree with that. I think we were talking about different things.

Kernel stat is showing total mem taken, and total mem free, which is the same on android os running apps menu. The kernel is freeing memory when low, but once you reach low memory, the whole system stutters, wiping cached apps away or rebooting is a temp solution.

Edit: The GC should free memory before reaching low memory that makes apps load slow and stuttering etc

Edit2: im not speaking of leaked memory, just many apps loaded slows the OS
[Nexus 5 General] Sivabalan:
Stock Android lillipop 5.1.1 with franco kernel doesnt shoe any sign of memory leak!!

Hi All,

I am running stock android 5.1.1 with franco kernel for last 6 hours and still my free memory is 1 GB to 1.1 GB. I have isnatlled around 70 apps. Also I use greenify to stop unwanted processes. I didnt the same when I was with stock kernel but the free memory was 750 - 850mb. Please tell me whether the memory leak is somewhat fixed in the latest android relase for nexus 5.

Regards,

Sivabalan K
[Nexus 5 General] markdapimp:
"You keep measuring free RAM which is pointless. The memory leak was about system going up way too high and thus not allowing apps to stay loaded. These apps would then restart constantly." [MENTION=3101472]borgsta[/MENTION]

http://xdaforums.com/showpost.php?p=60894136&postcount=1290

The memory leak has been fixed, stop looking at the running tab.

Ever since Google placed it there, people are more concerned.
[Nexus 5 General] droid@xda:
When memory consumption by system goes up, free memory shown to us also starts to reduce. Like in my case, it always comes down from 1GB to ~400MB in 2 days. So, he is right.
[Nexus 5 General] markdapimp:
If only Android was well optimized for low end devices and ram like Windows Phone...
[Nexus 5 General] borgsta:
Well he is only right if system memory isn't going up. Free memory being low isn't necessarily a bad thing.
[Nexus 5 General] droid@xda:
Its pretty obvious that by free memory not going down, he means system memory is not going up (based on what circumstances we are talking). Sometimes, we just have to assume things without taking or expecting each world literally.
[Nexus 5 General] nomancoolboy:
41 hours of uptime and 1.1GB Ram free . only about 374mb used by system
[Nexus 5 General] kicksilver:
Don't go by the free ram.

Watch system ram only.
[Nexus 5 General] nomancoolboy:
But i iz a noob ?
[Nexus 5 General] -Koze-:
nexus 5?
[Nexus 5 General] nomancoolboy:
Of course nexus 5 . [emoji1]
[Nexus 5 General] UND312DOG:
All. I have a Galaxy s5 SM-G900I. Running cyanogenmod 12.1. I believe im still experiencing complete system crashes where the phone reboots. Which I believe is a memory leak problem. I usually get about 6hrs out of it, then boom.... Reboot. Most reboots occur after the phone has been asleep for a few hours. I wake it. The screen freezes, no buttons work. Then the reboot occurs. Starting to really annoy me. Any help to correct the issue would be good.

---------- Post added at 07:20 AM ---------- Previous post was at 07:16 AM ----------

I have noted the values of ram as above. I have also checked values upon coming out of sleep. The available ram after 4-6 hrs is usually 70-80mb.

---------- Post added at 07:39 AM ---------- Previous post was at 07:20 AM ----------

This is after opening a decent apps.. Sleep.. Out of sleep. Screenshot
[Nexus 5 General] bantamdraper:
You're posting in the wrong section. This one is for the Nexus 5.
[Nexus 5 General] UND312DOG:
Ahhh ****

---------- Post added at 08:39 AM ---------- Previous post was at 08:31 AM ----------

And chance a mod can move this over to the correct section.
[Nexus 5 General] NoteboyTech:
What do you mean with this? Leak solved?
[Nexus 5 General] Rufufu:
It is starting to be really annoying. Please all consider cached as free ram and please stop talking about memory leak.

The best hint to memory leak is system ram usage higher than 700 Mo for more than a few hours. Even this does not necessarily mean a memory leak
[Nexus 5 General] rolldroids:
Yes, cached RAM should be a high value because it is available for resuming old stuff or for new if needed. About 300 MB system usage is fine and all my devices that have about 300 run well. But IMO more than 400 is not normal.
[Nexus 5 General] kicksilver:
Absolutely normal.

Enviado do meu Nexus 5
[Nexus 5 General] alasgalux:
Here is normal as well, no UI redraw, battery lasting more than before too.
[Nexus 5 General] droid@xda:
15 hours of uptime including 10hrs sleeping. System RAM usages up from 360MB to 620MB.Not quite satisfied.
[Nexus 5 General] luckana:
same. system got to 750mb at the 28 hour mark and i rebooted the device. Started noticing lags in the app drawer animation. And people tell me i don't understand how android works, how ram is used etc. I may not understand how android works but i understand that sth is clearly wrong with this operating system. Free ram, wasted ram, bla bla. bullsh*t. Just bullsh*t. I am still rebooting the device i paid 350 dollars for every day. I am still unable to use the camera, the flashlight and the list goes on.I was through

Edit: You know, some people are doctors, some are taxi drivers, some clean sh*t for living. The guys at google should get remuneration for fixing bugs and developing something that is appreciated right ? And what do they do ? Here i am, a dissatisfied consumer, standing in front of a pc, being able to do nothing but complain. Deduction made - case hopeless
[Nexus 5 General] doctor_droid:
For the same problem i switched back to kitkat yesterday wid xposed.. System is rock solid..superb battery again (no wifi bug and mobile radio active non sense battery drain, no flashlight bug)

I understand lollipop is a big update and wid new codes comes new bugs..but being an end user m nt ready to face the beta bugs...

I easily get 6hrs sot (i only use Edge) on kk but on lollipop i hardly touch 4.5hrs even on 2g.
[Nexus 5 General] opssemnik:
the memory leak isn´t device specific guys, it will not be fixed untill we see commits fixing it on aosp (aosp.changelog.to), ofc some people will not notice, others will.

So you don´t need to keep going back to stock once a new update comes out, see its changelog first.

Just a tip so you guys dont get your hopes up everytime an update is released(by update i also mean a new tag of aosp)
[Nexus 5 General] and313:
Man this makes me wanna go back although i get almost 5hrs on l
[Nexus 5 General] capt_f0r3st:
I have found out an interesting thing. When using latest LMY48B chroma, the leak is gone (farm heroes saga test does not increase system ram). But when I changed to ElementalX kernel, the leak is there :(( really strange.
[Nexus 5 General] dox81:
Ok, the recap of the thread:

On 5.1.1 the memory leak is gone on stock rom & stock kernel. Uptime in the screenshot: 16 hours.

Custom kernels are not updated yet with latest google commits and binaries. So stop complaining if you are not using stock everything.
[Nexus 5 General] kicksilver:
16h not enough time

Enviado do meu Nexus 5
[Nexus 5 General] dox81:
I had 40, and ram was still at maximum 350-400mb.
[Nexus 5 General] dramake:
Mine is now with 38h uptime and 300Mb system memory used.

But anyway, I never found or noticed about the leak before with my N5.
[Nexus 5 General] ChrKu:
I'm at 88 hours. It is definitely fixed on stock rom.
[Nexus 5 General] rolldroids:
I dont think that your system RAM usage is OK. I have got much less on my n4
[Nexus 5 General] fix-this!:
i use xposed and the memory leak module anyways. i do know the latest ota really boosted my lte signal on tmobile though.
[Nexus 5 General] kraehetest:
I have the same exact problem. I use Franco's kernel. After 36 hours, I had over 700 MB system RAM.

I'm going to try the stock kernel. I think the problem is kernel related.
[Nexus 5 General] kicksilver:
66h, 370ish MB

N4 has 720p display.

Requires less RAM for graphic rendering

Enviado do meu Nexus 5
[Nexus 5 General] capt_f0r3st:
Same happend to me. Latest Chroma ( which I think uses stock kernel) and system 300-400 mb. After flashing ElementalX, system ram started to increase. We need to wait for custom kernels to be updated, I hope it will be soon.
[Nexus 5 General] rolldroids:
I recorded about 2 mins video in highest resolution with my n4 and uploaded with YouTube app. While doing this system RAM usage exploded to 1,6 GB in a few seconds. Was not able to repeat the problem yet. Im on 5.1.1
[Nexus 5 General] doctor_droid:
Video recording is hell lot of a task...i wouldnt consider that abnormal
[Nexus 5 General] rolldroids:
It was not usable anymore and ram usage did not go back down anymore. Now im trying to do this again and recording with a second device to show the devs at google, but could not reproduce yet.
[Nexus 5 General] Edge330:
LoL!!

After 35h without restart, elementalx kernel, somebody else?
[Nexus 5 General] borgsta:
Lol use stock to test otherwise it's useless
[Nexus 5 General] snappycg1996:
So surely someone here don't reboot their phone everyday. I have the leak after half a day of use on 5.1, I want to update to 5.1.1 but only if he leak is fixed. Has anyone seen any launcher redraws yet??
[Nexus 5 General] davionlip:
No launcher redraws. Reinstalled all prior apps after flash.

I even saw system ram usage drop while looking at it.
[Nexus 5 General] kicksilver:
Enviado do meu Nexus 5
[Nexus 5 General] [hfm]:
60 hours, previously it would have been about 800-900MB by now.
[Nexus 5 General] luckana:
I can surely say that going back to ext4 and stock kernel solved the leak. God
[Nexus 5 General] zerosum0:
Francos are tested on the public.

SENT BY ENTANGLEMENT
[Nexus 5 General] edecan:
https://www.youtube.com/watch?v=pnfX6WXP_o0

EN: Nexus 5 RAM issue, we tested two different rum with two different KERNEL for that . But Google Stock KERNEL successful outcomes . Other developers kernels remained in the classroom . =)

TR: Nexus 5'de RAM sorunu, olduğu için iki farklı KERNEL ile iki farklı ROM'da test ettik. Ancak Google Stok KERNEL başarılı çıktı. Diğer geliştirici KERNEL'ler sınıfta kaldı. =)

---------- Post added at 01:50 PM ---------- Previous post was at 01:49 PM ----------

https://www.youtube.com/watch?v=pnfX6WXP_o0

EN: Nexus 5 RAM issue, we tested two different rum with two different KERNEL for that . But Google Stock KERNEL successful outcomes . Other developers kernels remained in the classroom . =)

TR: Nexus 5'de RAM sorunu, olduğu için iki farklı KERNEL ile iki farklı ROM'da test ettik. Ancak Google Stok KERNEL başarılı çıktı. Diğer geliştirici KERNEL'ler sınıfta kaldı. =)
[Nexus 5 General] BullHorn7:
My memory leak got waaaay worse with 5.1.1 and stock kernel. :(
[Nexus 5 General] snappycg1996:
Did you clean flash factory image? Or dirty? Or did you use a 5.1.1 ROM based on stock?
[Nexus 5 General] BullHorn7:
I used Nexus Root Tools to flash everything without user data.
[Nexus 5 General] wangdaning:
From what I understand kernel devs are waiting for the sources to update their kernels. Once they have them it is a matter of day (s) before they implement the fix.
[Nexus 5 General] Evo_Shift:
81 hours up time sitting at 377mb RAM useage. Running stock rom/kernel.
[Nexus 5 General] DummyPLUG:
Dunno if it really fixed or not, but at least it stay around 400mb after 78hrs
[Nexus 5 General] luckana:
i have no clue what would they update when the kernel change in 5.1.1 is nothing but a single commit :D
[Nexus 5 General] capt_f0r3st:
And are they going to update it? I know you can not know :D but I would like to use ElementalX again
[Nexus 5 General] robertusIT:
Uptime: 69h

System 580MB

App 466MB ( nothing in background )

Free 802MB

i don't know if is fixed, seems no, changelog say something?
[Nexus 5 General] zerosum0:
This is a screen grab with ElementelX after nearly two days. Looks ok. This was a factory image with the EX Kernel fkashed at the same time

This goes up and down of course. This is pretty high. I could of waited for it to drop but it is honest

SENT BY ENTANGLEMENT
[Nexus 5 General] zerosum0:
I'm using it and its fine. Posted two days. Had it from day one but its a hassle not switching the phone off.

SENT BY ENTANGLEMENT
[Nexus 5 General] robertusIT:
you have 435mb free, isn't fine for me ;) ( if you don't have any running in background )
[Nexus 5 General] Tuga2010:
141 hours of uptime , and no sign of memory leak

Enviado do meu Nexus 5 através de Tapatalk
[Nexus 5 General] Killermo:
Definitely fixed, at last Google.

Sent from my Nexus 5