yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Android Development] axetilen:
I have some comments about swap and zram:

- zram also uses internal memory so it will have the same result as swap

- zram eats an amount of REAL ram in order to compress and decompress ram blocks. The more zram size, the more it eats your ram -> I and Yank hate zram

- zram may create lag while gaming because of compressing and decompressing data. You can see an typical example in normal WIndows pc with RAM optimizing apps -> android works better but more or less they could slow down the system while doing their jobs

- swap doesnot compress anything -> no lag

- swap in internal memory is a lot faster than sdcard reading and writting speed even with class 10 (unless you have a sandisk extreme pro sdcard)

- you can easily unplug your sdcard everytime. With hardswap, you can't or you have to swap data back to ram before removing sdcard -> annoying

- swapping in cache partion doesnot waste your space. We have 1 gb cache partition, problems? :)

- I'm using 256mb swap and it works perfectly. not recommend swap with ROW scheduler because Read > Write -> less efficient => I recommend SIO

but if you can cope with sdcard speed, degradation and not frequently remove it => use hardswap
[Galaxy S III Android Development] erto90:
I would suggest a thing:why,instead to test yourself only ( more time and more tests to do and then less opportunity to find bug fast) dpn't release BETA version in order to let users test themselves and then help you improve faster the work

The goal will be more free time for you and more accurate testing in different enviromnets

Take a consideration:)

E Buona giornata!
[Galaxy S III Android Development] Erahgon:
Re: [MOD][JB/ICS][15DEC] bestMultiTaskingFix 7 - Multitasking with no lags!

Got some of your facts wrong there:

With zRam: It doesn't use internal memory at all. It just compresses cached data and stores it in the RAM.

It's not the actual compression and decompression that takes RAM. The compression and decompression takes some amount of CPU power, which we have a lot of. The lag is much lesser, and so is the risk, as it's the RAM that's used.

Although it compresses data, that's not even close to as much of a lag when compared to the lag the I/O of sdcard based swap has (both internal and external).

When using swap on internal memory, it's not the space we're worried about, but rather the sdcard wearing out due to the amount of I/O. You can't replace internal memory like you can replace external memory.
[Galaxy S III Android Development] Product F(RED):
All I know is that after applying this fix, the phone runs smoother, but it stutters a lot when doing things.
[Galaxy S III Android Development] mattiadj:
R: [MOD][JB/ICS][15DEC] bestMultiTaskingFix 7 - Multitasking with no lags!

Guys I'm recompiling a test version using zram.

Of course a crucial requirement is a kernel with zram support.

Before posting my mod I'll ask to yank the permission to attach his kernel. As I know only yank kernel supports zram.

From universe with my gs3
[Galaxy S III Android Development] Theshawty:
Re: [MOD][JB/ICS][15DEC] bestMultiTaskingFix 7 - Multitasking with no lags!

Forget it. Yank doesn't want his work on XDA.
[Galaxy S III Android Development] mattiadj:
R: [MOD][JB/ICS][15DEC] bestMultiTaskingFix 7 - Multitasking with no lags!

Asking is never a mistake :)

From universe with my gs3
[Galaxy S III Android Development] Theshawty:
Re: [MOD][JB/ICS][15DEC] bestMultiTaskingFix 7 - Multitasking with no lags!

I think yank was pretty clear on that note, however.
[Galaxy S III Android Development] Product F(RED):
I believe Siyah kernel initially supported zRAM but removed it. Find "zRAM" in this page. It's still in the FAQ: http://xdaforums.com/showthread.php?t=1709686

It's a great kernel and the STweaks app that comes with it allows you to change pretty much all possible values within the kernel extremely easily.
[Galaxy S III Android Development] mattiadj:
R: [MOD][JB/ICS][15DEC] bestMultiTaskingFix 7 - Multitasking with no lags!

Yes but now has only swap support

