yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Android Development] v1rtu4l:
you seem to have no clue what this setting actually does.

saying both are good while the one setting would reduce the maximum available memory per app to 66% (from 192 to 128) shows your lack of knowledge.

higher values for the dalvik heap size will give the single app more memory (if it needs it). if you lower the value and the app needs the whole memory it will trigger the garbage collector which will try to use the memory more efficently by "throwing old/unused data" out of the memory to make space for the memory the app needs. this process will affect your phone negatively, so you don't want to have the garbage collector be active on every simple app execution. it would be much more useful to find out why the kindle app for instance reloads after x amount of time.

if it would be because the garbage collector ran and purged the memory (so the actuall state of the app gets lost) then an increase of the heap size would help preventing the app reload problem.

in ICS google did implement i slightly different behaviour for the heapsize. before ICS it was de facto the maximum memory allocated to an app. it was the "only" setting for this. since ICS google implemented an additional setting called "heap growth limit" which will set another boundary. as of now "heap growth limit" will limit the memory available to a single app (while still running the garbage collector, when this memory is nearly full) for most apps. if the developer did set a flag in their manifest-file, the app can even use more memory (up until the heap size).

so for easy understanding:

-heap growth limit will limit the memory available for most apps

-apps that are designed to use much memory will have the ability to use even more memory (up until heapsize)

to give you some examples:

my latest JB Samsung Firmware has following values

heapgrowthlimit= 64 MB

heapsize= 256 MB

this will allow simple apps to use up to 64 MB

apps compiled with "largeheap"-flag set, may use up to 256 MB

@topic starter:

i appreciate your motivation to make something happen but on the other hand i think there are enough people on xda already that just throw

different things into a pot, shuffle a bit and tell people that this will improve the phone.

it would be really cool if everyone who uploads stuff (that others flash onto their phone) would educate themselves a bit before :confused:
[Galaxy S III Android Development] ashwarsadh:
After installing in Codec Rom SE 8.6 it Lags like ****...

Swype keyboard takes ages to show up...

Apps always hang..

Tried after factory reset too..

Still Same Prblems.

Made my phone Worse.

It Sucks
[Galaxy S III Android Development] mattiadj:
Then delete it :) is quite simple you know?

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] vegeta1:
start developing for yourself is the best option you know ;)

with omega its flawless... i guess this mod favors the very best
[Galaxy S III Android Development] DSA:
Cheers for that
[Galaxy S III Android Development] DieZz:
something is wrong

I must be doing something wrong because on my phone the keyboard takes 20-30 seconds to appear... and switching between aps takes at least 10 seconds with sluggish animations. Are animations supposed to be ugly?
[Galaxy S III Android Development] rlorange:
This is very good work man!

I experimented with hard swap before but on my class 4 external card the lag made it not worth it...

Not so with this system! Astounding really. I just made the swap file smaller because I do think 550mb is overkill.

Thanks for the effort refining your mod
[Galaxy S III Android Development] basheerica:
smart idea, great implementation

I bought my SGSIII under the assumption that it has 2G RAM, I was a bit shocked to see that Samsung put 1G for this powerful phone, using swap is great idea, I''m running Darky Rom with 256 heap size, with the swap solution the heap size is 192, I need to start the app once, after that starting it again is always fast.

thanks for the great job,.will definitely buy you a beer..

cheers
[Galaxy S III Android Development] Erahgon:
Just a quick question: a few minutes after booting, I went to terminal emulator and typed "free" to check whether swap was working.

It displayed 544 available, 544 used, 0 free.

Is the fact that the swap is full an indication of a bug (in my installation maybe), or is there some logic which populated the swap partition upon boot?

I am running Omega 33.1 ROM, based on the XXELK4 4.1.2 (leaked) firmware, with Siyah kernel 1.7rc3.
[Galaxy S III Android Development] Loquitur:
I like to say big thanks for this wonderful mod. After installing, multitasking is great. However, I experienced ui and apps lag sometimes. For example, I got music hiccup while browsing the web. Any idea to fix it? Thanks in advance.

P.S. I'm running 4.1.2 XXELK4 and Siyah 1.7rc3
[Galaxy S III Android Development] Musko:
Same here.

Still waiting for new version. Now compatible with XXELK4 Omega 33.1

mattiadj any new info?
[Galaxy S III Android Development] rlorange:
You could try changing the swappiness lower in the init.d script.
[Galaxy S III Android Development] Erahgon:
I don't think this has to do with the swapiness. When I used to use swap (partition on external SD card), it would fill up gradually, and that was when swapiness was at 100.

