yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Android Development] Yank555:
Wouldn't work, because ...

This bit is wrong : and the rest 520 ----> ext4

That needs to be "Linux swap" not ext4.

JP.
[Galaxy S III Android Development] anup123456:
My bad !! sorry !

Thank you for replying.

Is this mod compatible with latest supercharger or should i disable it and use only this mod ?
[Galaxy S III Android Development] Yank555:
Compatible, I guess it should ... I changed the script-name for hardswap so it gets executed after supercharger, so the few parameters this mod needs should be set right.

But mixed effects due to the use of multiple mods cannot be excluded, I don't use supercharger and don't really know what it does, so I couldn't tell for sure :(

JP.
[Galaxy S III Android Development] jnr21:
Is there any other way to check if swap is working? My rom doesn't have free command, i tried to write free in terminal emulator but it says "free: not found".

Edit: Updated busybox and now free command works.
[Galaxy S III Android Development] Yank555:
Does just free work, or swap as well ?

JP.
[Galaxy S III Android Development] jnr21:
Yes i was wroted only "free" and it didn't work but now it's work because i updated busybox, as i already edited my post :)
[Galaxy S III Android Development] Vipeout:
So, how doeas the mod help with the issue of apps being closed almost instantly? I cannot play a game and then switch to 2 other apps without the game closing. Same for browser, I view a page and go to 3 other apps (whatsapp, FB, gmail) and upon returning to the browser, the page is reloading. Does this mod finally make apps stick to their current state I left them on so they won't reload from start when switching?
[Galaxy S III Android Development] Yank555:
I'd say :

1) try it out

2) don't expect miracles, using several memory hogs (typically games, browsers), they will fight for the memory they need, and the foreground app will always win ! So to some extend it will help...

JP.
[Galaxy S III Android Development] Vipeout:
Ok thx. I'm sure it'll be better than stock configuration anyways.

I really find it a shame they only put 1gb of ram, what a waste of potential... Id rather have the dualcore cpu with 2gb of ram. Oh well...

BTW Good to see you here again Yank. I used your tweaked kernels alot on the Sensation, looking forward to more quality contributions from you here :good:
[Galaxy S III Android Development] Yank555:
Hehe, thanx ;) Might have a look at my kernel, it has quite a bit of faux love build in ;)

Totally agree, that was some strange crippling decision, such a powerfull CPU and the on 1Gb of RAM :(

I have been thinking of going for a i9305 (international LTE with exynos quad and 2Gb RAM) ... but I think I'll just stick to my S3 until the S4 hit the stores :D

JP.
[Galaxy S III Android Development] Vipeout:
Goddamnit, there is a 2GB version and I only discover this now >.< I got my phone like a week ago, could as well have waited., argh
[Galaxy S III Android Development] Yank555:
Yep, you could have got yours :( It's been available since septembre, but it didn't exist yet when I got mine somewhen in late august... :mad:

Have a look here.

JP.
[Galaxy S III Android Development] Vipeout:
Awesome, I'll just go find the next bridge to jump off from, if you don't mind...
[Galaxy S III Android Development] Yank555:
Nah, it's not that bad :D

JP.

Sent from my custom ARHD 14.0 / Yank555.lu JB kernel v2.4a Aroma (JB-U6 / Linux 3.0.51) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] bordikun:
I still prefer the 1gb ram (i9300). the i9305 has only few supports here in XDA which sucks
[Galaxy S III Android Development] Yank555:
I guess that's the price arriving a few months after the elder brother and standing in its shadow. I suppose many go for the i9300 because 'they don't need LTE', and find out shortly later they would have loved more RAM :rolleyes:. I got mine a month too soon, 1Gb RAM more would have been decisive for me, though lack of support would have s*cked, I agree.

Sammy could have at least kept the partition table the same, would have been easier to support both, and at that, I was kind of surprised to see it added to the i9300 section on xda...

JP.

Sent from my custom ARHD 14.0 / Yank555.lu JB kernel v2.4a Aroma (JB-U6 / Linux 3.0.51) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] maxkushnir:
Thank you.been looking for this kind of mod.
[Galaxy S III Android Development] sprongebob:
hallo

ich verwende die _miui.polimorph_multilang_i9300_2.11.9_v4.zip

und den siyah kernel 1.7rc3

nun möchte ich diesen mod verwenden

arbeitet der mod mit dieser miui version bzw mit diesen kernel

und wenn ja was muss ich genau machen

