Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
gzub
Old
#11  
gzub's Avatar
Member
Thanks Meter 32
Posts: 67
Join Date: Apr 2006
Location: Franklin, MA
Default Re: [Q] Nexus 10 using 1gb+ RAM at all times?

They just released the updated kernel source for 4.2.2 for the N10 and there is a change where they up the ram reserved for the GPU by 384mb. The comment says they did this as otherwise when the GPU needed more ram it would cause fragmentation of the user space ram.

Geoff

Sent from my Nexus 10 using Tapatalk HD
The Following 4 Users Say Thank You to gzub For This Useful Post: [ Click to Expand ]
 
styckx
Old
#12  
styckx's Avatar
Senior Member
Thanks Meter 995
Posts: 2,312
Join Date: Sep 2010
Sounds reasonable enough.
Current OS: Dual boot / Windows 8 & Ubuntu 13.04
Current PC i7 2600k @ 4.2GHz / 8GB Mushkin Enhanced Redline @ 1600MHz / GTX 680 Twin Frozr / P8Z68 DELUXE / 2TB/1TB/1TB
Current active devices: Nexus 4 / Nexus 10
Former devices: Nexus 7 / Nexus S 4G / Galaxy Tab 10.1 / Samsung Epic 4G / Samsung Moment
Google+ Profile: Here
 
borgy
Old
#13  
Junior Member
Thanks Meter 0
Posts: 10
Join Date: Feb 2008
Default ...uhm...

Quote:
Originally Posted by styckx View Post
Sounds reasonable enough.
After having upgraded to 4.2.2... I have the same behaviour ....ram decreased to 1.3...in total before with 4.2.1 was 1.6...something strange, if the extra ram has been allocated for gpu....why with 4.2.1 wasn't like now?...in my opinion...they didn't free up the ram after upgrading..it's just locked...
I don't see notable differences between 4.2.2 and 4.2.1.... So that strange...could it be a bug?
 
VanCatRabbit
Old
(Last edited by VanCatRabbit; 1st March 2013 at 01:17 PM.)
#14  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Mar 2013
Quote:
Originally Posted by borgy View Post
After having upgraded to 4.2.2... I have the same behaviour ....ram decreased to 1.3...in total before with 4.2.1 was 1.6...something strange, if the extra ram has been allocated for gpu....why with 4.2.1 wasn't like now?...in my opinion...they didn't free up the ram after upgrading..it's just locked...
I don't see notable differences between 4.2.2 and 4.2.1.... So that strange...could it be a bug?
The answer to why the total ram availible has decreased has been solved - Read gzub post.

Called it re-allocated, free'd up or locked, The GPU now has 800mb in 4.2.2 all to its self, where as before it had half that. So in running apps you will only see a total of around 1.2gb.

moving on...

I have a similar issue as the OP.

Sitting idle its running at around 400-500mb used but can, and often does, spike up to over a gb which causes it to not function correctly (Chrome especially seems to throw a massive wobbler and never stay open). I have nothing different installed than I have on my N7 or S3. I mainly use it for browsing, email. If I check running apps there is nothing else there above what was there when it was idling at around 400-500mb.

I have tried a factory reset and the issue still persists. Next step is to roll back to 4.2.1 to see if I can get the stability back as I didn't have these issues on 4.2.1.
 
CazeW
Old
#15  
Senior Member
Thanks Meter 72
Posts: 300
Join Date: Nov 2008
Quote:
Originally Posted by VanCatRabbit View Post
The answer to why the total ram availible has decreased has been solved - Read gzub post.

Called it re-allocated, free'd up or locked, The GPU now has 800mb in 4.2.2 all to its self, where as before it had half that. So in running apps you will only see a total of around 1.2gb.

moving on...

I have a similar issue as the OP.

Sitting idle its running at around 400-500mb used but can, and often does, spike up to over a gb which causes it to not function correctly (Chrome especially seems to throw a massive wobbler and never stay open). I have nothing different installed than I have on my N7 or S3. I mainly use it for browsing, email. If I check running apps there is nothing else there above what was there when it was idling at around 400-500mb.

I have tried a factory reset and the issue still persists. Next step is to roll back to 4.2.1 to see if I can get the stability back as I didn't have these issues on 4.2.1.
Sounds you might be suffering from the same thing as I have since I got my N10.
I don't know how many have this or has noticed it but after a while the amount of free memory just starts disappearing and no matter what you do, you don't seem to be able to recover it unless you reboot. And when the memory gets low enough, the device soft reboots itself. I still haven't found the cause of this but I have finally found where all the memory is going. It turns out that it's the surfaceflinger process that hogs the memory. I started checking when I was running low on memory and surfaceflinger was at that point using over 400MB of it. My suspicion was confirmed when I rebooted and noticed that it went down to around 25MB and now after a while of usage, it has slowly climbed to 50MB.

It would be great if some developer could take a look at this in order to try to fix it.
 
