Android 10 - kernel memory leak bug

talexop

Senior Member
May 4, 2005
674
1,217
123
I have note 10+ exynos. The leak appeared when updated to Android 10 with Android 9 I have no issues. When kernel memory increase I have lags especially when I try to use the camera the phone is not responding at all!

You can find also other discussions for this problem to below links!

https://us.community.samsung.com/t5/Galaxy-S10/Lag-after-Android-10-Update/td-p/1025231

https://www.reddit.com/r/galaxys10/...ound/?utm_medium=android_app&utm_source=share

I have noticed the same memory leak. Right now I am trying to find the culprit! I logged kernel memory for 3 days. What I noticed is that memory leak occurs during the night when I charge my phone. See attached graph. First day I did not charge my phone, the others two I did and you see how it jumps around 1GB during charging time. The log is every 30 min.

https://imgur.com/a/JwxOz8i

When I first boot the device kernel memory is around 700mb which seems ok! After some days of use kernel memory jumps to 2.5-3G!

*

*


Στάλθηκε από το SM-N975F μου χρησιμοποιώντας Tapatalk
 

raul6

Senior Member
Jan 26, 2009
878
255
98
120
Do you maybe have auto optimise and app management enabled? Thinking it might account for memory spike as some apps restart
 

talexop

Senior Member
May 4, 2005
674
1,217
123
Do you maybe have auto optimise and app management enabled? Thinking it might account for memory spike as some apps restart
I have also tried with auto optimize off and I have deleted all apps in the list but nothing changed. Please also note that the memory only refers to kernel memory.

Στάλθηκε από το SM-N975F μου χρησιμοποιώντας Tapatalk
 

zjhao

Senior Member
Jan 4, 2019
119
67
28
I have note 10+ exynos. The leak appeared when updated to Android 10 with Android 9 I have no issues. When kernel memory increase I have lags especially when I try to use the camera the phone is not responding at all!

You can find also other discussions for this problem to below links!

https://us.community.samsung.com/t5/Galaxy-S10/Lag-after-Android-10-Update/td-p/1025231

https://www.reddit.com/r/galaxys10/...ound/?utm_medium=android_app&utm_source=share

I have noticed the same memory leak. Right now I am trying to find the culprit! I logged kernel memory for 3 days. What I noticed is that memory leak occurs during the night when I charge my phone. See attached graph. First day I did not charge my phone, the others two I did and you see how it jumps around 1GB during charging time. The log is every 30 min.

https://imgur.com/a/JwxOz8i

When I first boot the device kernel memory is around 700mb which seems ok! After some days of use kernel memory jumps to 2.5-3G!

*

*


Στάλθηκε από το SM-N975F μου χρησιμοποιώντας Tapatalk
My EXYNOS 9820 S10 + is the same situation as you, but just found out that the cause is a ZRAM leak

After the ZRAM leak is full, turning on the camera will seriously lag
This situation is already a common problem in my country.

Experienced OS Beta1 before and I have noticed this

I also have a Hong Kong version of Snapdragon Note10 +, but this has not happened
Note10+ and S10+ are both updated to Android 10 / One ui 2.0
 
Last edited:

talexop

Senior Member
May 4, 2005
674
1,217
123
My EXYNOS 9820 S10 + is the same situation as you, but just found out that the cause is a ZRAM leak

After the ZRAM leak is full, turning on the camera will seriously lag
This situation is already a common problem in my country.

Experienced OS Beta1 before and I have noticed this

I also have a Hong Kong version of Snapdragon Note10 +, but this has not happened
Note10+ and S10+ are both updated to Android 10 / One ui 2.0
I will log ZRAM too... Let's see how it goes!

Στάλθηκε από το SM-N975F μου χρησιμοποιώντας Tapatalk
 

Gary02468

Senior Member
Jul 25, 2011
1,169
215
83
Is this leak only for Exynos versions? I have the US unlocked N10+ and I haven't rebooted it since the last firmware update 27 days ago (BSLD). I've been using it heavily the whole time and have not had any problems.
 

talexop

Senior Member
May 4, 2005
674
1,217
123
Is this leak only for Exynos versions? I have the US unlocked N10+ and I haven't rebooted it since the last firmware update 27 days ago (BSLD). I've been using it heavily the whole time and have not had any problems.
Could you please printscreen the OS ram usages. You can find inside the Developer settings->Memory->Memory usage->Android OS

here's the OS ram usage right after a reboot https://imgur.com/a/PVDnIU9 (this is normal, and you want this), and here's the usage after 24 hours for those experiencing a leak https://imgur.com/a/fXGIHxq

Do you have sdcard?
Activated dark mode?
Auto optimise apps?

Thanks!!
 

Gary02468

Senior Member
Jul 25, 2011
1,169
215
83
Sure, hope this proves helpful. SD card: yes (encrypted). Dark mode: yes. Auto-optimize: yes.
I don't have the screenshot uploaded anywhere, but the stats are: ave mem usage 5.3GB, freq high (100%), max mem usage 5.3GB, kernel 2.6GB/high (100%), native 2.4GB/high(1005), caches 184MB/high(100%). That's higher than your memory-leak stats, but I'm not seeing any lag (with plenty of RAM still free, I'm not sure why any problems would be expected).
 
  • Like
Reactions: talexop

talexop

Senior Member
May 4, 2005
674
1,217
123
Sure, hope this proves helpful. SD card: yes (encrypted). Dark mode: yes. Auto-optimize: yes.