bitte um eine deutsche anleitung

danke

translate

Hello

I use the _miui.polimorph_multilang_i9300_2.11.9_v4.zip

and the siyah kernel 1.7rc3

now I want to use this mod

the mod works with this version or miui with this kernel

and if so what should I do exactly

ask for a German manual

thank you
[Galaxy S III Android Development] Yank555:
Your ROM / kernel Combo needs to respect 2 things :

- support swap (kernel)

- support init.d scripts (ramdisk - ROM)

Then you need to partition your sd-card so as to have 2 partitions :

- FAT32 primary partition

- Linux Swap primary partition

Both

must

be

primary

, else it won't work !

The just flash the MOD and you're good.

Auf Deutsch :

Deine ROM / Kernel Combo muß 2 Eigentschaften besitzen :

- swap Support (Kernel)

- init.d Script Ausführungs-Support (ramdisk - ROM)

Dann mußt du deine SD-Karte vorbereiten (paritionieren) damit du genau 2 Partitionen drauf hast :

- Primäre FAT32 Partition

- Primäre Linux Swap Partition

Beide

müssen

primär

sein, ansonsten wird diese MOD nicht funktionieren können !

Anschliessend nur noch die MOD hier flashen und das wär's.

JP.
[Galaxy S III Android Development] stfudude:
If I use this ExtSd2InternalSd mod, can I still use this hard swap mod in OP?
[Galaxy S III Android Development] Yank555:
Yep you can, both mods work on different partitions ;)

JP.

Sent from my custom ARHD 14.0 / Yank555.lu JB kernel v2.5 Aroma (JB-U6 / Linux 3.0.52) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] stfudude:
You mean hard swap will still work even though the location of int and ext memory is different than stock (ext memory detected as int memory, and vice versa)? At first I thought I have to make a swap partition in internal memory because of that mod.. I need more clarification.
[Galaxy S III Android Development] Yank555:
Nah ;)

Ok what int2ext mod does is swap the mount points of internal sdcard partition and the first primary partition of the external sdcard.

Swap lies on the second primary partition of the sdcard, so no impact.

JP.

Sent from my custom ARHD 14.0 / Yank555.lu JB kernel v2.5 Aroma (JB-U6 / Linux 3.0.52) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] stfudude:
Oh I see. Thanks a lot, my good man! :good:
[Galaxy S III Android Development] Erahgon:
Hey Yank!

Have you tried this swap mod with the new leaked ROM XXELK4 or the custom ROMs based on it?

I decided to try out Omega ROM 33.1, and give the "better multitasking fix" v6 by Matt, when I noticed that swap was behaving strangely on it - showed me 544 available, 544 used, 0 free when I typed "free" in terminal. The device had just been started!

Then I decided to remove that and try out the trusty ol' swap mod by Yank, but it's not working either. When I type "free" in terminal, I get all 0s for the swap.
[Galaxy S III Android Development] Loquitur:
Sorry for asking noop question. Is the mod same as swapper for root app seen in play store? any further advantage? Thanks in advanced.
[Galaxy S III Android Development] Yank555:
It won't probably work as you'll be using stock kernel, which has no swap support compiled in ... and most likely, if you use the full stock ROM, there won't be init.d support either (though custom ROMs will likely have added that again).

Either you use the old libs (for Video compatibility with older kernels) and flash a custom Update 6 based kernel with swap support (like mine), or you will have to wait until the Update 7 sources become available...

NB: Might be a good idea to install busybox properly to "/system/xbin" as well, just in case...

Can't remember what exactly swapper does, but that has been discussed a while ago, so you might try searching...

JP.
[Galaxy S III Android Development] Erahgon:
Oops! Forgot to mention I had Siyah 1.7RC3 flashed during the testing.

Also, busybox installed to both bin and xbin (just to be safe) using Stericson's installer from the Play Store.

I guess it's a problem similar to the broken video recording on this firmware paired with with update 6 based kernels. I.e. a kernel issue. Should probably wait for the update 7 sources!

