yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Android Development] Yank555:
You can use my kernel if you want to try, have a look at my 'batcave', link is in my signature. I have recompiled the stock kernel with swap & ntfs support.

Plus I have merged it to korg updates from 3.0.15 up to 3.0.41.

My versioning is as follows :

V1.0 = stock Samsung ICS update4 (3.0.15)

V1.0.x = updated v1.0 to Linux 3.0.x

So you can choose what main korg version you want to use.

There is no tweaking whatsoever to the kernel it is pure stock with swap & ntfs support and korg updates.

I've made it for my personal use, but it's yours to try if you want.

JP.
[Galaxy S III Android Development] josuemf:
If the SD card's Class is so important, why not use the internal SD card for swap? I mean, just 512 MB of the internal USB storage won't hurt much.
[Galaxy S III Android Development] ceo.mtcl:
Will it be possible for you to compile a kernel for jelly bean only with the swap support. That's all I would like.

(I don't think we have the sourcees out yet though, so obviously we will need to wait till then.)

☞ sent from GS3 or Nexus
[Galaxy S III Android Development] Geo1997:
Cause if there is an error, it's the whole internal memory that can not be used. So you will have to buy a new device ;D

On extSdcard if there is an error, just buy a new extsdcard ;)

Envoyé depuis mon GT-I9300
[Galaxy S III Android Development] Yank555:
You answered the question, if I have the sources, of couse ;)

JP.
[Galaxy S III Android Development] Doughnut:
Does this work with JB?
[Galaxy S III Android Development] Yank555:
If you can get hold of a jb kernel with swap support, yes ...

But since no jb sources are available, I suppose there is no such kernel yet.

JP.
[Galaxy S III Android Development] Geo1997:
Sometimes the phone keeps going below 100mb and it lags totally. What should i do on autokiller memory ? I am on moderate (46,53,61)... With siyah1.5 (linux 3.0.15) and omegav13

What about using supercharger v6 with swap ? Better or not ?

And Chrome used easily 50 to 80mb on ram. Same for you ?

Envoyé depuis mon GT-I9300
[Galaxy S III Android Development] Yank555:
I suggest to set the lmk higher in this case... I use dolphin, have not yet run into this issue, I run my own 3.0.41 kernel, which is a stock Sammy 3.0.15 merged to 3.0.41.

JP.
[Galaxy S III Android Development] Geo1997:
Ok so i put on Optimum (61,76,91). I will put it higher if it's not enough ;)

And for :

"What about using supercharger v6 with swap ? Better or not ?

And Chrome used easily 50 to 90mb on ram. Same for you ?"

Envoyé depuis mon GT-I9300
[Galaxy S III Android Development] Yank555:
I don't know exactly what supercharger does, but I'm not that much into scripts that do 'magic', they will often make partly good and partly counterproductive changes.

I'm not saying they are bad, I'm just saying we all use our devices differently, with different setups, so it's very unlikely to make such a script that will be beneficial for everybody, so I rather tweak by myself ;)

JP.
[Galaxy S III Android Development] Geo1997:
" What's it do?

It makes your phone FAST... super snappy with better multitasking!

It rearranges and fixes the OOM Groupings and Priorites and lowmemorykiller values.

So basically, it's a COMPLETE MEMORY MANAGEMENT FIX!

It's the ONLY one of it's kind

NO LAUNCHER REDRAWS, faster than ever, multitasking is better... why?

Because it works with the lowmemorykiller and letting it work the way it's meant to work.

Also, because of the rearrangement, it works the same on all roms!

The problem with using minfree tweakers like AMM or AKMO is that it doesn't work the same on all roms.

Secondary apps may be in slot 3 on some roms but in slot 5 in others!

That's why you hear people comment "I tried AKMO but it didn't do anything..."

Most likely it didn't do anything because the apps weren't sitting where they were expected to be.

"

I will try SuperCharger to see if it is working good ;)

