Background....
I used swapper2 and bricked my device.
Still I can't stop myself.
We all SGW I8150 users have low ram just 351MB.
Creating a startup script that adress swap partition on EXTERNAL SD card ( Preferred Class10) can be usefull for us to inrease our devices speed and responsiveness.
mkswap /dev/block/mmcblk1p2
The script can also include I/O tweaks for external SD card...
Inspired from: ( Don'nt flash this. It is not compatible. Also it targets main sd card.)
http://forum.cyanogenmod.com/topic/208-swap-enabledisable/page__st__10
http://www.igottadroid.com/ModMarket/Listings/Yank5551630095.html
V2:
Also another idea to swap SD0 to SD1 and the idea above.
Solved.
http://www.igottadroid.com/ModMarket/Listings/Yank5551630095.html
the best choice for now..try use turbo boost..it's not increase your ram,but it will free more ram..and your phone become smooth and responsive
Sent from my GT-I8150 using Tapatalk 4
i want to ask as i didn't understand
you provide us a script for expanding Ram or asking about a script to increase ram?
Related
First: Have Alquez's CM7.2 installed
Second: Flash his new kernel that supports linux swap partitions
Third: Read my tutorial on creating a Ext partition and a third Linux swap partition
Fourth: Read this post by me on how to enable swap persistantly and adjust swappiness.
Does it make any sense to use a swap partition?
I think, no. Why not? Read about in the official cm wiki: http://wiki.cyanogenmod.com/wiki/Swap_and_Compcache
Android has a very good built-in memory management. Apps not used any more will be closed and memory released. Swap does change that behavior, because RAM now (virtually) is much bigger. There's no sense anymore in cleaning parts of the RAM.
Androids mem management is much more efficient.
The only reason to use swap would be 1st generation phones (G1, Dream, Magic). Wildfire S would have no advantage of swap! Rather the opposite.
Using swap should require at least class 6 SD for not slowing down the device. Plus, the additional write accesses will wear down your sd much quicker.
Everyone has to decide if he wants this. I decided, not to do.
theq86 said:
does it make any sense to use a swap partition?
Click to expand...
Click to collapse
I'm just telling you how. You'll have to decide that for yourself.
Personally I'm just playing around with it...cause I can.
d33ps1x said:
I'm just telling you how. You'll have to decide that for yourself.
Personally I'm just playing around with it...cause I can.
Click to expand...
Click to collapse
Well, I read a little bout that topic and consider it more harming than useful. (read my edited post above)
Consider setting /proc/sys/vm/swappiness to 10 or even lower for android ?
what on earth is swap anyway?
swap is taking apart of your sd card or internal memory as ram memory like pageing file in windows
Guys I think everyone tested ICS 4.0.4[BETA6] ,well there are a lot of bugs yet to be solved (thanks for Team PECAN) to do such a good job .well incresing RAM memory is not a big issue i think you all know it but still iam posting this thread so that those who are using this ROM for daily use may not have any problem related to RAM uses .
So by this tutorial you can increase your ram memory
Requirements : 1) Swap it ram expander which i think u can download from 4shared.com - free file sharing and storage
2)Free memory in your SD card upto 2 gb ,well using swap it 2gb is the maximum limit for increasing ram (yeah u can expand your ram upto 2gb )
3)well as we know Rooting and all stuff so iam not writing about all these things .
Steps
1) First of all install Swap it ram expander
2)now open application and in my case i gave 512 mb for expansion u can give upto 2 gb as your wish
3)then tick Swap active and swapiness 90
4)u can tick the Autorun option too if u want to use it after reboot and all stuff (well who doesnt want that )
5)Download Link SWAPit RAM Expander v1.2.1.apk - 4shared.com - online file sharing and storage - download
well after these steps you will get notification that swap it is running !!!!
ENJOY
After performing these steps you will be able to get 72 mb of free ram in ICS which is good enough .
If any how i helped you Press Thanks !!!
Follow me on Twitter --->https://twitter.com/prachetas13
hi i want to ask what is the best of those roms cm10.1 Alpha 2 or cm10 beta 1 ??
and how to make swap memories for both of them ?? please help
mps42 said:
hi i want to ask what is the best of those roms cm10.1 Alpha 2 or cm10 beta 1 ??
and how to make swap memories for both of them ?? please help
Click to expand...
Click to collapse
i just a noob so i might be wrong
have not tried with 10.1 alpha 2 but in 10.1 alpha 1 i experienced a battery drain..
it's like i could drain my batt in only 3 hours give or takes few minutes.. (or may be i have damaged batteries i don't know )
i think making swap memories for both of them is kind of the same..(you could google it on the net)
i created 256MB swap partition on my ext SD card 3rd partition linux swap formatted,
and use about 1Gig on the 2nd partition for Linked2SD fat32 formated ,
using external card reader and minitool partition wizard on my Laptop
and then you just need to activate it using terminal command
(
Code:
su
swapon /dev/block/mmcblk1p3
***!!!check where your swap partition first, mine is /dev/block/mmcblk1p3 !!!!
you can list what's on your sd-ext using :
Code:
su
fdisk -l /dev/block/mmcblk1
)
or maybe doing it automatically using third party program such as swapper2.
you want to be very careful, cause some peoples have reported that they hardbricked their phone after using swapper2,
make sure you have followed the steps and know what you do...
(check for the correct address for the swap partition)
cause you don't want to mess up with wrong partition..
when you do it correctly you will found values for swap memories when you execute command "free" in terminal emulator..
Code:
#free
total used free shared buffers
Mem: 361192 355706 5484 0 1612
-/+ buffers: 354096 7096
swap: 257036 1668 255368
cheers..
Dh1
ps:
sorry for my bad English, it's just not my mother tongue..
mps42 said:
hi i want to ask what is the best of those roms cm10.1 Alpha 2 or cm10 beta 1 ??
and how to make swap memories for both of them ?? please help
Click to expand...
Click to collapse
silly me.. but i just realized
if you mean about swaping internal and external sd,
you just need to edit /etc/vold.fstab (use root explorer or any root editor)
and replace /storage/sdcard1 with /storage/sdcard0 and vice versa in the bottom line of the file
marked by #internal sdcard and #externel sdcard
save and reboot...
prefer alpha1 because of alpha 2 has a terrible battery drain
yup battery drain is a big issue...it's still in alpha stage now anyway :laugh:
Hi friends,
This post is to share the important things,concepts related to android......
In this post, many things like roms,kernels,overclocking,undervolting,I/O shedulars,governars,RAM, swap,differnt swaps ,partitions (ext2, ext3, ext4 )are ported....
If something missing or wrong plz tell me and i will add in this post...
I hope this post will help you to improve knowledge...
So lets start....
[1] ANDROID:
Android is the linux based operating system, designed primarily for touchscreen mobile devices like smartphones and tabs..
Android is an open source and google releases the code under the Apache Licence
Following are the versions of android :::
1) 1-1.5 --- Cupcake
2) 1.6 --- Donut
3) 2.0-2.1 --- Eclair
4) 2.2-2.2.3 --- Froyo
5) 2.3-2.3.7 --- Gingerbread
6) 3.0-3.2 --- Honeycomb
7) 4.0-4.0.4 --- Ice Cream Sandwich
8) 4.1-4.2.2 --- Jelly Bean
After knowing about Android,
Lets move towards deep....
[2] Android Rooting:
Android Rooting is process of allowing users which are using Android system to attain privileged control (i.e. Root access) within Android Subsystem.
Rooting is required for more advanced and potentially dangeorous operations like deleting,modifyig system files etc..
Their are many methods for rooting our galaxy y
Most easy method i found is at the thread
http://forum.xda-developers.com/showthread.php?p=29960454
[3] ROM ::
A file containing the executable instructions (the system image ) of an Android operating system & apps is ROM (read only memory)
after rooting your phone you are free to flash any custom rom
FLASHING ROM: flashing rom means installing the system image into device's internal flash memory...
Their are many custom roms available for our galaxy y..
Cyanogenmod, BeautySense, Creeds Rom, Fusion Rom ,
Repencis ROM, Infected ROM Blazed, COD Rom , U.S.S.R, Thunder ROM , EVO-X, CHOBITSDIGITALIS ROM ,
WeUI by amal das, M.U.R, MySS, emralD, xXxxxX MIUI XxXxXx, WinterMod Evo , WP8-Monochromatic 6.0
ACCEND
Links of all these roms will get from thread:
http://forum.xda-developers.com/showthread.php?p=31329931
[4] KERNELS::
Kernels isn't something unique for android, but all O.S. i.e. Windows, Ios, Blackberry, have kernels..
Android devices uses Linux Based kernels
In simply words, the hardware and the software communicate each other by using kernels...i.e. When software needs hardware to do anything it sends that request through kernels..
Most of the things like brightness of screen, volume, is controlled by kernels...
Kernels decides minimum and maximum frequency of CPU,
Overclocking, undervolting are all done by using kernels....
Some of the kernels available for galaxy y are Savie kernel, Merruk kernel, Hells Fusion Kernel, Kuro kernel, White kernel, Repencis Kernel, Deviant kernel etc.
( their are many other kernels list of all the kernels is impossible)
[5] Governers and I/O shedulars::
For understanding both the above terms please read the following post::
http://forum.xda-developers.com/showthread.php?p=19846276
[6] Overclocking:
Android
overclocking increases the
maximum frequency (or speed)
that your CPU can run, thereby
increasing performance of your
Android smartphone or tablet.
Many kernels for our galaxy y uses overclocked frequency..
By overclocking, overall performance of phone increases, we can play hd games lag free..
Only the disadvantage of overclocking is that mobile gets heated fastly....
Most famous kernel for overclocking galaxy y is merruk kernel...
[7] Undervolting::
Kernels are used to undervolt phone...
Undervolting means force the smartphone to work at lower voltage than normal voltage..
Due to undervolting battery backup of phone increases...
After all such part.....
[8] RAM (Random Access Memory)::
It is temporary data storage that the CPU uses during calculations. The more RAM a device th more calculated results the CPU can store.
Which means less time the CPU has to do the same thing over and over again.
In other words, th CPU can check RAM to see if it has already made a particular calculation in the recent past. If it has, it can use the pre-computed results instead of wasting proccessing time in recomputing the same calculation.
In short , more RAM means more efficient the device....
[9] Swap:
swap is nothing but virtual RAM. Using swap a small portion of hard drive is set aside and used like RAM
The great guide how to increase RAM using swap file and swap partition is given here :
http://forum.xda-developers.com/showthread.php?p=26220059
ZRAM:
To know about ZRAM please click the link:
http://forum.xda-developers.com/showthread.php?p=34877656
[10] Cache:
Many times you read the word cache...so
Cache is general type of temporary and quick access data used by the system or user(third party) applications...
Or any temporary information used or created by app is cache..
[11] Dalvik cache:
This word is also read by us many times..
Dalvik is the process virtual machine (VM) in Google's Android
operating system . It is the software that runs the applications on Android devices. Dalvik is thus an integral part of Android, which is typically used
on mobile devices such as mobile phones and tablet computers
Programs are commonly written in Java and compiled to
bytecode. They are then converted from Java Virtual Machine - compatible .class files to Dalvik-compatible .dex
(Dalvik Executable) files before installation on a device. The compact Dalvik Executable format
is designed to be suitable for systems that are constrained in terms of memory and processor
speed.
[12] JIT ::
JIT stands for
"Just In Time," and we use it to
describe a Dalvik JIT compiler,
which was added to Android with
the 2.2 release. It compiles
bytecode into native machine code at runtime. Essentially it takes the code for an app, analyzes it and converts it into something that runs faster. It does all this while the application is running, and that's where the "just in time" tag comes from. The JIT compiler designed for Android also can do this with a very short "warm up"
time, meaning it doesn't take very
long to analyze the code before it
starts working. It stores information in a cache in your
phone's RAM, which means it's not an ideal solution for devices with low memory.
[13] a2sd or app to sd:
app to sd is nothing but to move the app in external storage instead if internal storage....
Some apps are used to move apps in sd card
Some of the kernels also support a2SD....
[14] Linking app to SD:
their is difference between app 2 sd and link 2 sd ...
Link 2 sd means to create a separate part in external storage by specific linux file system such that it bahaves as internal storage and then move the app to that particular memory...
Following are the mainly used file systems....i.e. Partitions...
Partitions:
ext2, ext3 and ext4 are all
filesystems created for Linux i.e. For android..
Ext2
Ext2 stands for second extended
file system. This was developed to overcome
the limitation of the original ext
file system.
Ext2 does not have journaling
feature.
On flash drives, usb drives, ext2 is
recommended, as it doesn’t need
to do the over head of journaling.
Ext3
Ext3 stands for third extended file
system. The main benefit of ext3 is that it
allows journaling. Journaling has a dedicated area in
the file system, where all the
changes are tracked. When the
system crashes, the possibility of
file system corruption is less
because of journaling. You can convert a ext2 file system
to ext3 file system directly
(without backup/restore).
Ext4
Ext4 stands for fourth extended
file system. Supports huge individual file size
and overall file system size.
You can also mount an existing
ext3 fs as ext4 fs (without having
to upgrade it).
Several other new features are
introduced in ext4: multiblock
allocation, delayed allocation,
journal checksum. fast fsck, etc. All
you need to know is that these new
features have improved the
performance and reliability of the
filesystem when compared to ext3.
In ext4, you also have the option
of turning the journaling feature
“off”.
I hope this thread helpded you if anyone wants more about something then plz post in the thread ...
If anything in the post is wrong ,missing tell me.....
Special thanks to
CarlDeanCatabay,
droidphile,
-CALIBAN666-,
manornjan2050,
Omaxe,
And all other devs........
You can press thanks if it doesn't cost you....
Sent from my GT-S5360
Reserved
Sent from my GT-S5360
Well that is some nice compilation ....
u cud make it more attractive...adding more formattings and stuff :good:
STOP! THIS MOD IS ONLY FOR SAMSUNG ROM! NOT WORKING ON ASOP, CM OR OTHER!
Hello folks,
i'm new of gs4 but not of android. I'm a php developer and I like to play with my android devices and Linux but I'm surely not a king on Linux little more than a newbie
But first of all i want to describe the scenario:
THE PROBLEM
Since in the past i had a desire hd and i had a normal management of internal memory and sd as separate process my problem is to have a similar management on my gs4. Also i have 16gb version of gs4 and i want install a lot of apps!!! Also i have a 64gb sd card available. I have noticed that my gs4 installs all on internal sd also and apps download all their resources on internal sd. So with some heavy games and heavy app the internal memory became quickly full!!!
THE SOLUTION
My aim so became to use the external sd as internal sd and internal sd ONLY for apps installation so became used as internal memory!
And... yes after a lot of testing and work i have to make this working!!! So now my 64gb external sd is used for all tasks which the internal sd was used and the internal sd is only used for apps storage!! All extra files (resources, caches, etc etc) are stored in my external SD!!
HOW TO GET IT >>> VERY SIMPLE
Download ExtSd2InternalSd here correct latest version for JB(4.3) or KK(4.4.2)
WHAT YOU NEED
International galaxy s4 (i9505) with root, insicure kernel and kernel with init.d support
External sd card class 4 or superior. (you can try with class 2 also and tell us how it goes)
Rom with init.d support (if not init.d support see below)
My file attached
THE GUIDE
First of all make a nandroid backup!! I'm not responsable for any problem! You make this procedure at your risk!!!
Changelog and upgrade steps in second post
Format external sd card from your pc as fat32 or extfat
Copy attached zip in you external sd. Choose the right zip. If you have formatted your sd as fat32 choose _fat32 version, if the filesystem is extfat choose _extfat version
Go into recovery
Flash the zip for your sd card file system
Reboot and....enjoy your memory increase!!!!
IMPORTANT NOTES:
If you want to access to your INTERNAL SD you have to go with astro or ES filemangaer into /sdcard/intSdCard/0. Take attention to go into intSdCard
After the flash, please copy all content of /sdcard/intSdCard/0 to /sdcard to avoid file conflicts and files lost.
When you plug the phone to pc, the first sd is the external and you can access internal into intSdCard/0. DON'T TOUCH SECOND PARTITION SHOWED!
HOW CAN I CHECK IF ALL IS OK?
Is very simple.
With a file explorer with root ability go into /sdcard. Check If in this location you can see your files of your EXTERNAL SD card and check if you can see in /sdcard/intSdCard/0 the content of INTERNAL sd
If you want to remove the mod with a file explorer with root ability, delete the file 11extsd2internalsd from etc/init.d folder
IF YOU HAVE ISSUES
Please report:
Rom and kernel in use
the file system of external SD card and attach here
the log file stored in data/extsd2internalsd
IMPORTANT NOTE FOR DEV/ROM COOKER/WHO WANT'S TO PORT MY MOD
If you want to use the ExtSd2InternalSd in your ROM, give proper credit and a HTML link to this thread.
Do not modify it, do not rebrand it: the name is ExtSd2InternalSd
Modification and redistribution of the attached script is not permitted at all without permission of Mattiadj member
This means that you cannot feel free to zip up the attached script with other tweaks and this means that it is not be edited and shared.
WARNING for USERS: If you use or encounter a ROM with the ExtSd2InternalSd without proper credit given and no ExtSd2InternalSdr source links, please make the Developer aware of it, and if necessary, please let me know about it. Thank you.
Personal Use: You may tweak the ExtSd2InternalSd (leaving credits intact) to your own personal liking as long as it is NOT redistributed in any way.
If you like my job, buy me a beer
Help Mattiadj to buy a Galaxy s5 to make ExtSd2InternalSd mod
Now....feedback, feedback and feedback!
UPGRADE STEPS
Simply flash new zip over the older one.
Wipe cache and davilk just for sure.
CHANGELOG
v6 - 21/02/2014
v6 is compatible with latest 4.4.2 leaked XXUFNAD. Not use v5 for kk
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
v5 - 10/12/2013
Extended compatibility with all TW roms
Code clean
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
v4.1 - 19/11/2013
Fixed permission problem with some app like beatiful widgets and others
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
v4- 14/11/2013
Completely new code
Changed the mount point of internal to /sdard/intSdCard/0
Fixed problem of app2sd apps which disappear
Fixed bootloop problem
Fixed first boot camera lag
Fixed timing problem for switch on some rom/kernel combo
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
v3- 31/10/2013 Hallowen edition
TW Android 4.3 (MJ5 and above) support
Changed the mount point of internal to /data/media/intSdCard/0
Fix for app installed on external sd somentimes being lost
Some cases of bootloop fixed (need testing, please report)
Speed improvement!
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
v2 - 12/10/2013
Not need to install or use Folder mount app anymore! Simply flash and enjoy!
Media files problem fixed (wait for second reboot to make it ok or force media scanner one time)
Same size in memory managment fixed and not inverted!
Native app2sd support restored
Some app were not installable if the internal free space is less than the app space. Now this problem is fixed
Speed improvement!
Now is possibile to flash it before the first boot after new rom installation.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
v1 - 3/10/2013
First working relase
US Variants
Is this working on any of the US Variants? Specifically Verizon SCH-1545?
Thanks and Nice Work!!!
EMSpilot said:
Is this working on any of the US Variants? Specifically Verizon SCH-1545?
Thanks and Nice Work!!!
Click to expand...
Click to collapse
I don't know mate. Try and report... I have the i9505 so I can't test on other device
From universe with my gs4 snapdragon powered! now Free
SCH-1545 Verizon S4
Here are the Screen Shots you requested. I formated SD Card with extfat.
It does not work on my S4.
EMSpilot said:
Here are the Screen Shots you requested. I formated SD Card with extfat.
It does not work on my S4.
Click to expand...
Click to collapse
Which kernel do you have?
Do you see internal storage in /data/media/0?
Have you parched your system with folder mount?
From universe with my gs4 snapdragon powered! now Free
Stock Kernel
mattiadj said:
Which kernel do you have?
Do you see internal storage in /data/media/0?
Have you parched your system with folder mount?
From universe with my gs4 snapdragon powered! now Free
Click to expand...
Click to collapse
I have the stock Samsung Dev Phone Kernel. Version 3.4.0-562219
Yes I see internal in /data/media/0.
Yes I patched my system with Folder Mount.
EMSpilot said:
I have the stock Samsung Dev Phone Kernel. Version 3.4.0-562219
Yes I see internal in /data/media/0.
Yes I patched my system with Folder Mount.
Click to expand...
Click to collapse
Try to use a custom kernel with init.d support. Init.d support is required
From universe with my gs4 snapdragon powered! now Free
Unfortunately it's not working for me. Phone just boots as normal, external card is still external and all my apps installed work as normal with their data still on internal SD.
Running foxhound 2.0 with faux beta. Kernel doesnt have exfat support so I only tried fat32. And yes, I installed foldermount and patched system.
Please keep working on this, would be excellent to have it working.
Wait up 2mins before check in /sdcard, mod needs to make a lot of stuffs after first boot
Does it work with 9500
drlalitbida said:
Does it work with 9500
Click to expand...
Click to collapse
I don't know...you can try...i have i9505
init.d
mattiadj said:
Try to use a custom kernel with init.d support. Init.d support is required
From universe with my gs4 snapdragon powered! now Free
Click to expand...
Click to collapse
My kernel has init.d support. I even tested it with Universal Init.d.
EMSpilot said:
My kernel has init.d support. I even tested it with Universal Init.d.
Click to expand...
Click to collapse
Is your a i 9505?
From universe with my gs4 snapdragon powered! now Free
mattiadj said:
Is your a i 9505?
From universe with my gs4 snapdragon powered! now Free
Click to expand...
Click to collapse
No SCH-1545
EMSpilot said:
No SCH-1545
Click to expand...
Click to collapse
I haven't this phone... I can't tell you why it is not working...
From universe with my gs4 snapdragon powered! now Free
Screen Shot
mattiadj said:
I haven't this phone... I can't tell you why it is not working...
From universe with my gs4 snapdragon powered! now Free
Click to expand...
Click to collapse
Can you please post your Screen Shots?
/mnt folder ant take a shoot
/dev/block/vold folder and take a shoot
with terminal emulator type su then mount and take a shoot
Thanks
EMSpilot said:
Can you please post your Screen Shots?
/mnt folder ant take a shoot
/dev/block/vold folder and take a shoot
with terminal emulator type su then mount and take a shoot
Thanks
Click to expand...
Click to collapse
It is almost equal to yours so it should works but I don't know why not.
This mod is very complicated. For example a version which works for i9500 doesn't works to i9505 so... We have to wait for i9505 users feedback.
For me it's fully working from 5 days and finally I can feel the power of gs4!!!
From universe with my gs4 snapdragon powered! now Free
Good
Sent from my Lenovo A690 using xda premium
Perhaps a Kernel problem ?
Hello Mattiadj,
I don't know why it doesn't work for me.
As a matter of fact, the system sees that i have 2 internal SD.
I have a Gt-i9505 (French version) rooted with CF-Auto Root.
I have init.d support with universal init.d
The Rom is samsung MH8.
I've installed Folder Mount and patched the system.
I think the problem might be a Kernel problem. Which one do you use ?
Thanks a lot.
PS: I used your patch when I had a GS 3, and it worked perfectly.