Vm heap size for ace s5830i - Galaxy Ace S5830i General

what is the best vm heap size for a smooth and fast device.? Should it be high or low? I was shocked to see it at 64 by default..It has a total of only 290..
Sent from my GT-S5830i

High is better, try with this values: 96mb or 128mb, 128mb is better than 96mb but if on your device 128mb is too high and after go slow then use 96mb.

Large values are good with heavy apps but your lightweight apps will run slow. 24 is good for texting, surfing. 32 is a balance. 64 is the default stock, though there isn't such a need.
128 is too much.

consegregate said:
Large values are good with heavy apps but your lightweight apps will run slow. 24 is good for texting, surfing. 32 is a balance. 64 is the default stock, though there isn't such a need.
128 is too much.
Click to expand...
Click to collapse
No, high values are always better and instead low values as 24mb and 32mb slow down the device, read about the dalvik vm heap size for understand why.
Sent with my Evil GT-S5570 from Hell

I have only 48 Max in my cyanogenmod rom. My default is 32. Apps are fast enough anyway.
Sent from my GT-S5830 using Tapatalk 2

galaxyace152 said:
I have only 48 Max in my cyanogenmod rom. My default is 32. Apps are fast enough anyway.
Sent from my GT-S5830 using Tapatalk 2
Click to expand...
Click to collapse
First your rom is custom then the value of dalvik vm heap size for you is different and depend from the settings of your rom, instead for stock rom's and stock settings from samsung 128mb is the best, currently i've setted 128mb on my galaxy mini and works perfect, but however i think that if you put 64mb rather than 32 on your rom surely works better, and as i've already said for understand why is better a high value need understand how works and what do the dalvik vm heap size, then read about the dalvik vm heap size (i already read and i know how works and what do the dalvik vm heap size).
Sent with my Evil GT-S5570 from Hell

Related

[Q] What is and how works VM heap?