Envoyé depuis mon GT-I9300
[Galaxy S III Android Development] Yank555:
I remain very sceptical to a 'magic that works on everything', things are just too complicated to have a simple universal solution.

That would be like a drug that cures all diseases for all living beings, yet to be invented :D

Keep us posted on how it works for you ! I am always interested to be proven otherwise ;)

JP.
[Galaxy S III Android Development] rlorange:
Check your PM!
[Galaxy S III Android Development] rezapatel:
Hey, thanks for making swap almost a plug and play solution on S3.

Unfortunately, I am bumping into an issue that I shouldn't be.

I created a 550 mb Linux Swap partition on my external sd card. Ran the swap flash script from CWM and it seemed to find the partition and install the script fine. On restart, I don't see the swap, still see the values as 0.

I am using Omega v13 which apparently supports swap. Any suggestions?

Thanks!

---------- Post added at 03:43 AM ---------- Previous post was at 03:18 AM ----------

Ok, I flashed the Siyah kernel and now it the swap worked fantastically on the first boot.

I will stick with this combination and assume the issue previously was because of the stock / Omega v13 kernel.

Thanks OP ;)
[Galaxy S III Android Development] Yank555:
You're welcome. If you prefer a close to stock Samsung ICS kernel with swap support, have a look at my 'batcave', link is in my signature, feel free to try it out.

V1.0 = stock Sammy

V1.0.x = updated to Linux kernel 3.0.x

PS: I use ARHD 2.1.1 ramdisk on my kernel, just so you know.

JP.
[Galaxy S III Android Development] rkadve:
I did as mentioned in OP. 16gb class 4 card, swap = 512.

I am on stock + siyah.

As I flash, swap partition is recognised.

Any help.
[Galaxy S III Android Development] rezapatel:
You might want to make sure you're using the latest Siyah, it's v1.5, it worked perfectly for me.

---------- Post added at 08:48 AM ---------- Previous post was at 08:45 AM ----------

Thanks, I would definitely love to try it out. Will do later today. Specially, since Siyah is messing up with my LED..

Although, don't know what ARHD ramdisk is? Should it mess with the typical operation of the device? Enhance it? Sorry for asking dumb questions ;)
[Galaxy S III Android Development] Yank555:
You might have an issue with lack of init.d support in stock ROM...

Can you reissue these commands after issuing the "su" command ?

JP.
[Galaxy S III Android Development] Yank555:
The ramdisk is the root of the filesystem that comes with a rom and handles system startup. ARHD is very close to stock, so should be fine, but it's not 100% stock, and your ROM might come with a modified ramdisk, so flashing my kernel, it will replace the ramdisk. But so does Siyah kernel, it has a specific ramdisk as well.

JP.
[Galaxy S III Android Development] rezapatel:
Sounds perfect, just might offer a great combo.

I will try it out soon and share the experience for people baking Omega with your Kernel.

Thanks!
[Galaxy S III Android Development] rkadve:
Busybox was installed on system/bin, reinstalled it on system/xbin, now swap is enabled.

Thanks
[Galaxy S III Android Development] Yank555:
That would have been my next guess :D

JP.
[Galaxy S III Android Development] Musko:
May I ask what all kernels support this swap partition and this script?

Now I use SiyahKernel but for me is better Phenomenal.

Thank you.
[Galaxy S III Android Development] Yank555:
Hard to tell ... you'd need to ask your kernel dev if he compiled swap support with the kernel.

I use my own kernel (link in the signature), which is a stock Samsung ICS update 4, with swap and ntfs support, merged up to kernel.org's latest 3.0.y (3.0.41), plus I added faux's network boost modifications to it (Yank555.lu 1.0.41

a

).

So if you want to give it a go, it's your's to try ;)

JP.

PS: But I'm not into tweaking, I just want a close to stock, smooth and stable kernel.
[Galaxy S III Android Development] rezapatel:
Installed your Kernel and seems to work pretty decent, thanks!