VanCatRabbit
Old
#16  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Mar 2013
Quote:
Originally Posted by CazeW View Post
Sounds you might be suffering from the same thing as I have since I got my N10.
I don't know how many have this or has noticed it but after a while the amount of free memory just starts disappearing and no matter what you do, you don't seem to be able to recover it unless you reboot. And when the memory gets low enough, the device soft reboots itself. I still haven't found the cause of this but I have finally found where all the memory is going. It turns out that it's the surfaceflinger process that hogs the memory. I started checking when I was running low on memory and surfaceflinger was at that point using over 400MB of it. My suspicion was confirmed when I rebooted and noticed that it went down to around 25MB and now after a while of usage, it has slowly climbed to 50MB.

It would be great if some developer could take a look at this in order to try to fix it.
Sorry for my ignorance, but what is surfaceflinger? I don't see anything similarly named on my device.

I've just downloaded 'usage timelines free' to monitor memory usage in more detail on all my devices and compare.

I'll try to update if I see anything interesting.
 
styckx
Old
(Last edited by styckx; 3rd March 2013 at 12:34 PM.)
#17  
styckx's Avatar
Senior Member
Thanks Meter 995
Posts: 2,312
Join Date: Sep 2010
Quote:
Originally Posted by VanCatRabbit View Post
Sorry for my ignorance, but what is surfaceflinger? I don't see anything similarly named on my device.

I've just downloaded 'usage timelines free' to monitor memory usage in more detail on all my devices and compare.

I'll try to update if I see anything interesting.
It's a system process out of /system/bin/. Check your app to see if it's hiding system processes. Most of the process viewing apps/loggers hide system processes by default.

SurfaceFlinger is Androids compositor: http://stackoverflow.com/questions/5...surfaceflinger

SurfaceFlinger shouldn't stay open though. Everytime I've seen it in OS Monitor the process lasts less than a second and disappears. Something he's running, or the ROM he's using is keeping it open for whatever reason..
Current OS: Dual boot / Windows 8 & Ubuntu 13.04
Current PC i7 2600k @ 4.2GHz / 8GB Mushkin Enhanced Redline @ 1600MHz / GTX 680 Twin Frozr / P8Z68 DELUXE / 2TB/1TB/1TB
Current active devices: Nexus 4 / Nexus 10
Former devices: Nexus 7 / Nexus S 4G / Galaxy Tab 10.1 / Samsung Epic 4G / Samsung Moment
Google+ Profile: Here
 
CazeW
Old
(Last edited by CazeW; 3rd March 2013 at 11:40 PM.)
#18  
Senior Member
Thanks Meter 72
Posts: 300
Join Date: Nov 2008
Quote:
Originally Posted by styckx View Post
It's a system process out of /system/bin/. Check your app to see if it's hiding system processes. Most of the process viewing apps/loggers hide system processes by default.

SurfaceFlinger is Androids compositor: http://stackoverflow.com/questions/5...surfaceflinger

SurfaceFlinger shouldn't stay open though. Everytime I've seen it in OS Monitor the process lasts less than a second and disappears. Something he's running, or the ROM he's using is keeping it open for whatever reason..
I noticed it with the "ps" terminal command. Currently I'm running Aokp but before that I was running stock. I'm suspecting the aosp browser or flash being the cause but I can't confirm it.

EDIT: surfaceflinger is shown in OS Monitor all the time but with ps I can see the amount of memory it is using.
 
VanCatRabbit
Old
(Last edited by VanCatRabbit; 6th March 2013 at 11:04 PM.) Reason: correction
#19  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Mar 2013
After some monitoring I found nothing. I did a full refresh install of 4.2.2 from the factory image and have installed nothing on top other than applying updates for what comes as standard. After two days of browsing it started to slow down again and show as low memory. I installed a terminal and ran 'PS surfaceflinger', it was showing as using over 600mbs. Stupidly I didn't take a screen dump, but I imagine it will happen again.

Anyone able to shed any light on what's going on here?
 
Trent8381
Old
#20  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: May 2013
Default Having the same issue

I too have seen surfaceflinger using almost 600MB of RAM. My used RAM was over 1GB and apps were running very sluggish. My SwiftKey keyboard constantly does a soft restart in the middle of typing when the tablet is in this state as well as other apps acting as others have described in this thread. Time for a fix Google!

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Jolla Sailfish OS Flagship Device Makes First Appearance

Given the amount of coverage that Android receives around here, you could almost be … more

XDA University: Porting ClockworkMod Recovery to New Devices

Having a good recovery makes the process of modifying, tweaking, maintaining, … more

One Stop Guide Shop for the Newbie and Dev

It’s been well established that XDA-Developers isthedestination for resources relating to … more

What Happened at Google I/O 2013 – XDA Developer TV

Unless you just emerged from a deep, dark, dank cavern under the Earth, you know … more