yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Android Development] rezapatel:
Bingo, function not implemented..

Btw, changing the kernel and no swap (can't identify which of the two because they both happened at the same time), but my device is working a few times faster and in almost 1.5 days of use NO LAG AT ALL..

Don't really see a major difference in multitasking either.

Comments welcome pls?
[Galaxy S III Android Development] Yank555:
That is a hard call, since you're using a different kernel, there's loads of stuff that is different :(

One thing is certain, swap will allow for more apps to be "running" at a given time, but swap has a price ...

zram : + fastest / - eats RAM in the first place (which is why I'd rather use no swap than zram, but that's a personal choice)

sd swap : + leaves RAM untouched / - slower (than RAM anyway, plus depending on the sd card performance)

So there is no magic to all of this :rolleyes:

The real solution would have been giving us 2 - 4Gb REAL RAM, but that was Sammy's call :(

This will certainly be an important parameter when choosing my next device !! I'd rather have less CPU power with more RAM, on our S3 I feel I have super engine but only tiny wheels that can't handle all that juice :D

JP.
[Galaxy S III Android Development] rezapatel:
Very well put, thanks. It should help many novices like me ;)

I think it could probably be my sdcard too slowing down the swap for me and something that strikes me - it could also be because of me keeping sd read speed 2 MB? And that could probably make the read/write chunks bigger? If the same speed is applicable to the swap partition.

But I totally hear you on the next device consideration being extremely luxurious on ram and I wouldn't mind compromising on the cpu speeds. Also because I don't remember playing even the lightest of games in a couple weeks now! No time at all, not even to spend time with family recently!

Frankly, now if I think of it, I would have enjoyed even the Galaxy Nexus as much instead of spending double the amount getting the S3 hehe.

But, let's not be unjust to the wonderful S3, it is great device and the best I've owned!
[Galaxy S III Android Development] btemtd:
anyone tried this On rooted jelly bean running busybox.... init.d ??
[Galaxy S III Android Development] Nichie:
Just a thought but using this will result in slightly higher battery drain since the phone will be accessing the sd card more often..
[Galaxy S III Android Development] Yank555:
Never noticed any increase in battery drain, nothing measurable at least...

JP.

Sent from my custom ARHD 2.1.1 / Yank555.lu kernel v1.1 (Linux 3.0.42) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] Fade777:
Mate, just want to say thanks..

You put in a heap of work spelling everything out..

Followed your guide all works as promised.. noticed less redraw on my phone.. Very happy!

Your a gun bro ! Thanx again ! :thumbup:

I wonder if my problem with the audio player not remembering it's last position will be solved.. I'll report back.. :)
[Galaxy S III Android Development] hinnn:
thanks for updated, but seem not easy to use for general user, :)
[Galaxy S III Android Development] gaetanolip:
Hi Yank

I would like to use swap on my Asus transformer too.

How do i know if my kernel support swap?

i did not create swap partition but

If i type in terminal emulator:

u0_a32@android:/ $ export PATH=/data/local/bin:$PATH

u0_a32@android:/ $ swapon /dev/block/mmcblk1p2

swapon: can't stat '/dev/block/mmcblk1p2': No such file or directory

Help please

I

Inviato dal mio Transformer TF101 con Tapatalk 2
[Galaxy S III Android Development] btemtd:
Is there a way we can get this working on JB as it is coming out soon and ICS will be in the past and if this is not Jelly resistant then it will be a great mod of the past
[Galaxy S III Android Development] Yank555:
Well you need to check the correct device to your external sd card on the Transformer ...

Then if swapon return 'not supported', the kernel has no swap support.

JP.

Sent from my custom ARHD 2.1.1 / Yank555.lu kernel v1.1 (Linux 3.0.42) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] Yank555:
This works on

any

Android since it's a L8nux mod, not an Android mod, given :

1) kernel has swap support

2) rom / ramdisk has init.d support

3) busybox is installed correctly (in /system/xbin)

But since we don't have JB kernel sources yet there is no kernel with swap support yet either...

JP.

Sent from my custom ARHD 2.1.1 / Yank555.lu kernel v1.1 (Linux 3.0.42) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] gaetanolip:
Thanks

how to check my extra SD card (as mmcblk i suppose)?

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Yank555:
Well a way is to type 'mount' to see all the mounted partitions and look at the device used for your external sd card, from that you find the device, and using fdisk you can see the partition table.

JP.