Just a little hiccup here, the swap script doesn't work hehe.

Installed 1.041a - the version that shows the modification date as Aug 20th.

I am going to try and reinstall the swap script and see if it works.

---------- Post added at 01:56 AM ---------- Previous post was at 01:52 AM ----------

Reinstalling the swap script didn't work..
[Galaxy S III Android Development] Yank555:
What ROM are you on ? Can you post /data/hardswap.log and swap.0.log (whichever is present)

2 things I'm considering :

1) lack of init.d support

2) no busybox in /system/xbin

JP.
[Galaxy S III Android Development] rezapatel:
Using Omega v13. I installed the swap script on this ROM using Siyah Kernel without an issue, although, it didn't work on Stock firmware (I think, it's totally stock that comes with Omega).

Busybox was already installed in /system/xbin (just tried reinstalling as well, without luck). Also tried, reinstalling the swap script, without any luck.

Files you requested for attached. View attachment swap.zip

p.s. couldn't upload the log files, so i zipped them both together.

Thanks!
[Galaxy S III Android Development] Yank555:
Strange, the swap.0.log shows it's working !?

Can you try the following :

1) delete all swap.*.log files and reboot to see if a new one is created, if so please post it

2) in a terminal type the following commands and post their results :

su
free
uname -a
cat /proc/swaps
swapon /dev/bloc/mmcblk1p2
/system/xbin/swapon /dev/bloc/mmcblk1p2
ls -l /system/xbin
free

So I can see if the swap command is available where I look for it, and mainly if busybox can activate swap.

JP.
[Galaxy S III Android Development] torsrex:
Have you created a swap partition on your sdcard?
[Galaxy S III Android Development] rezapatel:
Yup there's a 550 mb Linux swap partition (last partition) available on the SD card. Thanks!

---------- Post added at 10:50 AM ---------- Previous post was at 10:49 AM ----------

Currently I moved back to Siyah and the script runs the swap without any worries..
[Galaxy S III Android Development] Musko:
One question for swap partition, must be first (before fat32) or last (after fat32) on SDCard?

Thank you.
[Galaxy S III Android Development] Mopral:
Last on SDcard!
[Galaxy S III Android Development] Yank555:
Hi,

Just noticed, I made a typo :(

the device is : /dev/block/mmcblk1p2

Sorry...

It need to be in lower case and it mmcblk<one>p<two>.

But you do have busybox installed correctly, so that is fine.

Did you remove the swap.*.log files and reboot to see if a new one was created ?

All I can think of is that ARHD's ramdisk is not executing the init.d scripts and relies on the ROM to do it (that's how mike seems to do it typically ?!), and siyah's ramdisk is doing that.

I should maybe dig into that and possibly modifiy the startup script in the ramdisk I use with my kernel.

But I won't get to that until next week :(

JP.

EDIT : Just checked quickly, siyah ramdisk does handle the init.d execution, mike's doesn't ! Will have to change that when I get back ;)

EDIT 2 : As a workaround, you can edit and add these lines at the end of the following file :

/system/etc/init.post_boot.sh :

### Execute /system/etc/init.d scripts on boot
sysrw
chgrp -R 2000 /system/etc/init.d
chmod -R 777 /system/etc/init.d
sysro
/system/xbin/busybox run-parts /system/etc/init.d

That will enable your ROM to start handling init.d scripts. But if you use Siyah plus the above lines, that would mean, init.d scripts would be executed twice (no issu for this mod), but can be a problem for other scripts, so it's your call !!

As always, a Nandroid backup prior to changing stuff like this is a damn good idea ;)

JP.
[Galaxy S III Android Development] rezapatel:
Thanks Yank - I will get to this workaround as soon as I have an hour or two at hand. Thanks for investigating and sharing a solution..