Hi
Everybody talk about changing the VM heap value, but... what is the difference after changing it? What about increase its value? And decrease it?
On the CM7 thread adamz667 post this: http://forum.xda-developers.com/showpost.php?p=15065093&postcount=4569
Anyone can confirm that?
Thanks
Increasing cm heap means that apps can use more memory which makes them run faster but then since tbey use up more mem u will have less free memory.
Sent from my Milestone using XDA App
Here you got some definition:
VM Heap Size
The heap is an area of dynamic memory allocated to programs. With a larger heap size, there is more memory for the program and the garbage collector can run more efficiently. Therefore, it is possible to get better performance by setting a larger VM heap size.
However, if you set it too high, you can run out of free memory which can trigger swapping which will degrade performance. Therefore the VM setting is a trade-off.
The optimal value will depend on the RAM on the device as well as the programs and usage patterns, therefore the optimal setting can often only be determined by the user experimentally.
Default value: varies between devices
Click to expand...
Click to collapse
from: http://droidgram.com/forum/8-Android-Dalvik-VM-Heap-Size
adamz667 said:
Here you got some definition:
from: http://droidgram.com/forum/8-Android-Dalvik-VM-Heap-Size
Click to expand...
Click to collapse
Thanks adam, but your post on CM thread was a good theory and this definition it's opposite to your post (a this new one: http://forum.xda-developers.com/showpost.php?p=15092265&postcount=4582)
I only want to know what value use without have to try all of them during days of testing...
Thanks
parads said:
Thanks adam, but your post on CM thread was a good theory and this definition it's opposite to your post (a this new one: http://forum.xda-developers.com/showpost.php?p=15092265&postcount=4582)
I only want to know what value use without have to try all of them during days of testing...
Thanks
Click to expand...
Click to collapse
I have tested all of them today and the best results was with 16mb.
How I was testing it?
Shadow Guardian HD is a very heavy game for MM's ram memory. So I've tested every vm heap size on one and the same level of SGHD, with the same run environment and game was most playable on 16mb (no freezes, reboots, no returns to home screen).
Really 16mb. Which rom? And how far did you get in the game?
Sent from my Milestone using XDA App
thre3aces said:
Really 16mb. Which rom? And how far did you get in the game?
Sent from my Milestone using XDA App
Click to expand...
Click to collapse
I am using CM7rc10 (14.06.2011) I am now in 4th episode (level?) - Medusa Sanctuary.
That is very very interesting. I'm gonna have to give cm7 another chance. Maybe rc10 is a lot better than rc4 (last cm7 I tried)
Sent from my Milestone using XDA App
i also have good performance with 16m tried most settings from extremely large to extremely small...
also png optimized most apps again and again... (which decreased the size of the apps by almost 10mb again - quite sure that it does not make much of a difference)
don't have any app locked in memory and only one homescreen with adw ex without widgets...
dunno till now i have not experienced any issues with lost sms or phone calls...
but i'm aware of that it could happen with my settings so it needs more testing, jit turned off etc. phone works like a charm since i switched from froyomod a week ago or so.
sent from my current location
Are you sure u tried 16 mb. Because I just tried shadow guardian on cm7 rc10 with ur settings and zepplinrox supercharger on balance and tbh it was rather language at times
Sent from my Milestone using XDA App
I've tried jit off and VM heat on 16MB but not get any result.
The launcher was freezing 3 or 4 times, and all games get a minimal improve: 3 seconds more until FC.
I'm testing with: Asphalt 6 and Brothers In Arms 2 (Gameloft games) and Age of Wind v2.2. All versions for MM, with people that play them on stock rom.
thre3aces said:
Are you sure u tried 16 mb. Because I just tried shadow guardian on cm7 rc10 with ur settings and zepplinrox supercharger on balance and tbh it was rather language at times
Sent from my Milestone using XDA App
Click to expand...
Click to collapse
well as i said i do not use that memory intensive apps.
(i think my biggest apps are maps and the browser, and the browser barely goes beyond 30mb, so 2 vm's with 16mb, instead of 2 with 24. but most apps stay below 10mb so i think for my use it is a good solution)
also i debloated the rom massively and replaced most system apps with smaller ones.
cm7 performs very well with this settings, at least for me. (no redraws, no lags in ui no freezes etc...)
like i said i don't use games on my stone
edit: only genie news & weather app reloads often but i think it simply has a high priority.
sent from my current location
That is quite interesting. On ho no I
And 20mb with balanced 3 supercharger works great. But not so well on 16mb
Sent from my Milestone using XDA App
I had tried 16mb weeks ago when somebody suggested it.
That lasted about 5 minutes.
Scrolling between adw screens was brutally choppy.
Swipe finger, wait, look at watch, then bam - the screen suddenly decides to quickly jump to the next screen...
zeppelinrox said:
I had tried 16mb weeks ago when somebody suggested it.
That lasted about 5 minutes.
Scrolling between adw screens was brutally choppy.
Swipe finger, wait, look at watch, then bam - the screen suddenly decides to quickly jump to the next screen...
Click to expand...
Click to collapse
I've got the same with 12mb vm heap. But when I use 16mb everything works fine on CM7 and HO!NO! CM7. Maybe it depends on rom/apps you use and your own configuration.
I guess.
But I'm used to fast, smooth and lots of free ram no matter what rom I'm using
Sent from my Milestone using Tapatalk
adamz667 said:
I've got the same with 12mb vm heap. But when I use 16mb everything works fine on CM7 and HO!NO! CM7. Maybe it depends on rom/apps you use and your own configuration.
Click to expand...
Click to collapse
yeah 12mb is to small... experienced some errors with it too.
i have to say that for me everyhing between 16 and 32 mb seems to do not do much of a difference, but with 32mb my system uses some more RAM right after boot.
after a while it usally uses less (around 80-90mb sometimes less, sometimes more) so i normally have around 60mb free RAM, which seems to be enough.
i'm out of this discussion for now, but i have to say that i rly think ur VM Heap settings should match the apps u use.
so just try different settings.
@Zeppe
yay never experienced that, but i use only one Homescreen anyway. and ADWEX is rly memory friendly : )
sent from my current location