From universe with my gs3
[Galaxy S III Android Development] erto90:
Shark-A6 by Perka got zram support :) also zcache and cleancache
[Galaxy S III Android Development] Mr.Nitro:
it awesome

works perfect with mee

thnxxx :)
[Galaxy S III Android Development] mattiadj:
R: [MOD][JB/ICS][15DEC] bestMultiTaskingFix 7 - Multitasking with no lags!

What is cleancache? Zram and zcache are the same

From universe with my gs3
[Galaxy S III Android Development] erto90:
Check shark a6 kernel thread,is explained

Btw

http://xdaforums.com/showpost.php?p=39370683&postcount=107
[Galaxy S III Android Development] mattiadj:
R: [MOD][JB/ICS][15DEC] bestMultiTaskingFix 7 - Multitasking with no lags!

Good to see. But how try zcache? Uhm I have to ask to kernel dev

From universe with my gs3
[Galaxy S III Android Development] Erahgon:
Re: [MOD][JB/ICS][15DEC] bestMultiTaskingFix 7 - Multitasking with no lags!

Probably via a module, and a insmod line in init.rc.

Found comp cache when I was bugging around with init.rc today:

# Init Compcache by taejin5.park

chmod 0664 /sys/class/lmk/lowmemorykiller/lmk_state

chown system system /sys/class/lmk/lowmemorykiller/lmk_state

chmod 0664 /sys/block/zram0/disksize

chown system system /sys/block/zram0/disksize

write /sys/block/zram0/disksize 209715200

chmod 0664 /sys/block/zram0/initstate

chown system system /sys/block/zram0/initstate
[Galaxy S III Android Development] Yank555:
Re: [MOD][JB/ICS][15DEC] bestMultiTaskingFix 7 - Multitasking with no lags!

Check yoyr init.rc, if it's still Sammy stock those lines are more or less still present, try :

grep zram /init.rc

JP.

PS: zram was formerly known as compcache or ramzswap.

Sent from my Sotmax V15 / Yank555.lu SGS3 U8 kernel v3.3d-beta2 (Linux 3.0.70) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] gkhushal:
Re: [MOD][JB/ICS][15DEC] bestMultiTaskingFix 7 - Multitasking with no lags!

Will this work on stock kernel. &stock rom .??

will it effect battery life. ..??
[Galaxy S III Android Development] aadil7:
have been waiting for version 8.. any news on a feature? or maybe a changelog?
[Galaxy S III Android Development] alberber:
Re: [MOD][JB/ICS][15DEC] bestMultiTaskingFix 7 - Multitasking with no lags!

Finally I got v7 to work with any kernel...

The swapfile.swp was just 600kb (when using a kernel different to siyah or perseus) not 600mb. I created a new one and modified the init.d script to use the new swap file.

Everything is fine now, just waiting for v8 :)

Enviado desde mi GT-I9300 usando Tapatalk 2
[Galaxy S III Android Development] Product F(RED):
Are you saying this script made a 600kb swap? Because it made my phone slower and made it stutter constantly, not faster. After removing the script, my phone was super smooth.
[Galaxy S III Android Development] alberber:
Well, what I say is that when you use this mod with a kernel different to siyah or perseus, you'll have just 600 KB. You can check it by typing "free" in terminal, you'll see that your total swap is just 596 kb. It must be an error which I don't know why happens.

Now I have created another 600 MB swap file and it works fine, my phone doesn't lags, so I don't know if it could be due to the 600kb swapfile or whatever...

Anyway, as far as I know, swap could be slow when you are using a lot of apps, because your ram runs out and they all start using swap, which is worse than real ram.

May be I'm mistaking, I don't really know how to express such things in English and in fact I know few things about all of this.
[Galaxy S III Android Development] el_tute:
how do you create the 600mb swap file?? did you change something in the scrip?? thanks!
[Galaxy S III Android Development] alberber:
1. Download swapper from Google Play.