If I were to guess, I would say that it is some problem with the swap creation execution in the script for this particular ROM.

Maybe it could be due to the busybox version included with this particular Omega ROM version (33.1). I'll do an update to system/bin and xbin as well and report back.

Edit: Same results after installing busybox as stated above and restarting. Must be something else...

Also, I don't think I saw any line referencing swapiness in the init script.
[Galaxy S III Android Development] Kassim.d:
Sorry but im trying to change the built pro setting but its not changing! I change the number but it stays on the same amount

EDIT : solved thx
[Galaxy S III Android Development] mattiadj:
Very strange problem! I'm not upload the update since I have a very bad and low use of swap file! I'm using latest 33.1 omega so the scenario is the same!

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Erahgon:
Strange... Even when I tried the hard swap mod by Yank, getting everything as 0 when I type "free" in terminal emulator.
[Galaxy S III Android Development] Musko:
OK, we still wait for this :good::good::good:
[Galaxy S III Android Development] Erahgon:
Swap appears to be working as expected in Omega 33.2 with Siyah 1.7 stable kernel.
[Galaxy S III Android Development] mattiadj:
Swap mate?

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Musko:
mattiadj

When you plan release new version?

Thank.
[Galaxy S III Android Development] faddys123:
I am getting random lag and phone freezes till the point that I have to take the battery out
[Galaxy S III Android Development] Erahgon:
It wasn't working as expected on Omega 33.1 with Siyah 1.7 stable.

The attached screenshot is from Omega 33.2 with Siyah 1.7 stable, after an hour or so of low-moderate use.
[Galaxy S III Android Development] Mandeep148:
Can i use multitask on OMega 33.2 Rom??

super charger installed, siyah 1.8 kernel, 4.1.2...
[Galaxy S III Android Development] Erahgon:
Works for me. See above.
[Galaxy S III Android Development] Mandeep148:
Thanx man!

I m editing build prop,

There are two values

Property value or default value which to set?
[Galaxy S III Android Development] mattiadj:
There are some conflicts with supercharger...

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] ChorBazaar:
Does this mod work along with Yank555's swap partition on SD card?
[Galaxy S III Android Development] mattiadj:
No this mod make swap it self so I don't advise to use it with yank mod. Choose one between these two moda

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] ChorBazaar:
Thanks for the quick reply man. Can you in short tell me the difference between the two? And i did read the OP for both the mods. Just want to understand how the two work differently. And once again thanks a lot man.
[Galaxy S III Android Development] mattiadj:
Simply this mod don't use external sd for swap and use cache partition so it's more fast and optimized.

With Yank555's mod you may have more lags compared with this. But the best way is to try theme and choose the winner for you. No competition with my friend yank :)

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] ChorBazaar:
So does this make the internal memory life shorter? Just how yanks method makes the external sd life shorter?
[Galaxy S III Android Development] jayden2009:
I'm using yanks kernel without swap etc...installed you're mod...typed free still value is zero...what did I missed..also changed everything in build prop what is written in OP :)

Verstuurd van mijn GT-I9300 met Tapatalk
[Galaxy S III Android Development] mattiadj:
Swap can potentially always make memory life shorter but it's a very teoric situation. Never listened someone who had a memory damage due to the high usage but if you want be 200% safe.... Don't use any of this :)

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] ChorBazaar:
Thanks dude. Great help. One last question. Will this help me with home screen redraws by any chance?
[Galaxy S III Android Development] mattiadj:
No. Screen redraw is a bug of touchwiz. If you want to completely fix this, use nova or apex launcher. Great launcher without redraw problem!

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] ChorBazaar:
Just flashed your mod. Working brilliantly. :)
[Galaxy S III Android Development] jayden2009:
So how com it doesn't work for me ?

Verstuurd van mijn GT-I9300 met Tapatalk
[Galaxy S III Android Development] ChorBazaar:
He just said it can't work along with Yank555's mod. Keep only one.
[Galaxy S III Android Development] jayden2009:
Hmm I thought he ment if I choose swap in yanks aroma it won't work...didn't do that so I thought I could use this mod :o

Verstuurd van mijn GT-I9300 met Tapatalk

---------- Post added at 11:02 AM ---------- Previous post was at 10:57 AM ----------