Sent from my custom ARHD 2.1.1 / Yank555.lu kernel v1.1 (Linux 3.0.42) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] btemtd:
If you look at Omega JB LH9 It has Init.D BusyBox even uses the superchargerV6 Script if they have done all of this why cant it be created yet
[Galaxy S III Android Development] Yank555:
What do you want created, hardswap mod ?

If you have a JB ROM with init.d support

and a kernel with swap support compiled in

then you can just flash the mod, as it is compatible with any version of Android, it's not Android related in fact, it's Linux related.

init.d support is just script exectuing and can easily be added, busybox is just one binary with a whole bunch of symbolic links, even easier to add, there are even apps the do that for you (links posted quite often throughout this thread btw.).

The focus here lies on the kernel, and most specificaly on "

compiled in

". You just can't "mod" a compiled kernel to add what's missing, you need to do that from source :(

So since Samsung is yet to release the JB kernel sources, there is

no way

to get a kernel with swap support compiled in, except make an ICS kernel compatible, but noone will be going there anytime soon, that's the perfect tapping in the dark scenario :D And all you'd do is make some Hax that will be obsolete a few weeks later when the sources are eventually released.

That means for now, there's nothing else to do than waiting for Sammy to release their sources (and maybe also their official JB OTA while we're at that ;)).

JP.
[Galaxy S III Android Development] btemtd:
Ahh I now understand Thanks for explaining in detail for me , Im still learning about all this
[Galaxy S III Android Development] Yank555:
No problem, learning is what we're all here for ;)
[Galaxy S III Android Development] gaetanolip:
Ok, here is my mount command

u0_a32@android:/ $ export PATH=/data/local/bin:$PATH

u0_a32@android:/ $ mount

rootfs / rootfs rw,relatime 0 0

tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0

devpts /dev/pts devpts rw,relatime,mode=600 0 0

proc /proc proc rw,relatime 0 0

sysfs /sys sysfs rw,relatime 0 0

debugfs /sys/kernel/debug debugfs rw,relatime 0 0

none /acct cgroup rw,relatime,cpuacct 0 0

tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0

tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0

none /dev/cpuctl cgroup rw,relatime,cpu 0 0

/dev/block/mmcblk0p1 /system ext4 ro,relatime,user_xattr,acl,barrier=1,data=ordered 0 0

/dev/block/mmcblk0p2 /cache ext4 rw,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered 0 0

/dev/block/mmcblk0p7 /data ext4 rw,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered 0 0

tmpfs /Removable tmpfs rw,relatime,mode=755,gid=1000 0 0

/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

/dev/block/vold/179:9 /Removable/MicroSD vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1023,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

u0_a32@android:/ $ fdisk

BusyBox v1.19.4-wraithdu (2012-02-16 23:47:29 CST) multi-call binary.

Usage: fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK

Change partition table

-u Start and End are in sectors (instead of cylinders)

-l Show partition table for each DISK, then exit

-b 2048 (for certain MO disks) use 2048-byte sectors

-C CYLINDERS Set number of cylinders/heads/sectors

-H HEADS

-S SECTORS

1|u0_a32@android:/ $ l

Removable

acct

cache

config

d

data

default.prop

dev

eos

etc

fstab.ventana

init

init.goldfish.rc

init.rc

init.trace.rc

init.usb.rc

init.ventana.keyboard.rc

init.ventana.rc

init.ventana.usb.rc

mnt

proc

root

sbin

sdcard

storage

sys

system

ueventd.goldfish.rc

ueventd.rc

ueventd.ventana.rc

vendor

u0_a32@android:/ $ swapon /dev/block/vold:179:9

swapon: can't stat '/dev/block/vold:179:9': No such file or directory

1|u0_a32@android:/ $

I am confused. What must type in terminal to check if kernel is swap ready? (Remember that i have not swap partition in my extra card yet)

Thanks
[Galaxy S III Android Development] Yank555:
OK, your external sdcard is mounted from "/dev/block/vold:179:9" to "/Removable/MicroSD", that you found out so far.

VOLD devices are defined in "/etc/vold.fstab". Can you post that file ?

JP.
[Galaxy S III Android Development] Yank555:
OK, so now we have the device for the FAT partiton of the microSD card : /devices/platform/sdhci-tegra.2/mmc_host/mmc1

Let's see what deveices we can see. Can you check in a terminal and post the result of these commands :