2. Tick "Active Swap on Boot" and select "SD Card FAT Partition".

3. Write "600" and wait til the app create the swap.swp file. It will put it on your internal sdcard (phone). Move it to /cache folder.

4. Open bestMultiTaskingFix init.d script and change everything where appears the "swapfile.swp" to "swap.swp" (the one you recently created). Do this in order to the script to use the new file.

5. Reboot your phone and delete the "swapfile.swp" (that one which is not 600 mb).

6. Check if it's working by typing "free" on terminal emulator.

Hope it helps you ;)
[Galaxy S III Android Development] alberber:
Re: [MOD][JB/ICS][15DEC] bestMultiTaskingFix 7 - Multitasking with no lags!

BTW you must untick "Active swap on boot" after all this proccess if you don't want swapper to create another 600 MB file on your internal sdcard.

Enviado desde mi GT-I9300 usando Tapatalk 2
[Galaxy S III Android Development] uberto.costanzo:
is it Dangerous for internal sd card? i read is very Dangerous for internal sd this work? thanks for reply
[Galaxy S III Android Development] alvaretto:
Are you maybe using Jkay mod? I aske because I had the same problem when I thicked an option in deluxe app that said: Set maximum running apps to 50. When i unchecked that option all went to normal.
[Galaxy S III Android Development] faddys123:
Is this working?
[Galaxy S III Android Development] yasser86:
does it work for samsung s3 with omega rom jellybean 4.1.2 with out supercharger installed

or I have to switch to stock ?
[Galaxy S III Android Development] rlorange:
Hey I have successfully implemented 4 parallel cache partition based swap files running in parallel in SiyahMods. Works very well! Should consider using in this mod however not every busy box supports swap priority setting.
[Galaxy S III Android Development] mattiadj:
Which are advantages of using 4 parallel files of swap?

From universe with my gs3
[Galaxy S III Android Development] rlorange:
Well it seems to run a lot faster than before thought I'd try it and so far it's as fast as zram but I have 150MB more free ram
[Galaxy S III Android Development] alberber:
Any chance on getting a bestMultiTaskingFix v8 with some of the new features around here? (zram, parallel files of swap...).

mattiadj I think you could build a much better version with all of this.

Enviado desde mi GT-I9300 usando Tapatalk 2
[Galaxy S III Android Development] nagato.fm:
Ok, I'm really interested in porting it to my device (SGSA). I've checked through files in flashable archieve and it seems like one of these tweaks (app locker) can work on any device, can't it? The question is how to adjust the second script to my phone's values. Can you write a detailed explanation of what exactly the second script does?
[Galaxy S III Android Development] mattiadj:
And finally after a lot new version 8 is here!

Here is the changelog and keep in mind to disable zram before use it!!!
[Galaxy S III Android Development] SickL1408:
May I know what kernels do you suggest using to apply this fix? I mean I get the parameters, just want the names of a few compatible kernels to be specific.
[Galaxy S III Android Development] mattiadj:
I'm using latest perseus with 0 zram and all is smooth

From universe with my gs3
[Galaxy S III Android Development] Musko:
[MENTION=2596418]mattiadj[/MENTION]

Is really necessary to change values in build.prop?

Thank you.
[Galaxy S III Android Development] mattiadj:
Really really necessary no but can help a lot
[Galaxy S III Android Development] Kcake:
Holy cow! This works! Hats off to you bro! Great work View attachment 1949072
[Galaxy S III Android Development] gkhushal:
Can I use this on stock kernel

Am on arhd
[Galaxy S III Android Development] mattiadj:
No. Stock kernel hasn't swap support
[Galaxy S III Android Development] hamer221:
Working really good thanks!!
[Galaxy S III Android Development] h_b1985:
Hi guys,

I have a question, currently I'm using a total stock galaxy s3, 4.1.2, I want to know what is the process to have this mod?!

After rooting the phone can I just change kernel and use this mod?