Strange....I have 16apps open...terminal says no swap...when I open contacts ...gmail..phone..it opens up immediately just like what was said in OP normally when I have a couple of apps open..and I want to open contacts it takes about a sec or two to open...

Verstuurd van mijn GT-I9300 met Tapatalk
[Galaxy S III Android Development] ChorBazaar:
Apps still restart if many are open. How do I know if this is working surely?

EDIT: I open S Memo and open a memo and edit it a little. Then i opened around 5-6 apps. And after this if I reopen the S Memo app the phone hangs and after 5 seconds or force closes saying an error has occurred. Without this mod the app just restarts. Now this happens. Can someone confirm this too? If I don't want this to happen how can I disable this mod? Thanks a lot.
[Galaxy S III Android Development] Kassim.d:
Just flashed this mod with siyah 1.8 abd no difference at all i feel its even more laggy! Weird. Im using omega 33.2
[Galaxy S III Android Development] ChorBazaar:
Same here. Guess it doesn't work properly with this Rom.

Anyone have any idea how to disable this?
[Galaxy S III Android Development] Yank555:
You're mixing up two things here :

1) yank's hardswap mod

2) yank's kernel (for Samsung ROMs / CM10 ROMs)

As for 1) :

I am totally in line with mattiadj, chose either one, don't use both, that won't make much sense. And the life-shortening thing, that's your call to accept it or not. I haven't yet heard of anyone breaking memory (be it internal or external for that matter), but memory have MTBF's (Mean Time Between Failure) expressed in numbers of write cycles, so do your math and decide if the shortening makes it still work longer than you intend to keep the memory device (sdcard or phone) ;)

As for 2) :

My kernel does support swap, so it will work ! Other than applying mattiadj's mod, you'd need to chose these settings when flashing my kernel in order to not overwrite some of mattiadj0s mods :

- no hardswap

- no zram

- no setting swappiness

- no setting LMK

JP.
[Galaxy S III Android Development] ChorBazaar:
Oh ok thanks. I tried this mod. How can I try your mod now? What do I need to do to disable this one first?
[Galaxy S III Android Development] Yank555:
Well, you'd need to revert the changes you've made to install it, I guess mattiadj is best placed to tell you what to do.

JP.
[Galaxy S III Android Development] dazkyl:
Where is the ZIP attached please ? (bestMultiTaskingFix.zip) ...cant find it -.-
[Galaxy S III Android Development] jayden2009:
First page :banghead:

Verstuurd van mijn GT-I9300 met Tapatalk
[Galaxy S III Android Development] ChorBazaar:
Really sorry. I had no idea I had supercharger running on my phone. This works perfectly. Sorry for saying it does not work. Props
[Galaxy S III Android Development] Elad92:
Here too, even more laggy than stock rom (4.1.1) :S

My phone even got stuck once and I needed to pull out the battery.

How can I revert it back to before? Or I need to flash the rom again?

Edit:

Found this after searching in the thread:

mattiadj: "Simply delete bestMultiTaskingFix file from init.d folder then wipe cache"

init.d is inside etc folder (use some root explorer).

If you can put it in the first post, it will be great :)

mattiadj, many thanks for the mod, but I'm using siyah 1.8 and omega 33.2, and when I use a lot of apps the phone is getting stuck and I need to close all apps from task manager (around 750mb used), maybe something in the rom/kernel messed some things up and it doesn't close the apps at all, I don't know.

It's great mod, maybe in new versions of omega/siyah it will work better. :)
[Galaxy S III Android Development] nudawa:
Excuse me. Will this mod work on stock kernel on Omega v33.2 (4.1.2)
[Galaxy S III Android Development] el_tute:
I have the problem of 544 available, 544 used, 0 free, with Yank kernel on omega 33.3 / 34

anyone found solution??

with siyah 1.8.4 it displys 563196 but it have a lot of black screens (I mean, phone dont turn screen on and freeze)

please sorry my rusty english
[Galaxy S III Android Development] alberber:
Can I use this with phenomenal kernel?

Thanks

Enviado desde mi GT-I9300 usando Tapatalk 2
[Galaxy S III Android Development] Yadunz:
Have same problem on the vk rom 8 with Yank kernel. Move on Yank solution, more laggy but don't freeze phone.
[Galaxy S III Android Development] GR0S:
Lags and freezes on insertcoin
[Galaxy S III Android Development] pogi1100:
How would I disable zram in siyah kernel? There's no "Performance" option in Sammy based ROMs.
[Galaxy S III Android Development] el_tute:
wich solution? made a swap on the ext sd??
[Galaxy S III Android Development] mattiadj:
This weekend I'll upload new fantastic and all fixed version guys. Tests are almost done

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] kerbiii:
Wow cool ill subcribe and try it later