And I did delete the swap.*.log files and no new ones were created so I am assuming these were created when it worked on Siyah..
[Galaxy S III Android Development] Yank555:
Would be my guess as well ;)

I'm quite confident that it will work with the workaround. Just in case you switch back to Siyah don't forget to remove the lines again ;)

JP.
[Galaxy S III Android Development] rezapatel:
Thanks for the tips Yank!

Whenever you're upgrading your Kernel, pls try and add the functionality built in, so it couples perfectly with your swap script.
[Galaxy S III Android Development] Yank555:
It's already on my todo-list ;)

JP.
[Galaxy S III Android Development] sorg:
Amazing! So many words in first 3 posts and no single word about effect!

What you wanted to achieve? Did you succeed??

Nope.. Nothing... It seams process of modification is more important than a result. Like masturbating, right?

I found this thread. Was interested at beginning. It looked like i can get some more free RAM. I didn't find answer for MAIN question: How much free RAM i can get by this?

Actually, it's around 90% of threads on this board. You cannot understand what's this for unless you already read about it somewhere else...
[Galaxy S III Android Development] Mopral:
How much more free ram you will have?

Answer: about 0Mb!

What you can do: come here when you know what swap is and what swap do...
[Galaxy S III Android Development] btemtd:
I need Some help here,

EDITT

No i dont oops
[Galaxy S III Android Development] Mopral:
Both partition needs to be primary and the swap partition needs to be the last on your SDcard
[Galaxy S III Android Development] btemtd:
Ok SO I did the swap As Primary and the other as Logical?

If they are both Primary How will it know which one to use as the swap partition?

Ok Yes I put the 512-linuxswap at the end of the SD-CARD

and they are both primary now

But now windows does not recognise the card.. Minitool partition detects it but when I goto My computer its not there ? why
[Galaxy S III Android Development] Mopral:
1-make a big primary partition for your data (size: your SDcard size minus what you want to use for swap)

2-make a linux swap partition as primary on the space left at the end of your SDcard

Swap script will detect which partition is made for swap

---------- Post added at 02:01 PM ---------- Previous post was at 01:59 PM ----------

Have you formated the non-swap partition?
[Galaxy S III Android Development] btemtd:
Dammit , I put it in my phone, It said blank sd card detectd do you want to format I clicked yes, It formatted it and now my phone picks it up and only shows one partition, only the big one.

Still windows does not see it in my computer when I open it in mini partition tool now it shows only 1 partition and it shows the file system as Other , not Fat/fat32/ntfs but OTHER WTH!!! this is driving me nutzz

---------- Post added at 10:40 PM ---------- Previous post was at 10:09 PM ----------

WHy cant I partition i dont get why its not working.

I created 2 partitions

both primary

1 = 59gb

2 = 512mb (at the end of SD)

Soon as I apply changes i cannot see linuxswap partition
[Galaxy S III Android Development] Nichie:
I think you did it wrongly.

59gb format as primary + fat32

512mb as primary + Linux swap
[Galaxy S III Android Development] Mopral:
Your phone told you to format because he cannot read NTFS and you have a 64GB SDcard so the phone formated it in exFat which is not seen by minitool

1-make a big primary partition and format it in Fat32 from minitool or exFat from windows (your phone won't see NTFS partition)

2-make a swap linux primary partition on the space left at the end of your SDcard

both your phone and your computer will only see and use the big primary partition BUT the swap script will be able to see and use the swap linux partition
[Galaxy S III Android Development] btemtd:
Awesome thanks

Ok it shows both partitions in mini-tool and My phone reads the main partition only awesome ok my partition is ready

I am using Foxhound 1.4.3 ICS with Siyah Kernal.... <<<< Will this work ok with the script??????????
[Galaxy S III Android Development] Mopral:
Yep Siyah kernel support swap but do not forget to use busybox installer

With this app, you have to install busybox in /system/xbin (siyah install busybox in another folder) because the swap script needs it

Then just flash the zip file for swap and you should be good
[Galaxy S III Android Development] btemtd:
i did not install busybox and i flashed it and i typed free in a terminal and there are numbers in the swap it shows numbers ... and if i go to app manager i always have around 250mb free ram... wow this mod is greatt

I checked system/xbin and i can confirm busybox is indeed inside there :)