Thanks JP!
[Galaxy S III Android Development] stfudude:
Oh bummer! Kernel issue? I was going to make swap partition on sd card sometime tomorrow to "increase" ram but thanks to you I can postpone it. I wonder when Samsung will release update 7 sources.. hmm
[Galaxy S III Android Development] Yank555:
Expect up to 2-3 weeks :(

But swap should be working anyway using a custom kernel, given the kernel actually HAS swap support compiled in. I'm not following Siyah closely, but I know swap has been included and removed so you might want to check...

JP.
[Galaxy S III Android Development] ficti0n851:
Swap is working on LK4 with the latest Siyah using command

swapon /dev/block/mmcblk1p2

If I remember right the script fails with cant find swap partition. Much as I would like to I cant help at the moment as my wife is using this phone as a wifi hotspot for her work.
[Galaxy S III Android Development] Yank555:
Well then it can only one of the other two reasons ;)

- init.d support (sounds not like it, as you said it quits, I suppose you're talking about the init.d script, not the installation script)

- busybox needs to be installed in /system/xbin

JP.
[Galaxy S III Android Development] ficti0n851:
Teaches me to be cooking dinner and typing on here, sorry more info, init.d is working as just the swapon command in a script in /system/etc/init.d mounts swap.

Install script works fine, permissions are set and everything looks good but no swap mounted after boot.

Will test a few things now, wont be long.

---------- Post added at 12:48 AM ---------- Previous post was at 12:31 AM ----------

Ok problem found, was busybox location. Was in /system/bin.

Wish I had had more time last night to test.

All working on LK4 with latest siyah with busybox installed in /system/xbin

Thanks again
[Galaxy S III Android Development] Erahgon:
Ok! Srry for the late update/report, I'm outta town, hence the delay. So I flashed version 33.2 of Omega ROM and Siyah 1.7 stable.

Swap is working fine without the need of any tinkering on that setup. Thanks JP!
[Galaxy S III Android Development] stfudude:
hard swap mod is running perfectly here. my setup are:

Primary ROM: Perka CompilationROM XXELK4 (Android 4.1.2)

Kernel: Siyah Dual boot 1.8

Mods: extsd2internalsd v4 + (maybe other mods that I don't remember)

Secondary ROM: Paranoid Android. (but I didn't test yet)

Misc: I didn't use the recommended values for LMK as OP suggested in the 2nd post. So far my phone is running fine. Will change as soon as I notice any lag or whatnot.
[Galaxy S III Android Development] makalolo:
Hye OP just wan to ask i got 8gb of sd card what value i need to re partition for linux swap?
[Galaxy S III Android Development] Yank555:
I'd recommend 256Mb (that's what I use), or 512Mb if you really want a lot of swap. Users do run bigger swap partitions than that, but in my phone usage pattern, I've come to best results with "only" 256Mb.

JP.
[Galaxy S III Android Development] 29988122:
Sorry I'm a beginner to this, I wanna make sure that I didn't do anything wrong ><.

I have stock Jellybean 4.1.1 with syiah kernel 1.8 installed(for swap support).

I flash the installation script via recovery. After reboot, I didn't see anything changed, the swap isn't enable(tried cat /proc/swaps no partition has showed up).

Then I manually created a init.d folder 777 under /system/etc, because I saw nothing there. Flash again, the 991swap showed there, but nothing else happened.

I ran the script by script manager, and lots of errors occurred.

Like: /xbin/fdisk not found

awk not found

grep not found

swap.x.log no such file or directory

blahblah

Maybe I need to install something else, not only the script itself and swap supported kernel?

: - frustrated
[Galaxy S III Android Development] makalolo:
Have you already make partition your sd card with linux swap?
[Galaxy S III Android Development] Yank555:
Good question by makalolo, plus busybox is not installed , or not installed as should (in /system/xbin). Use Stericson busybox App from Play Store.

JP.

Sent from my custom Paranoid Android 2.54 / Yank555.lu CM10 kernel v1.2a Aroma (Linux 3.0.53) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] Obagleyfreer:
I installed the script and it said it installed fine but I have no way of checking it.

I can't run any commands in terminal emulator, it's always says "not found"

And I have no init.d file in system/etc. Im not really sure what to do now.

Im using Siyah 1.8 with busybox and stock JL4 .

Any help would be great!

Thank you
[Galaxy S III Android Development] Yank555:
Ok, here are a few things to look into :

1) if there is no /system/etc/init.d folder, you need to create one (use a root explorer, give drwxr-xr-x permissions)

2) be sure to have a primary Linux swap partition on your sd card (from what I read you have, but just to be certain)

3) check if you have busybox installed correctly (in /system/xbin), if not, use Busybox by Stericson app in Play Store to do so

4) reboot into recovery and reflash the mod

JP.