A simple THANKS button would suffice :)

- SIII GT-I9300
[Galaxy S III Android Development] Musko:
I can not wait for the weekend mate :silly:
[Galaxy S III Android Development] mrBira:
Any downsides with this mod?

Skickat från min GT-I9300 via Tapatalk 2
[Galaxy S III Android Development] KristianKenneth:
Will try this mod as soon as new version comes out.
[Galaxy S III Android Development] Yadunz:
Yes, laggy but stable.
[Galaxy S III Android Development] LRC1710:
Lemme see if I get this, if I install this, I will be able to OPEN SEVERAL APPS AT ONCE, AND SWITCHING FROM ONE TO THE OTHER WITHOUT the freaking phone redrawing and reloading them?? please confirm this to me because if this can actually solve the reloading and redrawing issue, u gonna get alll kindzz of pizzas and beers from me...

Thanks
[Galaxy S III Android Development] kerbiii:
Im waiting for the latest versiob since he said its going to be stable and fix

A simple THANKS button would suffice :)

- SIII GT-I9300
[Galaxy S III Android Development] 23Six:
I started using this 2 days ago, I can confirm it works flawlessly and smoothly when I have 7 - 9 apps open. I tend to close afterwards. Ram isn't a problem either.

Its so smooth I turned my S3 into a Nexus for a better multitasking experience what with the on screen buttons!

Ruinning siyah kernel on cm10 nightly.

View attachment 1563892

Sent from my GT-I9300
[Galaxy S III Android Development] LRC1710:
Wtf? this mod is supposed to work only on samsung bases roms O.O it works on cm10??
[Galaxy S III Android Development] pogi1100:
This works with CM10? O.o
[Galaxy S III Android Development] Musko:
Weekend is here and I can't find new version :laugh: I am impatient :laugh::laugh::laugh:
[Galaxy S III Android Development] mattiadj:
Finally...after 2 months of dev and testing...the best multitasking fix ever!

New name is butterMultitasking!

Take a look to changelog and try: this is the definitive fix (...for now :D)!

Changelog

7.0 aka ButterMultitasking
[B][COLOR="Blue"]ALL OPENED APPS IN LATEST 4 SECONDS ARE LOCKED IN MEMORY EVERY 4 SECONDS so the possibility of killed apps is now ridicolous! (0 battery drain!!)[/COLOR][/B]
Better performance without any lags up to 12 apps running in same time (MAX 20 APPS RUNNING IN SAME TIME WITH A 301 APPS INSTALLED IN MY SCENARIO!)
Optimized for multiwindow use!
Minfree changed for best performaced and quick app load!
Adj values restored to stock (not need to
Random reboot problem fixed
New kernel tweaks and tweaked values
Bigger swap size
[Galaxy S III Android Development] abelle_abelle:
finally :D

works with xxdlj5?
[Galaxy S III Android Development] mattiadj:
Of course mate

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] chowdyg:
just flashed it and i can already see the difference!! keep the good work up mate
[Galaxy S III Android Development] erto90:
someone tried it with ARHD 17 with perseus kernel?
[Galaxy S III Android Development] kerbiii:
Will it change my tweaks on OC/UV?

A simple THANKS button would suffice :)

- SIII GT-I9300
[Galaxy S III Android Development] erto90:
NO
[Galaxy S III Android Development] kerbiii:
Ok got it, one last question about killer tasks app why is it not recommended?

A simple THANKS button would suffice :)

- SIII GT-I9300
[Galaxy S III Android Development] erto90:
because

1) they drain battery as my personal test

2) they are generic for all devices and not ever fully working

3) they can kill important processes and/or unwanted ones

4) by adjust value directly in kernel or in script like this, there is no battery drain and device-accurate options

5)and because every device got is memory menagement.. with these craps all go to hell :)
[Galaxy S III Android Development] kerbiii:
Thanks, flashing :)

Edit: done flashing :) ill report if i find something unusual

- SIII GT-I9300
[Galaxy S III Android Development] erto90:
i would know how it perform with ARHD 17 + perseus kernel. i got too few time to risk a disaster xD
[Galaxy S III Android Development] Musko:
mattiadj