Changing heap size?

On the latest Go launcher ex beta there's the option to change heap size, with 128 being default, and 48 being 'recommended.' I have no idea what this is, but can it improve the phone performance, and does it come with any drawbacks/dangers? I tried setting it to the recommended 48 and the phone seems to be smoother but I'm not sure.
Also, how will battery life be affected?
I may be wrong but thats the java memory heap size the app will work with. Nothing major would happen if you change it.
Sent from my GT-N7000 using xda premium
128 its perfcet for our 1 gb ram.
48 recommened for phones with 512 mb of ram.
Heap size its virtual bufer for your catch and other ****

[Q] [9001]Ram?

Well as we all know our phones have 512 RAM but only 357 is usable.Why...I realy want the rest of the ram...mostly for multi tasking. So the question is HOW can we increse ur usable RAM to 512...and what system uses the rest...ram...allready when I start my phone the "system" takes more then 154 mb...with 0 apps running.
Choose a kernel with bigmem. They are all pushing 400 MB of available ram on the i9000.
SlimICS is just under 80 MB including Google apps.
To get the most out of multi-tasking you'll want to set the amount of ram the minfree taskkiller will keep, really low, like 25MB.
The 512mb of RAM is devided into two, for systems apps and for the user (you) you get 357mb while the other 100 odd is being used for system processes
Sent from my GT-I9300 using xda premium
Thx all and I understand that the systen uses 100 but what does use the 155 mb when I start my phone; we realy nees to make a kernel that supports at least 400+ mb it will help a lot for multi tasking
VisualTech48 said:
Well as we all know our phones have 512 RAM but only 357 is usable.Why...I realy want the rest of the ram...mostly for multi tasking. So the question is HOW can we increse ur usable RAM to 512...and what system uses the rest...ram...allready when I start my phone the "system" takes more then 154 mb...with 0 apps running.
Click to expand...
Click to collapse
You can't. These phones have 512mb of RAM. ~100mb is used as Shared Graphics Memory like on Intel based laptops and such. The rest is then allocated to the system. This usually leaves around 350mb - 400mb of RAM available.
I'm not 100% on this because I'm new to Android (Had my SGS for 2 weeks). I think when Kernels have "bigmem" or differing amounts of RAM all they're doing is reducing the amount allocated to the GPU and therefore giving the system a bit more to run with.
well that is what i want more ram, "bigmem", if anyone can make it to an kernel for I9001 I/We will be very happy...
Try and apply called RAM BOOSTER PRO to free a lot of ram it's very useful
Sent from my GT-I9000 using xda premium

Increase RAM??