Sent from my custom Paranoid Android 2.54 / Yank555.lu CM10 kernel v1.2a Aroma (Linux 3.0.53) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] Obagleyfreer:
Thank you for your reply,

I created the init.d folder and assigned the correct permissions.

I checked busy box is installed In the right place. It is :)

I re flashed the zip and now I do have a text file created in the init.d folder however when I read the script it says that it can't find a swap partition so no swap for me.

Which is odd, I check it on mini tool partition wizard and it's definitely there. Linux swap partition, primary and ID tagged correctly.

It also says it installed fine in CWM so I'm a little confused.
[Galaxy S III Android Development] Yank555:
Can you post the output of these commands :

fdisk -l /dev/block/mmcblk1

which swapon

And post the /data/swap.0.log also.

JP.

Sent from my custom Paranoid Android 2.54 / Yank555.lu CM10 kernel v1.2a Aroma (Linux 3.0.53) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] Obagleyfreer:
The command in the terminal simply says "not found" whenever I try.

And here is a screen shot of the swap.0 log.

It's really puzzling because the swap partition is definitely there.

Thanks mate
[Galaxy S III Android Development] mekhonte:
System tuner app suggests that my swappiness is 20 while cat /proc/sys/vm/swappiness shows 100. I don't know which one should I trust.is it possible for you to check
[Galaxy S III Android Development] Yank555:
Then you don't have busybox installed !

Use Busybox app by Stericson on Play Store, and be certain to install it into /system/

x

bin.

JP.

Sent from my custom Paranoid Android 2.54 / Yank555.lu CM10 kernel v1.2a Aroma (Linux 3.0.53) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] Yank555:
Never used System Tuner to check swappiness, the sysfs interface is most definately accurate.

JP.

Sent from my custom Paranoid Android 2.54 / Yank555.lu CM10 kernel v1.2a Aroma (Linux 3.0.53) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] mekhonte:
Checked again! swappiness goes to 20 after reboot and I have to use system tuner or

echo 100 > /proc/sys/vm/swappiness after reboot.
[Galaxy S III Android Development] Yank555:
Using any mods/scripts ?

JP.

Sent from my custom Paranoid Android 2.54 / Yank555.lu CM10 kernel v1.2a Aroma (Linux 3.0.53) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] Obagleyfreer:
I do have Busybox installed. I used Busybox pro (by Stericson) to check and I have version 1.20.2-cm9 installed to system/xbin.

At least that's what it tells me anyway.

Thanks for your help :)
[Galaxy S III Android Development] Yank555:
If you get a "cannot find" on commands like fdisk or swapon ... then there's something wrong with busybox.

JP.

Sent from my custom Paranoid Android 2.54 / Yank555.lu CM10 kernel v1.2a Aroma (Linux 3.0.53) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] mekhonte:
Thanks for the suggestion. Problem was v6 super charger script. It was setting swappiness to 20. Changed that line to 100.

Do you have any suggestion for below: ?

busybox sysctl -w vm.min_free_kbytes=15360;

busybox sysctl -w vm.oom_kill_allocating_task=0;

busybox sysctl -w vm.panic_on_oom=0;

busybox sysctl -w vm.overcommit_memory=1;

busybox sysctl -w vm.swappiness=100;

busybox sysctl -w kernel.panic_on_oops=1;

busybox sysctl -w kernel.panic=30;
[Galaxy S III Android Development] Obagleyfreer:
Thank's for all your help mate, finally sorted it.

I re-installed busybox and now it seems fine....

How can I check it's now using the swap partition?

I typed swapon in terminal, is this all I need to do?
[Galaxy S III Android Development] Yank555:
Swapon sbould be handled on boot by my script. To check if it's being used :

free

cat /proc/swaps

JP.

Sent from my custom Paranoid Android 2.54 / Yank555.lu CM10 kernel v1.2a Aroma (Linux 3.0.53) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] TrickyTown:
Help Me

it's work on galaxy ace duos s6802........??????????

plz tell me....
[Galaxy S III Android Development] Frenix27:
I flashed this but every time I try to put an app on sd ext link3sd say to me:

pkg:/data/app/com.adobe.air-1.apk

Failure

[INSTALL_FAILED_INSUFFICIENT_STORAGE].

Obvioulsy I have enough space on sd ext (2 gb ext2)

Please help me!!!!!!!!!!!!!!!!!!
[Galaxy S III Android Development] Yank555:
If it has the same device structure (/dev/block/mmcblk1 = external SD card), then it should.

Well I don't quite get the correlation with hardswap ?!