Thanks in advance :)
[Galaxy S III Android Development] drew071:
Yeah that's exactly it. Just change the kernel, one that supports swap. Then setup as per the op and flash the zip with cwm or mobile odin.

@op

Awesome work. Just ran fifa and mid game opened real racing 3. Had a race and then came back to fifa to find it was ready to carry on the match from where I left it. Absolutely awesome. My phone can actually multitask now.

Thanks

Drew071
[Galaxy S III Android Development] rlorange:
[MENTION=2596418]mattiadj[/MENTION] was just wondering if you could credit me with the parallel 4 file swap method pls ;)
[Galaxy S III Android Development] mattiadj:
Have u credit me in your thread mate? I haven't see it... :)

From universe with my gs3
[Galaxy S III Android Development] drew071:
Does this mod affect battery. I've noticed that since installed my phone won't sleep as much?

Drew
[Galaxy S III Android Development] mattiadj:
0 impact on battery with version 8

From universe with my gs3
[Galaxy S III Android Development] drew071:
My phone only deep sleeps one minute in 10. it slept 7mins total in 1 hour. the only thing ive changed is installing this mod. I have cleared the memory and stopped all running tasks and it still will not sleep properly.

Any help will be great. ive got BBS and no alarms are showing up.

Drew071
[Galaxy S III Android Development] rlorange:
Didn't I? Lol! **** sorry man I thought I did... will do my friend

---------- Post added at 11:52 PM ---------- Previous post was at 11:39 PM ----------

Done!
[Galaxy S III Android Development] habylab:
Could you go into more detail: what are the kernel tweaks?
[Galaxy S III Android Development] jbejaranogarcia:
Look at the first paragraph of the tweak thread, written by its author ....
[Galaxy S III Android Development] jbejaranogarcia:
Sorry mate, developer says it doesn't work on miui :(
[Galaxy S III Android Development] habylab:
Any more update details?

Sent from my Galaxy S3 (AVS2). Long live the original Galaxy S :)
[Galaxy S III Android Development] mattiadj:
I have written all details. If you want know more, look into the code and compare v 7 and 8 :thumbup:

From universe with my gs3
[Galaxy S III Android Development] SUNUN:
i have latest [Kernel][26/04] if i need to disable virtual machine swappiness?
[Galaxy S III Android Development] mattiadj:
Yes is better

From universe with my gs3
[Galaxy S III Android Development] SUNUN:
thx, and if i vant remove patch what to do? just flash stock kernel or?
[Galaxy S III Android Development] mattiadj:
Just use remover in op

From universe with my gs3
[Galaxy S III Android Development] s_o_r_e_n:
Started testing...looks really promising on the beginning:) apps really stay in memory. E.g. Facebook, tapatalk app after heavy multitasking are still in memory, no lags...hope it will stay like this :)

Wysyłane z mojego GT-I9300 za pomocą Tapatalk 2
[Galaxy S III Android Development] SUNUN:
thx
[Galaxy S III Android Development] mattiadj:
I'm working on new improved version. I'm testing it.

From universe with my gs3
[Galaxy S III Android Development] Tabs78:
hi, sorry for my english

can i use this mode on 4.2.2 leak?

can i used this mod with stock kernel?

can i use this rom to solve redraw home problem?

thanks
[Galaxy S III Android Development] freddy1991:
Me2

Wanna know this
[Galaxy S III Android Development] stevendeb25:
Link is dead. Pls reupload

Edit: working now thanks
[Galaxy S III Android Development] ginzo:
For use with Boeffla kernel it is suggested to remove swap from the fix, right?

!Live! from my Galaxy S3

Rom: Maya v4 XXEMD2 ♥

Kernel: Boeffla 2.12 beta5

Modem: Buemc2

Operator: Vodafone

Recovery: Philz Touch
[Galaxy S III Android Development] axetilen:
only when you use zram. if you dont use zram, I recommend keeping the swap function

