[Warning] Never set VM Heap size too low on Galaxy Note

LowDef

Senior Member
Nov 28, 2008
229
30
0
I had been playing with the VM Heap size. My note was working fine with the value of 128m and 64m. However after tried changing down to 32m the Note's re-start stuck in glowing SAMSUNG logo with no choice but to re-flash ROM.

So guys be careful playing with this tweak. I won't touch it again and leave it at default setting.
 
  • Like
Reactions: ashkan_mc
Z

zylor

Guest
I had been playing with the VM Heap size. My note was working fine with the value of 128m and 64m. However after tried changing down to 32m the Note's re-start stuck in glowing SAMSUNG logo with no choice but to re-flash ROM.

So guys be careful playing with this tweak. I won't touch it again and leave it at default setting.
I actually always put it on 128Mb to have a smooth experience!

VM Heap is the maximum memory allocated for an application to run smoothly!
 

LowDef

Senior Member
Nov 28, 2008
229
30
0
I actually always put it on 128Mb to have a smooth experience!

VM Heap is the maximum memory allocated for an application to run smoothly!


I checked VM Heap size on my stock rooted ICS last night and found that it's 256m. So I think the 128m is not optimum for Note.
 

Kanalcommander

Senior Member
Dec 6, 2009
149
17
0
I checked VM Heap size on my stock rooted ICS last night and found that it's 256m. So I think the 128m is not optimum for Note.
Just because it's the stock setting it is not said it's the best setting. If stock settings were always the best settings there would be no need for custom Roms and tweaks.

Gesendet von meinem GT-N7000 mit Tapatalk 2
 

LowDef

Senior Member
Nov 28, 2008
229
30
0
Just because it's the stock setting it is not said it's the best setting. If stock settings were always the best settings there would be no need for custom Roms and tweaks.

Gesendet von meinem GT-N7000 mit Tapatalk
Now what is the right value then?

Don't just leave everything upon the cookers settings since so far their ROMs have never been being the best.
 
Last edited:

alex3305

Senior Member
Jul 4, 2007
165
49
0
31
Tilburg
Although your thread title is right, your information can be a bit misleading.

The heap is a Java term that is used for storing application related resources into memory. For instance layouts, Java-code, strings or arrays with information. But in all versions below Android 4 (ICS), The default size an application needed was about 3MB for this. Bitmap's were placed outside the heap for some stupid reason. That's why one could get away with an heap size of 32MB or even lower. At the time this was probably a good idea because devices tended to have small internal memory (256MB or 512MB) and so Bitmap's could be swapped by the OS.

Anyway, with current devices and the current state of Android, the Bitmap's - which are a large portion of the allocated memory - are placed inside the heap. Also if you turn on to force GPU an app will use an extra of 8MB internal memory. So if you would add things up, you would at least need about 11MB for only starting the program. About 1MB for random values and quite a lot of memory for 'non-compressed' images. I guess about 16MB if your device would want to draw the entire screen without any compression with one 16-bit image! After which your app would use about 40MB of memory.

Now, take the Android launcher for example, that's an app with loads of images cached in memory. So my guess is that an app like that would use around 70 - 80MB of heap size just to run in GPU mode. This shouldn't be a problem with today's devices as we have more and more internal ram and processor speed available to use. So I think the ideal sweetspot for todays apps should be 128MB, as you could fit about ~6 apps running at once in the main memory. If you put the heap size at 256MB you could run about 3 apps at once. Including drawing.
 

kacs

New member
Aug 9, 2012
1
0
0
Hi!!

Although your thread title is right, your information can be a bit misleading.

The heap is a Java term that is used for storing application related resources into memory. For instance layouts, Java-code, strings or arrays with information. But in all versions below Android 4 (ICS), The default size an application needed was about 3MB for this. Bitmap's were placed outside the heap for some stupid reason. That's why one could get away with an heap size of 32MB or even lower. At the time this was probably a good idea because devices tended to have small internal memory (256MB or 512MB) and so Bitmap's could be swapped by the OS.

