How will lowering the VM Heap Size from 256m to say 128M effect my phone? Will it give me more RAM to allocate to apps I use or will it not give Android OS enough RAM to run efficiently?
Thanks
Sent from my Galaxy Nexus
KurioHonoo said:
How will lowering the VM Heap Size from 256m to say 128M effect my phone? Will it give me more RAM to allocate to apps I use or will it not give Android OS enough RAM to run efficiently?
Thanks
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
You could just have searched a bit..
Check this out. Google has a lot more results, tag: "android vm heap"
Hi Guys i want ask about vm heap size for my galaxy w Default vm heap size 64 in my rom i changed 48 m < who is can give me Best heap size for galaxy w?
gwonder said:
Hi Guys i want ask about vm heap size for my galaxy w Default vm heap size 64 in my rom i changed 48 m < who is can give me Best heap size for galaxy w?
Click to expand...
Click to collapse
commonly for GB roms 64m, for ICS and JB 128m
but i've also tried running JB at 64m and works just fine
mmm, get be focused
VM have 3 value that may change the performace
my setting is
dalvik.vm.heapstartsize=5m
dalvik.vm.heapgrowthlimit=36m
dalvik.vm.heapsize=128m
hepi_hape said:
mmm, get be focused
VM have 3 value that may change the performace
my setting is
dalvik.vm.heapstartsize=5m
dalvik.vm.heapgrowthlimit=36m
dalvik.vm.heapsize=128m
Click to expand...
Click to collapse
dalvik.vm.heapstartsize size when first launch
dalvik.vm.heapgrowthlimit limit of standard app
dalvik.vm.heapsize heap for large app
commonly for ics/jb with 512mb ram is 5,48,128
increasing heapsize can improve performance because app can used more memory to unpacking resources.
reducing heapsize may improve multitasking experience. however, in some cases, large applications such as gaming, the performance can be more severe. while app nowadays is using larger resources (hd images,audio etc), which would force it to run garbage collection frequently, which would use up CPU cycles and reducing battery life as well.
HI
I have some questions
First, whats wrong with the total memory in my device?
Xperia arc S
X-Gamer v2
Doomkernel v22
Baseband 64
The system memory manager shows only ~320 MB of total RAM. Yes, I know that some is shared with the GPU and some goes for the VM HS. But, why is in some other ROMs shows more than that? Even in JB/CM10 is around 380 MB!!
Do they have no VM? Or why is showing that amount?
Or is just kernel/ROM related the amount of RAM? Changing it will give me more RAM available? (Very usefull in games actually).
And, changing the VM Heap size in build.prop affects something? I've read that the default for the arc is 32MB, but i've changed it at 48MB.
Should i leave it at that? Or increase/decrease at some other value?
Thanks and sorry about my english
17th_angel said:
HI
I have some questions
First, whats wrong with the total memory in my device?
Xperia arc S
X-Gamer v2
Doomkernel v22
Baseband 64
The system memory manager shows only ~320 MB of total RAM. Yes, I know that some is shared with the GPU and some goes for the VM HS. But, why is in some other ROMs shows more than that? Even in JB/CM10 is around 380 MB!!
Do they have no VM? Or why is showing that amount?
Or is just kernel/ROM related the amount of RAM? Changing it will give me more RAM available? (Very usefull in games actually).
And, changing the VM Heap size in build.prop affects something? I've read that the default for the arc is 32MB, but i've changed it at 48MB.
Should i leave it at that? Or increase/decrease at some other value?
Thanks and sorry about my english
Click to expand...
Click to collapse
Only the RAM available to the user is shown. The part, which Android itself uses, is not shown.
Someguyfromhell said:
Only the RAM available to the user is shown. The part, which Android itself uses, is not shown.
Click to expand...
Click to collapse
Yeah, but, why it changes so much?
Like i said, in JB/CM10 they have around 380 MB (cos extra 20 MB are free from the 720p camera).
Its kernel dependant, VM values, or why cant i get something more close to it?
Thanks
Yeah that's something I noticed too.
Although ICS / JB / CM reserve more RAM for the system, total free RAM for apps is at about 200MB on both GB and JB, because GB somehow sucks 60MB more into nirvana.
Currently, my 5x's dumpsys meminfo says:
...
76688 kB: Foreground
76688 kB: com.android.settings (pid 23977 / activities)
...
37045 kB: Home
37045 kB: org.adwfreak.launcher (pid 16662 / activities)
...
Total RAM: 1857352 kB (status normal)
Free RAM: 534358 kB (206314 cached pss + 149296 cached kernel + 178748 free)
Used RAM: 1077268 kB (854220 used pss + 223048 kernel)
Lost RAM: 245726 kB
ZRAM: 117796 kB physical used for 506336 kB in swap (520908 kB total swap)
Tuning: 192 (large 512), oom 322560 kB, restore limit 107520 kB (high-end-gfx)
If we count the foreground app in, we have 611M memory for apps.
ZRAM saved 388M memory. Without ZRAM, we only have 223M memory available, for all the foreground+cached apps... Even if we kill the launcher, we only have 260M.
This implies that for some large apps, services would be killed, which is basically not acceptable.
So we are forced to use ZRAM? But this incurs some overhead.
Basically I think that 2G memory is not enough for a 64bit device. I'd hope that 5X is a 32bit device....
I turned off ZRAM last night and I haven't noticed any issues.
Am I right in understanding zRam is basically like a page file? Using storage space as slower system memory?
Yes, it is basically a pagefile held in RAM but compressed. You basically sacrifice a bit of CPU usage for more RAM at a smaller latency and bandwidth hit verses paging to a flash or hard disk.
Darkknight512 said:
I turned off ZRAM last night and I haven't noticed any issues.
Click to expand...
Click to collapse
Really? Would you please show me the meminfo? Do you have many services running?
Total RAM: 1857252 kB (status low)
Free RAM: 414498 kB (158914 cached pss + 212368 cached kernel + 43216 free)
Used RAM: 1326753 kB (1131817 used pss + 194936 kernel)
Lost RAM: 116001 kB
ZRAM: 12 kB physical used for 0 kB in swap (0 kB total swap)
Tuning: 192 (large 512), oom 322560 kB, restore limit 107520 kB (high-end-gfx)
It's perfectly smooth, I have no complaints. Usually using Pebble, Plexfitx Chrome, FB Messenger, SMS, some games like Reaper, Angry Birds, Geometry Wars 3, Gmail and Maps.
Darkknight512 said:
Total RAM: 1857252 kB (status low)
Free RAM: 414498 kB (158914 cached pss + 212368 cached kernel + 43216 free)
Used RAM: 1326753 kB (1131817 used pss + 194936 kernel)
Lost RAM: 116001 kB
ZRAM: 12 kB physical used for 0 kB in swap (0 kB total swap)
Tuning: 192 (large 512), oom 322560 kB, restore limit 107520 kB (high-end-gfx)
It's perfectly smooth, I have no complaints. Usually using Pebble, Plexfitx Chrome, FB Messenger, SMS, some games like Reaper, Angry Birds, Geometry Wars 3, Gmail and Maps.
Click to expand...
Click to collapse
Interesting... Your Lost RAM is much lower than mine....
Are you using the stock rom?
Stock rooted, encryption off, running ElementalX 0.02 kernel now.
Darkknight512 said:
Stock rooted, encryption off, running ElementalX 0.02 kernel now.
Click to expand...
Click to collapse
Might be the kernel. I'll try that later. Thanks.
The 6p also has 500megs of zram enabled by default even though it has 3gb of ram.
Sent from my Nexus 6P using Tapatalk
Darkknight512 said:
Yes, it is basically a pagefile held in RAM but compressed. You basically sacrifice a bit of CPU usage for more RAM at a smaller latency and bandwidth hit verses paging to a flash or hard disk.
Click to expand...
Click to collapse
Kind of correct.
The pagefile isn't really RAM. I assume you're thinking of "private address space" or addressable "memory".
Having a compressed pagefile in RAM, means that instead of writing out less frequently used memory to the flash drive (where it is slower to access and also wears down the flash drive more quickly), then it stores it in RAM (compressed to use less space than it normally would).
Personally I don't see why people are against it so much. You're not really loosing anything (the space is still there for usage). It may cost a few CPU cycles but it wouldn't affect things that much. And it is measurably faster than the alternative of writing to flash and reading after.
Personally, I don't see why people are so hung up on RAM to begin with. Android works nothing at all like Windows, OSX, Ubuntu, or any other desktop OS. The Android system image (Android OS, Android System, System UI) takes up well under 1GB. Apart from Google Play Services, The Google Apps, and some games, the vast majority of apps take up megabytes or maybe tens of megabytes.
RAM has ABSOLUTELY ZERO to do with in app lag experience. It only affects the time it takes to initially load an app (which is largely miniscule to begin with since you're only reading from NAND). Based on the numbers I posted above, 1GB is plenty to hold the OS and a few apps in memory. 2GB is more than you'll ever need. 3GB is unnecessary. Phones now coming out with 4GB is just downright silly, it's playing a paper specs game that has no actual impact on performance.
When i was checking my free storage today i found that the phone is using virtual memory so are there any way to increase it to 512mb or 1024mb for better multitasking especially for 512mb ram devices like my Lumia 620
Code:
www13.0zz0.com/2015/12/17/22/400546034.png
Yes, look here : http://forum.xda-developers.com/windows-10/windows-10-mobile/test-build-10572-t3241559