Flashed version 7.

I will test.

Later I will report.

First report: seems not working swap correctly. I have only 600kB not 600MB swap. See attachment. Tryed with Yank and Siyah kernels.
[Galaxy S III Android Development] sirusu:
What is the recommended kernel? Siyah 1.8.4?
[Galaxy S III Android Development] mattiadj:
Which kernel and rom do you have? Try to wipe cache in recovery then give some times to system to make the swap file then after ten minutes check in terminal emulator and report

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] mattiadj:
No reccomanded kernel mate. The only thing needed is the swap support

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Musko:
ROM: Omega v34

Kernel: Siyah 1.8.4 for now, but test with Yank's 2.8a too (much prefer this)

After wipe cache in recovery all working like a charm mate. Thank for your work

Sent via smoke signals using Samsung Galaxy SIII ...
[Galaxy S III Android Development] JB-007:
Hi

Does your mod use internal memory or external sd card for the swap partition?

Cheers
[Galaxy S III Android Development] mattiadj:
Internal memory. Cache partition

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] soulzero:
This is just wonderfull, thanks to this mod this doesnt feel like the ****tiest phone anymore! True multitasking yes. Thanks. Donated a well deserved 3$
[Galaxy S III Android Development] pogi1100:
So does this thing actually work on CM10 as well? Can anyone else confirm this?
[Galaxy S III Android Development] NOSTALGIA:
will this work cr droid with stock kernel ? ? ?
[Galaxy S III Android Development] kerbiii:
How to revert it to stock? I want to compare it to stock so when i find something wrong i can test it if the cause is this. Can you put it in the first page? Thanks

It works perfectly on multitasking the way i want it but i think i found a bug

It hangs and reboot everytime i copy files and benchmarking my sdcard.. Happens twice going to try it again

- SIII GT-I9300
[Galaxy S III Android Development] Pard0ned:
As has been said before, Stock kernel does not allow swap. So - no. Won't work.
[Galaxy S III Android Development] kerbiii:
- Delete S91bestMultiTaskingFix file from etc/init.id

- Delete swapfile.swp from /cache

- Edit dalvik.heapsize back to 256mb

- Reboot

Is this the proper way to completely remove the mod?

- SIII GT-I9300
[Galaxy S III Android Development] s_o_r_e_n:
Thanks for this mod...now the multitasking is working like it should work from the begining Just out of the box. Everything works perfectly on Omega 34 with Syiah 1.8.4:)

Wysyłane z mojego GT-I9300 za pomocą Tapatalk 2
[Galaxy S III Android Development] abelle_abelle:
same here

smooth as butter
[Galaxy S III Android Development] mattiadj:
Is not completely correct mate.

Today ill make a zip for deleting mod

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] kerbiii:
Okay thanks man, ill wait for it.

Btw why does it shutdown my phone when i was transfering files on my OTG usb, happen twice it also slowdown the transfering speed

multitasking works pretty well

- SIII GT-I9300
[Galaxy S III Android Development] mattiadj:
Surely is not related with this mod.

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] kerbiii:
I see, never had that before. but i will compare it later when you post the unmod zip, i will reflash it again for now since you said its not completely remove.

- SIII GT-I9300
[Galaxy S III Android Development] mattiadj:
Thank you very much mate! Really appreciated since this mod is the result of a hard and log work of testing and fine tuning!

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] asomeras:
is the mode safe? i want to install it but what do you mean by damage your internal memory?
[Galaxy S III Android Development] edwin3210:
where is the download link? i cant find it anywhere....
[Galaxy S III Android Development] erto90:
in OP...

btw http://android.simpleweb.it/gs3/mod_fix/bestMultiTaskingFix_7.zip
[Galaxy S III Android Development] edwin3210:
erm,,, what is OP?
[Galaxy S III Android Development] erto90:
Open(ing) Page
[Galaxy S III Android Development] edwin3210:
still dont get it, where is the OP link?
[Galaxy S III Android Development] erto90:
under "the guide" ( written in red) there is the link "hidden" under the phrase Download latest bestMultiTaskingFix

hope is clear now..
[Galaxy S III Android Development] LRC1710:
before flashing this mod, I have a question, i ust flashed the latest siyah kernel on cmw... will it work like this or do I need to flash the .tar file using odin to change the recovery as well? thanks in advance
[Galaxy S III Android Development] erto90:
just flash the mod in recovery.. as every file you flash..

don't make problematic easy things :D