DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 4 of 4

Thread: Swap space for Android GB and ICS

  1. Junior Droid
    ax562's Avatar
    Member #
    258250
    Join Date
    Apr 2012
    Posts
    9
    Phone
    Droid Bionic
    #1

    Swap space for Android GB and ICS

    Antutu @1.2ghz Stock 232 ICS Webtop with Swap Space @900MB





    CF Bench @1.2ghz Stock 232 ICS Webtop with Swap Space @900MB





    Antutu @1.2ghz Stock 232 ICS with Swap Space @900MB






    CF Bench @1.2ghz Stock 232 ICS with Swap Space @900MB




    Webuntu2sd @1.23




    #If someone with 1.3ghz OC can try this out and post antutu benchmark image it would be great!

    Download link to flashable init.d swap (must have working init.d for this to work). Thanks to twinkyz1979 for this!

    Dev-Host - Bionic_Swap_Installer-signed.zip - The Ultimate Free File Hosting / File Sharing Service

    Download link for init.d support. Thanks to twinkyz1979 for this!

    Dev-Host - Bionic_init.d_Installer-signed.zip - The Ultimate Free File Hosting / File Sharing Service

    *Disclaimer - I do not take credit for this procedure since I had to find bits and pieces from other threads.**I did adjust some of the code accordingly for the Bionic though.**Use this at your own risk!**I AM NOT RESPONSIBLE FOR WHAT YOU DO TO YOUR DEVICE!

    Swap space is a partition in Linux based OSí that allows the users physical ram to be freed by moving unused inactive data to a separate partition (swap) that way freeing up physical ram for the OS and active applications.**In this procedure you will learn how to:

    A.**Create a swap partition on your external sd card.
    B:**Activate that swap partition through your Android OS.

    This is for the multi taskers.**I have seen performance increase in GB and tried my hardest to force close apps by running numerous video, audio, web browser, painting apps etc, and GB kept on ticking with no FC or reboot.**I also saw nice jumps in benchmarks (Antutu : 75-100 point, CF Bench: 100-200+).

    **I highly recommend using a class 10 external SD card for this to work optimally (will work with other speeds though).**

    ***This will decrease the life expectancy of your SD card since you will be reading/writing more than usual.

    ****This has been tested to work on ICS and performance increase have been verified.**On GB it does increase performance and stability on my phone.

    *****I have tried this and found being on stock governor is the most stable.**Stock governor highly recommended.**Over clock is OK.


    With that being said...letís begin-

    Creating Swap space partition:

    1. Back up your external sd card.

    2.**Download MiniTool Partition Wizard Home Edition here --->****http://download.cnet...tml?tag=mncol;1

    3. Remove external sd card from phone and connect to a pc using an adapter or sd card slot.**Do not do it through your phone!

    4.**Depending on how you want to do it you can resize existing partition or start from scratch.**I recommend deleting the existing fat32 partition and starting fresh.**

    5. Right click your sd card in mini tools and delete existing partition.

    6.**Right click again and create a new fat32 primary partition leaving 512BM(recommended) available or minimum 200mb of unallocated space.

    7. Click apply.

    8.**Now create a swap partition in your unallocated space by right clicking and choosing primary linux swap (make sure to use all unallocated space).

    8.**Click apply.

    9.**Return backed up data.



    Detecting and Enabling Swap in Android-

    Now that we have our partition you will need to use adb or terminal you will need to do this:

    1. In adb or terminal execute this:
    ********A. su
    ********B. fdisk -l dev/block/mmcblk0

    2. You should see your partition labeled Linux swap, write down the number, remember it, take a picture..lol

    3.**Now execute this : swapon /dev/block/mmcblkXXX (XXX being your partitions identifiers).

    4. Finally execute this:**echo 100 > /proc/sys/vm/swappiness

    5. Finished but this will not survive reboot.**Look below for methods that will.



    Creating Smanager script (execute code at boot through script, easiest method) -

    ******Make sure you have tested code before creating init.d or script

    1. Using Smanager (Free from play store) create a new file and name it androidswap.sh

    2. Edit the file and add this:

    #!/system/bin/sh
    swapon /dev/block/mmcblkXXX**************** (XXX being your partitions identifiers)
    echo 100 > /proc/sys/vm/swappiness

    3.**Save the file.**Right click it and choose open as script executable.

    4. Click "su" and "boot" and choose save configuration.

    5. Finished.**Now everytime android boots it will execute this and swap will be enabled.



    Creating init.d script (you must have init.d support to do this)-

    ******Make sure you have tested code before creating init.d or script


    1.**Using rootexplorer go to /system/etc/init.d and create a new file called androidswap

    2. Make dir rw by clicking the rw button at the top.

    3. Edit the file and input this and save after-

    #!/system/bin/sh
    swapon -a
    echo 100 > /proc/sys/vm/swappiness

    4. Go to /system/etc (make rw again by clicking rw) and create new file and call it fstab

    5.**Input this into the file and save:

    /dev/block/mmcblkXXX swap swap**********(XXX being your partitions identifiers)

    6. Now using adb/terminal execute this:

    ****A. su
    ****B. chmod 750 /system/etc/init.d/androidswap**

    7.**Finished.**This should survive reboot now. (Note: init.d method would not work for me on GB but it might work for you.**If it doesn't try smanager it's much easier.)


    I would like to thank Segnale007 for his work which I used as a template, Sogarth who taught me how to create a linux swap space, twinkyz1979 for testing on ICS leak 238, and the whole Droidhive community!
    Attached Thumbnails Attached Thumbnails Swap space for Android GB and ICS-20120806-040022.jpg   Swap space for Android GB and ICS-20120806-034134-2.jpg   Swap space for Android GB and ICS-20120806-044727.jpg   Swap space for Android GB and ICS-20120806-122922.jpg  
    Last edited by ax562; 08-18-2012 at 04:12 AM.
  2. Droid Ninja
    altspeed's Avatar
    Member #
    244575
    Join Date
    Jan 2012
    Location
    Dallas, Lone Star Republic, North America, Terra
    Posts
    1,035
    Liked
    56 times
    Twitter
    @Pat_Droid
    Phone
    Bionic, Razr M, Moto X
    #2
    here are the quadrant and antutu screenshots from mine, 1233 MHz min/max on boostedass v2 and deadline, sd write at 4096, GPU forced, 1 GB linux swap Swap space for Android GB and ICS-screenshot_2012-12-29-21-03-36.pngSwap space for Android GB and ICS-screenshot_2012-12-29-21-00-01.png
  3. Droid Ninja
    altspeed's Avatar
    Member #
    244575
    Join Date
    Jan 2012
    Location
    Dallas, Lone Star Republic, North America, Terra
    Posts
    1,035
    Liked
    56 times
    Twitter
    @Pat_Droid
    Phone
    Bionic, Razr M, Moto X
    #3
    Does anybody know if this same thing will work with razr maxx? what would you use to flash the init.d (and some kernel modules as well?)
  4. Droid Ninja
    altspeed's Avatar
    Member #
    244575
    Join Date
    Jan 2012
    Location
    Dallas, Lone Star Republic, North America, Terra
    Posts
    1,035
    Liked
    56 times
    Twitter
    @Pat_Droid
    Phone
    Bionic, Razr M, Moto X
    #4
    Edit: Yeah, it works about the same. If you need help PM me and I'll figure it out again. I did it about 4 days ago, slept since then.

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Android 2.2 Low on space
    By Zoolander in forum Android Tech Support
    Replies: 1
    Last Post: 06-26-2012, 10:22 AM
  2. Android CruzReader Low Space
    By meghat93 in forum Android Tech Support
    Replies: 0
    Last Post: 07-08-2011, 08:41 AM
  3. Support for swap space?
    By gertman in forum Project Elite
    Replies: 2
    Last Post: 12-28-2010, 08:06 PM
  4. swap space in froyo?
    By KillerVamp in forum Android Hacks and Help
    Replies: 1
    Last Post: 08-31-2010, 11:48 AM
  5. what is swap space?
    By DROIDpfft in forum Android Hacks and Help
    Replies: 6
    Last Post: 05-14-2010, 02:33 PM

Search tags for this page

android ics swap

,
android swap init.d
,

android swap partition

,

enable swap android

,
enable swap on android
,
how to add swap space in android
,

ics swap partition

,

linux swap android

,

swap android ics

,

swap file android

Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+