im sure this has workedd

---------- Post added at 11:59 AM ---------- Previous post was at 11:24 AM ----------

update:

not sure if the application manager has anything to do with it? can someone confirm this because i have installed more programs and so on and now my memory in use is around 600-630
[Galaxy S III Android Development] jnr21:
Which sdcard speed class is needed for swap? Should i just buy class 10 or is class 6 enough?
[Galaxy S III Android Development] tvhak:
okay great worked like you said.

now testing to see if there is difference

thanks
[Galaxy S III Android Development] Nichie:
Of course the faster the better but class 6 will do just fine
[Galaxy S III Android Development] hshah:
Just set this up in about 10 minutes... thanks for the guide.

How do I check how much of the swap is being used (I set 512mb)?
[Galaxy S III Android Development] tvhak:
install terminal emulator. and type free then enter.

rember that you must have busybox installed
[Galaxy S III Android Development] rveupen:
I just spent 5mins reading the faq and saw 2 answers to the 2 questions on this page.

Class 4 and above and type free in a terminal to see what is used.
[Galaxy S III Android Development] hshah:
Duh! I used that to check it was working... didn't noticed the other numbers which said how much was being used. Silly me, lol :o
[Galaxy S III Android Development] jnr21:
Ok, just bought class 6 card, let's see how is it works :)
[Galaxy S III Android Development] mariosraptor:
Great work. But i do not get it with the ram that everyone is complaining. With almost 800mb of ram and the way that android manages it, i think this mod has a little to none use. how many apps someone will have open. The amount of apps someone uses every little time those are not more than 20.

Our phone is already snappier than any other. Without the smallest issues.
[Galaxy S III Android Development] Yank555:
Just gave a look at it, if that's the leak, then I'm relieved, the ROM I'm running is CM10, so no Kies :D

Thanx for the Info !!

JP.
[Galaxy S III Android Development] Yank555:
That is always hard to tell, since noone uses his/her phone like another...

And, as I already said earlier, we have great computing power but the bottleneck is the RAM, and a system is always running at the "speed of its bottleneck".

Even if power compensates quite well for lack of RAM, still, if it can be improved, then I say it should be. I want to use my device to it's full potential, and here is something I can do about...

If you have no need, you're not obliged to use it :D

JP.
[Galaxy S III Android Development] Mopral:
Can I still use zram from siyah kernel if I use your mod?
[Galaxy S III Android Development] Yank555:
Yes, but it's kind of pointless using both...

JP.
[Galaxy S III Android Development] jnr21:
Is there any android app for partition sd card? I don't have card reader on my pc and cwm recoverys sd card partition thing doesn't work.
[Galaxy S III Android Development] Mopral:
Thanks!

I will try both and see which one seems better...
[Galaxy S III Android Development] Yank555:
Good question, on the HD2 CWM worked, on my Sensation 4ext did as well, but on the SGS3 I used minitool partition magic on my PC...

JP.
[Galaxy S III Android Development] Yusei:
@Yank555, what is the size of Linux swap partition that you recommend to use?
[Galaxy S III Android Development] Mopral:
Try to flash your zip twice but always ended with "installation aborted (status 0)"
[Galaxy S III Android Development] jnr21:
I was using newest cwm v6.0.1.0 and it's partition feature seems broken. Now i flashed chainfire's cwm 5.5.0.4 and now partitioning worked nice, then i flashed your swap script and it's working.
[Galaxy S III Android Development] gaetanolip:
Cwm id broken in partitioning forma me too, what androidi app TO partition?
[Galaxy S III Android Development] jnr21:
Download chainfires recovery from link below, extract it, so now you have .tar file, use mobile odin to flash it, then go to recovery and partition your sd card.