Anyway, with current devices and the current state of Android, the Bitmap's - which are a large portion of the allocated memory - are placed inside the heap. Also if you turn on to force GPU an app will use an extra of 8MB internal memory. So if you would add things up, you would at least need about 11MB for only starting the program. About 1MB for random values and quite a lot of memory for 'non-compressed' images. I guess about 16MB if your device would want to draw the entire screen without any compression with one 16-bit image! After which your app would use about 40MB of memory.

Now, take the Android launcher for example, that's an app with loads of images cached in memory. So my guess is that an app like that would use around 70 - 80MB of heap size just to run in GPU mode. This shouldn't be a problem with today's devices as we have more and more internal ram and processor speed available to use. So I think the ideal sweetspot for todays apps should be 128MB, as you could fit about ~6 apps running at once in the main memory. If you put the heap size at 256MB you could run about 3 apps at once. Including drawing.

Ok thanks .....
Im creat a video ok? And I am upload to youtube.
 

lukasspro777

Senior Member
May 18, 2012
123
43
0
Belgrade
I have got an Xperia Play

I am rooted this .

One day I am buy the Rom Toolbox Pro

Well I am go to the build.pro tweaks and I am set the VM Heap to low ..... after its asked to me DO you want to reboot your phone and iam reboot it.
And its stuck in the where i can write the PIN Code. But i can not unlock my device in the lockscreen because its reboot but i dont know why

Well what i need to do whit my device?????
PLS help me:D
ANd sorry for my bad english
Not sure if trolling, or just stupid.

Sent from my GT-N7000 using xda app-developers app
 

exb0

Senior Member
Oct 24, 2010
1,831
426
0
24
Spokane
www.onecameraarmy.com
I have got an Xperia Play

I am rooted this .

One day I am buy the Rom Toolbox Pro

Well I am go to the build.pro tweaks and I am set the VM Heap to low ..... after its asked to me DO you want to reboot your phone and iam reboot it.
And its stuck in the where i can write the PIN Code. But i can not unlock my device in the lockscreen because its reboot but i dont know why

Well what i need to do whit my device?????
PLS help me:D
ANd sorry for my bad english
I had that problem oso wit my xp3r14 pl4y.. U n33d 2 m1cr0w4v3 it 2 f1x 1t.

Sent from my Galaxy Nexus using xda premium
 

Constantin92

New member
Nov 19, 2007
2
1
0
Galaxy Note I : I did a big mistake... please help

Hi, guys.

It's a pity I didn't read your advice earlier, before I make my mistake.

I have the Galaxy Note I, rooted, and everything was working fine.

I had this evening the bad idea of trying to tweak VM Heap Size.

Previously set at 64m, and I tried to set it up at 36m. The application asked me confirmation for reboot, and from that moment, I cannot complete the boot anymore. I'm stuck at SAMSUNG logo, and that's all...

I didn't install CWM recovery or anything like that...

Do you have any idea of how I could get rid of that, please, without loosing all my data ?

(I'm posting from France, I'm sorry for my English, I hope you will understand my questions)

Constantin.
 
Last edited:
  • Like
Reactions: noteandfound

kaosdroid

Senior Member
Feb 2, 2011
409
67
0
caen
Hi,
for build.prop modif problem like this and you are stuck at boot.


If your device is rooted,you have the ability to recover this noob modification!

If you use flashTool or something like that(maybe odin)

start the program and connect your phone stuck at boot logo.
The program reconize your phone.
now ask for root permission(for ok response,you need to have register your device before in the program,if not the ask could not be done and you are dead at this point !)
now you have root acsess there is an option in the program to write in build.prop/edit file
So load it and give the right path in and change thing you have made wrong(VM=64/128/256)
Save it and reboot

Done!


:p