I don't have the screenshot uploaded anywhere, but the stats are: ave mem usage 5.3GB, freq high (100%), max mem usage 5.3GB, kernel 2.6GB/high (100%), native 2.4GB/high(1005), caches 184MB/high(100%). That's higher than your memory-leak stats, but I'm not seeing any lag (with plenty of RAM still free, I'm not sure why any problems would be expected).
Thanks for the info! Maybe I use more ram than than you.. I dont know. If you want to check you can use fill ram memory tool and click fill full ram. For example now that I am after reboot and kernel ram is low the tool could fill up to 7.5G before it crashed... If the kernel ram is high I cannot go over 2-4G even worst in some situations.
It a pity to have 12G and still have memory issues!

Στάλθηκε από το SM-N975F μου χρησιμοποιώντας Tapatalk
 

Gary02468

Senior Member
Jul 25, 2011
1,169
215
83
Maybe I use more ram than than you.
Dunno. I use the usual range of apps: social-media, maps & navigation, web browsing, camera, video-streaming, etc. (not much gaming though). Sorry, no time right now to try the RAM-filling tool. My sympathies--sounds like a frustrating problem.
 

talexop

Senior Member
May 4, 2005
674
1,217
123
Dunno. I use the usual range of apps: social-media, maps & navigation, web browsing, camera, video-streaming, etc. (not much gaming though). Sorry, no time right now to try the RAM-filling tool. My sympathies--sounds like a frustrating problem.
Thank you very much for your support! Don't worry I hope this will be fixed in next updates!

Στάλθηκε από το SM-N975F μου χρησιμοποιώντας Tapatalk
 

talexop

Senior Member
May 4, 2005
674
1,217
123
My EXYNOS 9820 S10 + is the same situation as you, but just found out that the cause is a ZRAM leak

After the ZRAM leak is full, turning on the camera will seriously lag
This situation is already a common problem in my country.

Experienced OS Beta1 before and I have noticed this

I also have a Hong Kong version of Snapdragon Note10 +, but this has not happened
Note10+ and S10+ are both updated to Android 10 / One ui 2.0
I have made a 24 hour log... You can see that kernel mem (white) is increasing during night charge but ZRAM (green) stays low... Screenshot_20200204-093040_AutoTools.jpg

Στάλθηκε από το SM-N975F μου χρησιμοποιώντας Tapatalk
 

talexop

Senior Member
May 4, 2005
674
1,217
123
Same here, zram filled to brim after 1 day 4 hrs uptime.

ps. has anyone logged a complaint using the samsung members app?
I was told by a samsung rep this will make the report go to the appropriate department faster.
I also see that swap is full after some time but the most critical issue I think is the kernel jump from 0.7G to 2.7G maybe this affects the ZRAM-swap increase!

ZRAM: 286,312K physical used for 1,112,228K in swap (2,621,436K total swap)

Based on my logs ZRAM physical used is not increasing.... But swap is indeed increasing! I will log also the swap to see if it is relevant!

Στάλθηκε από το SM-N975F μου χρησιμοποιώντας Tapatalk
 
Last edited:

p50kombi

Senior Member
Dec 20, 2005
3,964
2,147
253
I also see that swap is full after some time but the most critical issue I think is the kernel jump from 0.7G to 2.7G maybe this affects the ZRAM-swap increase!

ZRAM: 286,312K physical used for 1,112,228K in swap (2,621,436K total swap)

Based on my logs ZRAM physical used is not increasing.... But swap is indeed increasing! I will log also the swap to see if it is relevant!

Στάλθηκε από το SM-N975F μου χρησιμοποιώντας Tapatalk
have you communicated your findings using the samsung app on your phone by using the feedback button under support?

I did this for the ldac sound stutter I get at 990 kbs just now, see if it makes things move a bit faster.
 

talexop

Senior Member
May 4, 2005
674
1,217
123
have you communicated your findings using the samsung app on your phone by using the feedback button under support?

I did this for the ldac sound stutter I get at 990 kbs just now, see if it makes things move a bit faster.
I send them a feedback... Lets see what they will respond!
 

talexop

Senior Member
May 4, 2005
674
1,217
123
I have done the following changes and it seems to solve the issue, but I do not know exactly what is the culpit!!

-Updated to Latest firmware BTA7
-disabled AOD
-Enabled "show charging information" when device is charging
-remove home place from my locations in my Samsung profile ( I did this because I think the leak occurred during night charging when I was at home!! Don't know why!!!)

Last night kernel memory when up to 1.9G which might me logical. And after a memory fill kernel memory dropped down to 1.1G again. Also swap space is not filled yet!
Now I will have to start enabling one by one to find the culpit!!
 
Last edited:

p50kombi

Senior Member
Dec 20, 2005
3,964
2,147
253
I have done the following changes and it seems to solve the issue, but I do not know exactly what is the culpit!!

-Updated to Latest firmware BTA7
-disabled AOD
-Enabled "show charging information" when device is charging
-remove home place from my locations in my Samsung profile ( I did this because I think the leak occurred during night charging when I was at home!! Don't know why!!!)

Last night kernel memory when up to 1.9G which might me logical. And after a memory fill kernel memory dropped down to 1.1G again. Also swap space is not filled yet!
Now I will have to start enabling one bu one to find the culpit!!
Apart from the firmware, all those settings I had from the start and have had this issue, so my bet would be if anything, it's fixed in the firmware.