http://download.chainfire.eu/195/CF-Root/SGS3/CF-SGS3-CWM-v5.5-v1.5.zip?retrieve_file=1
[Galaxy S III Android Development] jnr21:
What is best value for swappiness?
[Galaxy S III Android Development] shorty1483:
Me too, but hadn't time to search for the problem until now.
[Galaxy S III Android Development] Yank555:
I would suggest 256Mb or 512Mb, depending on how much you can spare, and how much multitasking you need.

JP.
[Galaxy S III Android Development] Yank555:
Perfect, glad it's working ;)
[Galaxy S III Android Development] Yank555:
I set it to 100, max... This is what the mod will do for you. If you want to change that, just edit the following file :

/system/etc/init.d/98swap

And replace 100 whith any value between 0 and 100 here :

logfile_location="/data"
sdcard_device="/dev/block/mmcblk1"
swap_partition=`/system/xbin/fdisk -l $sdcard_device | /system/xbin/grep swap | /system/xbin/awk '{print $1;}'`
[COLOR="Red"]swappiness=[U][B]100[/B][/U][/COLOR]
sdcard_wait=30

JP.
[Galaxy S III Android Development] Yank555:
Maybe a bad download ??

Here is the MD5 for "Hard-Swap-Yank555.lu_Flasher-v1.0.zip" :

5868cd1c6be67e8e9b0d8ec89640d3cf

JP.
[Galaxy S III Android Development] shorty1483:
No tried it the third time now.

"Error in /emmc/blablabla... Installation aborted (Status0)
[Galaxy S III Android Development] btemtd:
Can you have a look at my attachment i have done a screen shot of my terminal, Can you confirm if its working and how much ram its using?
[Galaxy S III Android Development] btemtd:
Guys I have just noticed that when I goto settings -> Applications Manager and check memory in use it ALWAYS says its lower then when I HOLD HOME button and goto task manager.

Breif = Task manager ram always shows higher then settings/applications manager

I dont get it:confused:
[Galaxy S III Android Development] jnr21:
Yep it's working and about 12mb is used of your swap partition (it's not using ram).
[Galaxy S III Android Development] btemtd:
ONLY 12mb WOW thats like nothing I wonder at what point it would use more.

And by doing this I wonder to what equivalent it would be in real ram

basically i am asking how much ram does my S3 have now becaue of the swap ram........theoratically
[Galaxy S III Android Development] winsome:
Dude, everything is mentioned and well-explained by Yank555. However, he can´t tell me or you the exact amount of RAM that can potentially be freed as it all depends on the number of apps, RAM usage, app size, kernel etc. etc.

But we know for sure that a Swap Partition on the SD-card will help us gain/free extra RAM on our devices. I have around 200 apps, games and widgets installed on my GSIII:

Now, before creating the Swap Partition I used to have 50-120mb of free RAM (Task manager shows 600-690mb out of 779mb),

After creating the Swap Partition (512mb) I now have 200mb of free RAM, so there definitely is a palpaple difference.

Furthermore, some threads on XDA are not written as self-explanatory guides/tutorials, because they´ve been around for years and the Android community already know what they are for :)
[Galaxy S III Android Development] mattiadj:
Yank I'm using latest siyha kernel (1.5.2) and omega 13.

I have 300 mb swap and the values of lmk as in pic attached.

Often i have lags and my phone became not usable for a while.... May the cause be the small size of swap partition?

Or you can suggest me others lmk values?

Thanks man!

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Geo1997:
Had the same problem. Use strict in Autokiller ;)
[Galaxy S III Android Development] mattiadj:
Then Multitasking and use of swap are ok?

Inviato dal mio GT-I9300 con Tapatalk 2