ok so i was thinking our mini has 384mb ram of which only 280 are available...is there some way to use the whole RAM not only 280mb??
on froyo i had: 279mb ram
on ginger: 280
on ics: 276mb
so why not 384?? whats holding the other 104 mb?
think i found what i was looking for: "MemTotal" = physical memory minus whatever is being shared with devices (such as the radio, DMA buffers, etc), so it will always be less than the advertised RAM for your phone.
am i right??
Use swap it will increase your ram but you must have a good sd card.
Sent from my GT-S5570 using Tapatalk 2
hsay said:
Use swap it will increase your ram but you must have a good sd card.
Sent from my GT-S5570 using Tapatalk 2
Click to expand...
Click to collapse
you mean a class 10 card? If so, how do I create a swap partition for my rooted device?
It's because some memory is also used for graphics and other stuff. In ICS it is 279MB, but on JB it's 276 because I have increased framebuffer size for triple buffering etc.. Theoretically, by experimenting, it's possible to get at least 285-290MB.
Me, too..
I have experimenting and the result :
Froyo : 281 MB
Ginger : 279 MB
IceCream : 278 MB
JellyBean : 276 MB
as far as i know, RAM used by :
1. GPU
2. Graphics thing
3. And Other stuff..
Then the rest of them goes to RAM values, so your Mini RAM was around 300 Megabytes, but since GPU, and other things take it RAM just decreased.
I also have a Galaxy Tab 2 7.0 Inc, wich have a 1 Gigabytes RAM, but since other things take it, it decreased into 679 MB (wow, really huge decreased isn't it ? :silly: )
xyboox said:
you mean a class 10 card? If so, how do I create a swap partition for my rooted device?
Click to expand...
Click to collapse
You can create a swap partition from cwm from advanced option then while partitioning SD card select a value for swap. This will completely erase your SD card so make a backup
Sent from my GT-S5570 using Tapatalk 2
Good to know! Thanks @hsay
Sent from my GT-S6500D using Tapatalk 2

Ram or cpu

While using a ics or jb the o.s eats up all the ram but we do have swap to get enough of extra ram required so if we use swap with a good class sd card, is the ram usage still a fact that affects the performanceof these Rom.. Or its just our x8's cpu then, that degrads the performance..
Sidy said:
While using a ics or jb the o.s eats up all the ram but we do have swap to get enough of extra ram required so if we use swap with a good class sd card, is the ram usage still a fact that affects the performanceof these Rom.. Or its just our x8's cpu then, that degrads the performance..
Click to expand...
Click to collapse
it is not problem only cpu,ram we have slow I/O
so if you set up swap on good sdcard it probably will still lag
Swap is not working as you think, your phone wont have more ram. Swap is like windows page file.
Sent from my E15i using xda app-developers app
I have experimented with swappiness, and if I did set it to 0, it didn't swap, even when it was very needed (and that is surprising because it should use swap in case of low RAM, even with 0 swappiness). Apps were closing instead, and the whole system was unstable because of low RAM.
When I set it to 100, it began to swap. It became stable but it was slow because it swapped out a lot of things (it had always 70-80 MB free memory).
So I think setting swappiness to 50 or 60 is ideal (I didn't try it), because it will be stable and fast at the same time.
I made some script files for setting swappiness to 0, 20, 40, 60, 80 and 100, tell me if anyone needs them, and I will upload them.
Also using zRam with normal swap, and 50 swappiness might be a good thing too.
ICS and JB lag on our devices due to both the weaker cpu and less ram.
But if we had around 512 mb ram, ics and jb would run smoother with 600mhz cpu too..
so according to me the ram factor is the one which makes ics and jb lag on our phones.
And about swap, it works only when the ram is below 5-10mb.
so i think that it does not helps us much...
har****group said:
ICS and JB lag on our devices due to both the weaker cpu and less ram.
But if we had around 512 mb ram, ics and jb would run smoother with 600mhz cpu too..
so according to me the ram factor is the one which makes ics and jb lag on our phones.
And about swap, it works only when the ram is below 5-10mb.
so i think that it does not helps us much...
Click to expand...
Click to collapse
But with a higher swappiness you can get at least 60 MB free RAM. Nevermind, it doesn't make ics and jb run smoother. But it's like not the low RAM causes those roms to run slowly. I am using MiniCM7 with 128 MB compcache and it is very smooth, smoother than using normal swap, even when playing very heavy games. And on jb and ics no matter if i use swap or zRAM (128 MB), it stays slow.
Lajbymester said:
But with a higher swappiness you can get at least 60 MB free RAM. Nevermind, it doesn't make ics and jb run smoother. But it's like not the low RAM causes those roms to run slowly. I am using MiniCM7 with 128 MB compcache and it is very smooth, smoother than using normal swap, even when playing very heavy games. And on jb and ics no matter if i use swap or zRAM (128 MB), it stays slow.
Click to expand...
Click to collapse
How did you make 128 mb zRAM?

Categories

Resources