Tuesday 20 August 2013

// // Leave a Comment

[GUIDE] Increase RAM using Swap File and Swap Partition


WARNING: This mod may
degrade SD card life.

----------------------------------------------------
What you need:
✔ MiniTool Partition Wizard for SD Card
Partitioning
✔ A MicroSD HC 4GB or higher class 6 or
class 10
✔ MicroSD HC Card Adapter
✔ A card reader (if your pc doesn't have
card reader built in | USB Mount is not
adviseable)
✔ Swapper2 from Google Play Store
[DOWNLOAD]
✔ ADB Shell or terminal Emulator (to
check if swap is activated)
✔ Make sure you have BusyBox installed
---------------------------------------------------

Before we start, you need to know what is RAM and SWAP
Check this post:- [IMFORMATION]What is SWAP

---------------------------------------------------

STEP BY STEP GUIDE:-
How to create Swap Partition
Using MiniTool Partition Wizard
✔ Plug in you MicroSD HC Card to your
computer using the card adapter. (Do
not use USB Mount)
✔ Open MiniTool Partition Wizard and
look for the card
✔ Right Click on it and select Delete
Partition
✔ Click on Apply to Delete the Partition
✔ Right Click on it again and select
Create Partition

Set the partitions as follows:
           -1st partition:
             Label: Android-SD
             Create as: Primary
             File System: Fat32
             Partition size: as much as you want!
   
           -2nd partition:
            Label: Android-EXT3 (2nd 
                        partition is
                        for EXT which you can
                        use for
                        A2SD or
                        Link2SD)
            Create as: Primary
            File System: EXT3 (be it a
                                     custom
                                     kernel or ROM
                                     with EXT4
                                     support, use
                                     EXT3 still -play
                                     safe! )
            Partition size: MIN: 256 MB  
                                       MAX:
                                       1024MB (1GB)

            -3rd partition:
             Label: (do not put anything)
             Create as: Primary
             File System: Linux Swap
             Partition size: MIN: 32MB MAX:
                                        1024MB
                                       (1GB)  
                                        RECOMMENDED:                                   256MB

✔ After creating partitions, click Apply to
apply changes.

Using ClockWorkMod
✔ Reboot to Recovery
✔ Go to Advanced and Debugging
✔ Select partition SD card and select the
partition size that delights you

----------------------------------------------------

How to use Swap
For us to be able to use swap file or
swap partition, we need to use
Swapper2 which you can get from
Google Play.

✔ Download and Install Swapper2 (of
course)
✔ After installing, open Swapper2 and
navigate to Menu > Settings

Swapper preferences: (for kernels
that doesn't have swap partition
support)
✔ Run swapper at startup (put a check)
✔ Swap place: /sd card/swapfile.swp
(you can place it in a folder if you don't
like a messy sd card structure )

Swap size:
MIN: 10 MB MAX: 256MB
RECOMMENDED: 32MB (choose any)

Swapiness:
RECOMMENDED: 10MB
SYSTEM DEFAULT: 60MB MAX: 100MB
(choose any)

Safe unmount (put a check)

Safe remount (put a check)

Advanced preferences: (for Kernels
that supports swap partition only)

Use swap partition (put a check)

Swap partition: /dev/block/mmcblk1p2

✔ After setting preferences, press back
and tap on "ON" to turn on swap.
Reboot afterwards

---------------------------------------------------
How can I tell if swap is running?
✔ Go to the terminal emulator - or open
adb shell - and run 'free'.

✔ If it looks like this (with anything other
than zeros in the swap line), you do
have swap:


----------------------------------------------------

NOTE:
✔ You need to turn off swap before
you mount SD via USB, if you don't
you will not be able to mount sd as
swapfile is active and set to read only
which will deny request to mount USB
Storage.

DOWNLOADS:-
Get Swapper2 here:

ORIGINAL XDA THREAD:-
http://forum.xda-developers.com/showthread.php?t=1659231

0 comments:

Post a Comment