using both is useless
[Galaxy S III Android Development] Philips9:
[MENTION=2596418]mattiadj[/MENTION] is there a new update for the latest 4.1.2 (MD3)? Or I can try your mod anyway?

Thx in advance
[Galaxy S III Android Development] jayeshup:
Can i install this with Rom Omega V45 (stock 4.2 JB xxufme3) ? and how to check hard swipe thingy?
[Galaxy S III Android Development] metalsaur:
Unfortunately there is no custom kernel that support swap for 4.2.2 yet.
[Galaxy S III Android Development] tomertb:
Hi can i use this mod with jkay on md3?
[Galaxy S III Android Development] axetilen:
of course, it doesnt affect anything. these are 2 very different things
[Galaxy S III Android Development] petrifyre:
Omega 27.1, yes.. there is swapfile.swp but the file only 350bytes of size..
[Galaxy S III Android Development] mattiadj:
Strange! Please post the result of df

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] petrifyre:
Here you are..
[Galaxy S III Android Development] mattiadj:
Thanks.

Try to update your busxybox to latest with the app mentioned in op an tell me.

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] SETdown:
Which route is present the file?

In /cache only see lost+found and recovery folders.
[Galaxy S III Android Development] petrifyre:
Done that.. Still the same..
[Galaxy S III Android Development] mattiadj:
You must have a swapfile.swp file.

It's very strange if you don't have it.

I'm running latest version of script and all is ok here

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] mattiadj:
Check your pm and tell me.

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] SETdown:
Here is my Screens.

Omega v27

Siyah 1.6.8

Recovery 6
[Galaxy S III Android Development] manager77:
not working for me.....stock tom XDLIB..with S 1.6.8 kernel....
[Galaxy S III Android Development] mattiadj:
Guys I'm trying to understand what is the problem.

Sorry for delay I'm working on it. In my situation I have not problem here.

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] naveediftikhar:
same here...swap 0! arhd 11.0!
[Galaxy S III Android Development] tarekkkkk:
Could u upload what should the swap reveal instead of 0 ?
[Galaxy S III Android Development] mattiadj:
Guys try the new 1.3 version and report please.

I need to understand your problem.

I'm on wanamlite + siyah 1.6.8 + latest busybox = zero problem at all!
[Galaxy S III Android Development] gaetanolip:
Warning

you are creating a swap file in internal SD instead of external SD. So you are degrading your internal memory more and more, you are writing and reading internal memory continuously, and this is very dangerous.

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] petrifyre:
It should be like this

This using yank555 method
[Galaxy S III Android Development] mattiadj:
Not very dangerous mate. Swap size is small and minfree values are not very low. It's surely supportable by system. Take it easy

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] manager77:
swap is always ''0''....with v. 1.3...
[Galaxy S III Android Development] mattiadj:
Can you check if in /cache folder the swapfile.swp is present please?

If not execute these command from terminal emulator and tell me the result please

Thanks
[Galaxy S III Android Development] gaetanolip:
Even if the swap size is low the internal memory is "one " and "not divisible ".

so if you degrade the swap size you degrade the entire internal memory.i would not made your mod, it is dangerous. you should advise in op that internal memory may degrade, then everyone can choose to make it or not.

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Gizumhi:
Hi there mate.

It seems to be a great job, I'll try it asap.

I've read that u locked in some apps in memory, is it possible to add more apps in memory such as TW and Whatsapp?
[Galaxy S III Android Development] villain_allain:
I just found this mod and i want to try it.

I wanted to know what kernel is supported in this mod? Thanks
[Galaxy S III Android Development] dawabz94:
Hi all

I'm wondering too .. just tried latest available redPill but swapon is not implemented

Trying Latest perseus, will report back ..

-- Edit --