link2sd and hardswap are two totally different things...

JP.
[Galaxy S III Android Development] Frenix27:
I know but I tried to flash it because I don't know how to do. Do you know whick would be the problem?

Thanks :)
[Galaxy S III Android Development] Yank555:
Well it's kind of off topic, so let's keep this short (or else PM)...

If it says not enough space, you should move more to sdext, but on the other hand, not enough space for apps on an SGS3 ?!? you have at least 10-11Gb for apps !! ;)

Beware that on SGS3 the more data you put on internal SD, the less free space you will have for apps, so put a max of your data on external card, so as to free up space for apps (/data).

JP.
[Galaxy S III Android Development] Geo1997:
Works on Omega v34 :)

I've got a class 4 sd card. What should be at least a good score for the sd card score on Antutu ?

Edit : I can't choose the extSdCard with the new version of Antutu... do you have any other benchmark ?

Edit2: Some benchmark, is it ok ? :

"SD Card Tester" : Writing 2.53 MB/s & Reading 9.72 MB/s

"SD Tools" : Writing 5.2 MB/s & Reading 15.7 MB/s
[Galaxy S III Android Development] Yank555:
Well can't tell for sure, I had swap running on my Transcend class 4, worked fine on the HD2 and the Sensation. If you have benchmark tools, what matters is random access, if they bench only on sequential access, that won't be very representative of what swap does.

JP.

Sent from my custom Paranoid Android 2.54 / Yank555.lu CM10 kernel v1.3 Aroma (Linux 3.0.54) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] ginodp:
Question this should work on your kernel right? (Yank555.lu kernel v1.3)

I made a partition 512 mb and its primary and ext2.

It's behind the fat32 block in minitool. Or should it be infront of the fat32

When I install the zip file i get "Installation aborted."

I have busybox installed in xbin.

Am I doing something wrong or is the kernel I use no good for this?
[Galaxy S III Android Development] kaynpayn:
Going to install this as soon as i have a bit more time, i'm definitly looking to fix that bad habit android has to close stuff i recently multitasked out of. Got a question, more like curiosity. I've read the explanation carefully, really interesting. Also had a look at your wiki swappiness link. I realize they are refering to desktop systems there which the S3 def is not, but they recommend setting it for 60 as 100 might swap too aggressively and decrease performance. I also realize the S3 has memory issues (and therefore this mod is needed) so i understand why setting it to 100. What i'd like to ask is, from someone who has a lot of experience using swap what are your thoughts on using it set for 60? Could there be that a sweet spot may exist below 100? (since i don't really know what 0-100 means except it will try to swap more or less, i mean it's not an actual mesure like 10mb, is it?)

Thanks!
[Galaxy S III Android Development] Yank555:
The partition must be of type 'Linux swap' not 'ext2', and then it'll work ;)

JP.

Sent from my custom Paranoid Android 2.54 / Yank555.lu CM10 kernel v1.3 Aroma (Linux 3.0.54) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] Yank555:
Correct, it's not a measure, it's a rate if you want.

You are correct as well when you say the wiki talks about desktops.

The main difference lies in the fact that a desktop won't have Android's Low Memory Killer, so getting low memory on a PC will happen, inducing swap, one of the reasons to swap out, the other reason is the time since a memory page hasn't been used (swappiness will have an effect on this time laps).

Android instead will take care of never getting in a low memory state. So the only way swap will be induced is page age, since low memory states won't happen as LMK kills tasks before that happens.

I've run swap with lower settings, works, but swap gets used only slightly.

If you use my kernel, you can test it and change the swappiness through Aroma anytime.

If you use a different kernel, you can still easily edit my script to set swappiness to your liking as well.

JP.

Sent from my custom Paranoid Android 2.54 / Yank555.lu CM10 kernel v1.3 Aroma (Linux 3.0.54) powered Galaxy S3 i9300 using Tapatalk 2
[Galaxy S III Android Development] ginodp:
Was trying for like ages yesterday night and totally misted the part that it has to be a "Linux Swap".

Works like a charm.

Thanks
[Galaxy S III Android Development] FernandM:
Ok so I tried this, I partitioned my sdcard, then made sure I had busybox installed in system/xbin, then flashed your package, but it wouldn't work. I still had 0 in the swap line. I tried nearly everything but I just can't figure this out. Even tried another rom/kernel combo(including yours) but same result. And I couldn't find the 991swap script in init.d. Any ideas?