ls -l /devices/platform/sdhci-tegra.2/mmc_host/*
ls -l /devices/platform/sdhci-tegra.2/mmc_host/*

Let's see where we get to. Else I'll have a check on my TF101, but I don't have it handy right now...

JP.
[Galaxy S III Android Development] gaetanolip:
Cool, we have both sgs3 and transformer!

So

u0_a32@android:/ $ export PATH=/data/local/bin:$PATH

u0_a32@android:/ $ ls -l /devices/platform/sdhci-tegra.2/mmc_host/*

/devices/platform/sdhci-tegra.2/mmc_host/*: No such file or directory

1|u0_a32@android:/ $
[Galaxy S III Android Development] Yank555:
Wait, I just got to the garage to grab my TF (was in my car).

JP.
[Galaxy S III Android Development] gaetanolip:
Wow, real time. Btw i am on jelly bean team EOS if it is important, my kernel is K.A.T

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Yank555:
I've been loosing track of my TF, had it 4 weeks at ASUS to get a new battery ... I just got it back 3 weeks ago and all I did was root, flash the first ROM that came by (ARHD) just to get it going again. I need it for work, so I don't experiment much on it...

JP.

EDIT : OK I just checked, and the device is fine, it's "/dev/block/mmcblk1" as well.

PS: Maybe we can go on by PM, since it's not SGS3 related ;)
[Galaxy S III Android Development] earthworm1102:
Haven't used this mod for awhile since i'm running JB right now.

Will it work on JB? I still have my 512mb partition on sd card. Would love to try it on JB if it will work.Will there be a problem if i don't do a backup and install this mod?
[Galaxy S III Android Development] Yank555:
No problem installing it, but it won't work, since the stock JB kernel has no swap support and we still don't have the sources, so not possible to compile a kernel with support.

I know GM has a hybrid Siyah JB kernel with some things added, dunno if swap is working on that kernel, but that's the only possibility.

Once we have sources, this mod will work.

JP.

Sent from my custom ARHD 2.1.1 / Yank555.lu kernel v1.4 (Linux 3.0.43) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] earthworm1102:
Thanks! +1 hopefully GM will be able to make a hybrid kernel. am using his XXDLI7 kernel right now.
[Galaxy S III Android Development] pelpa87:
hey @YANK555 excuse the off topic, but i'm sure you can help me. i've been looking everywhere, and i can't find a positive answer.

i'm NOOB in all this...but i'm trying to learn.

the thing is that i want to mount internal and external SDCARD in CWMR in an updater-script. its ok this??

run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk1", "/sdcard"); for internal SD

and

run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext"); for ext-sd??

i'm talking about an S3.

also..are this values the same for any android phone???

again excuse my off topic..but i really didn't find any answer for this.

thx!! :)
[Galaxy S III Android Development] Yank555:
Check your PM ;)

JP.

Sent from my custom ARHD 2.1.1 / Yank555.lu kernel v1.41 (Linux 3.0.43) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] :
Just tested HardSwap 1.1 on Omega 26.1 (LI8), with Siyah 1.6 rc1 (Swap support added from beta 15). Works flawlessly, thanks!
[Galaxy S III Android Development] aegeuss:
Guys, now as we have support for Kelly bean swap support with Siyah kernel how about sharing auto memory kill settings? I use 2, 4, 28, 42, 54, 66 with swapiness set to 100. I am not happy with these settings and want to try other values as well.

Regards

GT-I9300 cihazımdan Tapatalk 2 ile gönderildi
[Galaxy S III Android Development] Yank555:
When you say "2, 4, 28, 42, 54, 66", are you talking in "pages" or in "Mb" ?

JP.
[Galaxy S III Android Development] aegeuss:
I refer to values in Auto Killer Memory application settings.

GT-I9300 cihazımdan Tapatalk 2 ile gönderildi
[Galaxy S III Android Development] Yank555:
I don't use it myself ... can you post a screen shot, or does somebody know in what units the values are ?

JP.
[Galaxy S III Android Development] kp.nikhil:
zram is automatically enabled on siyah 1.6rc1.. should we disable and then install this mod?
[Galaxy S III Android Development] Erahgon:
I believe those are in MBs.
[Galaxy S III Android Development] aegeuss:
Thanks for the support, I have started to using values in OP. I will report the results later. I am on Omega v26.1

Regards

GT-I9300 cihazımdan Tapatalk 2 ile gönderildi
[Galaxy S III Android Development] Yank555:
I recommend using one of both, but not both at the same time, it's somewhat pointless. You can disable zram before of after flashing the mod, that doesn't matter.

JP.
[Galaxy S III Android Development] kp.nikhil:
any idea how to disable zram?
[Galaxy S III Android Development] Yank555:
The trick is to find what enables it, could be a script (init.d) or an app ...

Have a look in /system/etc/init.d if there is anything zram related.

JP.
[Galaxy S III Android Development] mattiadj:
Yank i have some lags. It depends on minfree values?

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Yank555:
Could be, or could be swap taking too much time to swap in/out (card speed or swap size)...

If you have too much swap, it will start getting counterproductive, since many more apps will be kept alive, which will start generating more and more swap out/in's ...

What's the size of your swap partition ?

JP.

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.42 (Linux 3.0.43) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] mattiadj:
300mb and my sd card is class 10 SanDisk.

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Yank555:
Do you have lag all the time, or rather after longer uptime ? Check how much swap is used when you experience the lag...

Maybe setting swappiness lower could help on the long run, it would use swap less, but also would page out only pages unused for longer time which you won't probably be using anytime soon.

I had 512Mb swap and I reduced it to 256Mb because of that... I still run swappiness 100.

I think some heavy memory apps might use more RAM then we actually have for them, thus swap actives pages in and out (pages of the forground app you're currently using), browser is an example. If this happens, that's not good at all, swap should only be used to page out inactive pages (unused background apps).

But there's no such setting, so we need to find this balance, but the right settings will depend a lot on each usage pattern... so there won't be one single setting working for all of us.

JP.

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.42 (Linux 3.0.43) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] btemtd:
Very weird

I have weird thing that I saw, Now that the swap works On JB finally I made a Linux Swap Of 527mb Ages ago when I had ICS and It has been useless up until now when I flashed the latest Siyah Kernel the funny thing is now It shows 700mb+ How does this happen I even took the SD card out inserted it into my computer and went into mini tool partition and it shows 537mb linux swap. Look at the screenshot I dont understand Can someone shed some light on this strange thing
[Galaxy S III Android Development] Yank555:
You probably have SD swap plus zram.

Check this :

cat /proc/swaps

It will most likely display 2 swap entries.

JP.
[Galaxy S III Android Development] btemtd:
How do I get rid of Zram? stweaks does not have the option in misc. RC1 Siyah doesnt have an option

Yes you are right there are 2 entries what do I do delete one?

---------- Post added at 02:47 AM ---------- Previous post was at 02:40 AM ----------

FIX-HOW TO-CWM MOD][16SEPT] BestRam&Multitasking - No Lags and memory leaks

By the way what is this MOD is it like yours whats the difference? is it better
[Galaxy S III Android Development] Yank555:
Check in "/system/etc/init.d" if you can find a file related to zram. If you do, back it up and then remove it and reboot.

Had to search for it and check what was inside ;)

Well in fact, it is 100% my mod, with just supercharger removal and this script added :

#!/system/bin/sh
#Setting minfree
echo "1024,3072,4096,10240,12228,14336" > /sys/module/lowmemorykiller/parameters/minfree

echo "3642" > /proc/sys/vm/min_free_kbytes

echo "10" > /proc/sys/vm/vfs_cache_pressure

echo "100" > /proc/sys/vm/swappiness

echo "1" > /proc/sys/vm/page-cluster

echo "90" > /proc/sys/vm/dirty_ratio

echo "5" > /proc/sys/vm/dirty_background_ratio

echo "1000" > /proc/sys/vm/dirty_expire_centisecs

echo "2000" > /proc/sys/vm/dirty_writeback_centisecs

echo "1" > /proc/sys/vm/oom_kill_allocating_task

JP.
[Galaxy S III Android Development] btemtd:
Ok I checked No ZRAM I have 991swaps and supercharger
[Galaxy S III Android Development] Yank555:
Maybe supercharger activates zram ? I don't know it that well, never used it, but I recall giving it a look and it changed swappiness, which is why I renamed my script to be run after supercharger, so maybe supercharger activates zram as well.

Open the script and search for "zram"...

You can also post the script here if you want me to look at it.

JP.
[Galaxy S III Android Development] Musko:
ZRAm is activaed by Siyah kernel version 1.6RC1.

In RC2 version maybe ZRAM default disabled.
[Galaxy S III Android Development] Yank555:
OK, thanx for the info, Musko.

Well then the only way in the meantime is to add a script that disables zram manually :

swapoff /dev...

JP.

PS: The correct device path is shown by "cat /proc/swaps".
[Galaxy S III Android Development] btemtd:
Is there anything i can do to this file to stop it
[Galaxy S III Android Development] Yank555:
Try to replace "/system/etc/init.d/991swap" by the file in the attached RAR and then reboot.

If it works as expected, zram should be disabled.

JP.
[Galaxy S III Android Development] btemtd:
thank you DO I need to restart because I did replace it then I went into terminal and typed free and it still should 739 instead of 500 swap.. Lets say it doesnt work as expected is you mod doing its trick aswell as the Zram? Or your mod becomes useless with Zram and I should remove it? WHat do ou think? Im very annoyed if your mod doesnt work properly with zram

edit: i restarted and when i type free in terminal still showing same ammount, like i said does that matter is your mod still doing its job

EDIT: SOrry It worked I did a HOT REBOOT before thats why it didnt work but Now I can confirm it working thank you very much
[Galaxy S III Android Development] Yank555:
No, both work their thing, they can work together, but it's kind of pointless, since the main goal for SD swapt is not to sacrifice RAM, and zram does just that, it uses ram to give you compressed swap (zram) instead.

Ah yes, hotreboot will only restart Android, not the system, and swap is system level ;)

Glad it worked.

JP.
[Galaxy S III Android Development] aegeuss:
Unfortunately I have the problem although I have tried to disable zram. We have to wait for the Siyah rc2 version.

Regards.

GT-I9300 cihazımdan Tapatalk 2 ile gönderildi
[Galaxy S III Android Development] Yank555:
Have you tried using the modified version of my script I posted earlier ?

JP.

Sent from my custom ParanoidAndroid 2.13.2 / Stock kernel (Linux 3.0.15) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] aegeuss:
Yes, I did but it seems that it only disables hard swap not the zram :)

I have also tried to use the swapoff command from terminal but it gave an error.

I am not an expert on this but I feel like, zram is created instantly via Siyah kernel before the execution of init.d and our script can not disable it.

Regards.

GT-I9300 cihazımdan Tapatalk 2 ile gönderildi
[Galaxy S III Android Development] Yank555:
Did you give the file the necessary permissions (rwxr-xr-x) ? It looks like the new script isn't executed at all...

JP.
[Galaxy S III Android Development] aegeuss:
Thanks! This did the trick; now I have hard swap and zram disabled. Now I am so happy

:victory:

Regards.
[Galaxy S III Android Development] Geo1997:
Hi

Is the mod working for JB rom (Omegav27) and siyah kernel v1.6.1 ?

Thx
[Galaxy S III Android Development] goldenson:
Mod works on omega v27 with siyah v1.6RC but not 1.6 or 1.6.1
[Galaxy S III Android Development] Crimsonthunder:
Can confirm this.

Edit: because swap isn't supported by these new versions.
[Galaxy S III Android Development] Geo1997:
Okk so i'll just install Omega JB and Siyah 1.6.1 without swap.

If ram is not enough i'll wait for an update of the kernel or go on 1.6RC

---------- Post added at 04:55 PM ---------- Previous post was at 04:25 PM ----------

"v1.6.1 -> v1.6.2: cleaned ICS leftovers from ramfs. adjusted maximum GPU voltage constraint (1075mV->1400mV). increased default GPU voltages by 25mV. This version will reset all your STweaks settings to defaults. Enabled swap (still no zram)."

xD so it should work with 1.6.2 :)
[Galaxy S III Android Development] maki43:
I have just tried this with the new 1.6.2 kernel and CM10 and it works perfectly now.

http://i.imgur.com/dveKw.png
[Galaxy S III Android Development] Yank555:
The mod works on any Android version, as long as the kernel used has swap support compiled in. Since I heard now JB kernel sources are available, that should be no issue anymore.

But I'm on vacation, just found a WiFi hotspot, so I haven't looked for the kernel sources availibility myself.

JP.

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.42 (Linux 3.0.43) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] Chillz88:
Hey yank.. how much swap do you use ?.. 512?
[Galaxy S III Android Development] Yank555:
Went back to 256, don't need more to be honest. But that depends on your use of your phone...

JP.

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.42 (Linux 3.0.43) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] uberto.costanzo:
hi,please work in stock JB XXDLIB whit stock kernel? thanks for reply
[Galaxy S III Android Development] Geo1997:
Euuh noo. You have to use a kernel that can make work swap.

For Jb i know there is SiyahKernel 1.6.3 ;)
[Galaxy S III Android Development] aegeuss:
Perseus kernel also supports swap on JB as well as latest Siyah kernel.

Regards

GT-I9300 cihazımdan Tapatalk 2 ile gönderildi