Latest perseus (http://xdaforums.com/showthread.php?t=1927852) flashed widh mobile Odin. Manually copied the busybox file and manually launched the script (not in init.d yet)

Will see how it goes

Thanks !
[Galaxy S III Android Development] axetilen:
install busybox from play store and use smart install

try again
[Galaxy S III Android Development] dawabz94:
I already have busybox installed

If you have a look to the update script, you notice it has its own busybox embeded to avoid such issue.

I have en error message when running the swapon command (not implemented), which is related to the kernel

Now running perseus kernel on my note 2, and mod manually enabled, so will see how it goes ..

Thanks :)
[Galaxy S III Android Development] dawabz94:
Impressive performance, really

My device actually *CAN* do REAL multitask

Should be native on android; makes a huges difference

Now moved to my init.d folder

Still using/testing, thinking abt donating soon (for both ExtSwap and this one)

Excellent work
[Galaxy S III Android Development] Philips9:
What rom and kernel are you using?
[Galaxy S III Android Development] dawabz94:
I'm using Perseus kernel with Du@lNote stock based custom ROM

Disabled ZRam with stweak app that comes with perseus kernel
[Galaxy S III Android Development] Philips9:
Thx. I'm using wanam v.6.7 (4.1.2) with perseus 36.3 kernel.

To disable zram I need to set from 400 to 0 mB, right?

And swap to 90% is ok?

After that I could install this mod right?

Thx in advance
[Galaxy S III Android Development] dawabz94:
Yes, that's what I did (set ZRAM size to zero), according to what I understood reading Perseus kernel's thread

For the swapiness, I beleive the 91bestMultiTaskingFix script overrides the value to 100 ..

See below the content of the script that sets the value and the value I can read from the system once booted

root@android:/etc/init.d # grep swappiness 91bestMultiTaskingFix
[B]echo "[COLOR="Red"]100[/COLOR]" > /proc/sys/vm/swappiness[/B]
root@android:/etc/init.d # cat /proc/sys/vm/swappiness
[B][COLOR="red"]100[/COLOR][/B]
root@android:/etc/init.d #
[Galaxy S III Android Development] tomertb:
Hi since i use this mod i have a lot of launcher redraws.. How can i fix that?

Thanks
[Galaxy S III Android Development] :
Lag

I love this mod as it makes your Device to do a REAL multitasking as s3 has only 1gb ram and i think this mod is essential , butbut !! the thing is the amazingly bad performance that i get when i use this !! its just badd .. maybe i did something wrong :( plz help me cause the phone just freezes and become unusable .. I love to have this but I LOVE TO HAVE IT WITHOUT LAG .. and note that i have lots of app more that 12 full pages ;) so i need this to work cause i use alot of ram , PLEASE HELP ME YOU GUYS :(
[Galaxy S III Android Development] mattiadj:
Which kernel are u using? Which tweaks?

From universe with my gs3
[Galaxy S III Android Development] :
I'm Using Siyah Kernel , used with many roms like fox hound , android revoloution hd and so on , no tweaks ..
[Galaxy S III Android Development] mattiadj:
Have u disabled zram in siyah? Also i suggest you to use perseus or yank kernel (you can find yank kernel here

http://yank555-lu.net/). For me yank is the best choice.

All the best

From universe with my gs3
[Galaxy S III Android Development] :
Another Question!

Not sure about zRam , btw i downloaded perseus and going to install soon , i couldn't find yank kernel in that link u sent me , it says this "This board has no forums" , do you have any other link ? and what are the things i should follow while using perseus kernel to get the best performance out of this Multitasking mod ?
[Galaxy S III Android Development] Yank555:
You need to register...

Sent from my SlimBean 6 / Yank555.lu CM10.1 kernel v1.6c-beta3 (Linux 3.0.81) powered Galaxy S3 i9300
[Galaxy S III Android Development] hsnlpy:
works like charm!!! i'm using wanamlite rom with adam kernel.i just feel like bought new phone..my phone has REAL multitasking now.thx alot