Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE] How to create a swap partition on external micro-sd

OP Segnale007

22nd April 2012, 05:46 PM   |  #51  
didicola's Avatar
Senior Member
Thanks Meter: 93
 
588 posts
Join Date:Joined: Feb 2009
More
so now it is ok right?
Attached Thumbnails
Click image for larger version

Name:	shot_000002.jpg
Views:	417
Size:	15.4 KB
ID:	1018972  
22nd April 2012, 05:57 PM   |  #52  
Segnale007's Avatar
OP Senior Member
Flag London
Thanks Meter: 172
 
836 posts
Join Date:Joined: Feb 2010
Quote:
Originally Posted by sunra0815

ok guys, I made a package with devil kernel and swap settings.

1. Read the op carefully!
2. Make a swap partition on your /emmc (512mb should be more than enough)
3. It will only work if you have the following swap partition number!!!

Code:
/dev/block/mmcblk1p2
4. Flash the package via cwm.

5. After a reboot check out if it works with the "free" command.

6. enjoy

If your swap partition has an other number you can change it in the scripts in the .zip package with notepad++ or any linux editor.

1. /systm/etc/fstab
2. /swap.sh

If you do not know what Im talking about do NOT flash!!!

Im not a pro. I made this for myself, but maybe it is usefull for you too ...

Please make a Nandroidbackup before and let me know if it works for you.

Good move.. However we need to find out a way that the script will automatically detect wich partiton is the actual swap partiton to be added on /system/etc/fstab ..
22nd April 2012, 06:04 PM   |  #53  
Senior Member
Thanks Meter: 64
 
184 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by Segnale007

Good move.. However we need to find out a way that the script will automatically detect wich partiton is the actual swap partiton to be added on /system/etc/fstab ..

Yes, at the moment Im translating all those stuff for our german forum. Maybe I can find out how to grab the partition number later ...

@didicola: Looks good.
22nd April 2012, 07:48 PM   |  #54  
Segnale007's Avatar
OP Senior Member
Flag London
Thanks Meter: 172
 
836 posts
Join Date:Joined: Feb 2010
Quote:
Originally Posted by didicola

so now it is ok right?

Yea its working..
22nd April 2012, 08:09 PM   |  #55  
Senior Member
Thanks Meter: 64
 
184 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by sunra0815

ok guys, I made a package with devil kernel and swap settings.

1. Read the op carefully!
2. Make a swap partition on your /emmc (512mb should be more than enough)
3. It will only work if you have the following swap partition number!!!

Code:
/dev/block/mmcblk1p2
4. Flash the package via cwm.

5. After a reboot check out if it works with the "free" command.

6. enjoy

If your swap partition has an other number you can change it in the scripts in the .zip package with notepad++ or any linux editor.

1. /systm/etc/fstab
2. /swap.sh

If you do not know what Im talking about do NOT flash!!!

Im not a pro. I made this for myself, but maybe it is usefull for you too ...

Please make a Nandroidbackup before and let me know if it works for you.

Ive found a bug. New Version attached!

Code:
echo vm.swappiness=60 >> /system/etc/sysctl.conf
... didnt work in the swap.sh

Now there is a new line in the 05userinit file:
Code:
echo 60 > /proc/sys/vm/swappiness
This works properly.

Thanks to scheichuwe!
Last edited by sunra0815; 22nd April 2012 at 08:25 PM.
The Following User Says Thank You to sunra0815 For This Useful Post: [ View ]
22nd April 2012, 08:35 PM   |  #56  
didicola's Avatar
Senior Member
Thanks Meter: 93
 
588 posts
Join Date:Joined: Feb 2009
More
Quote:
Originally Posted by sunra0815

Ive found a bug. New Version attached!

Code:
echo vm.swappiness=60 >> /system/etc/sysctl.conf
... didnt work in the swap.sh

Now there is a new line in the 05userinit file:
Code:
echo 60 > /proc/sys/vm/swappiness
This works properly.

Thanks to scheichuwe!

there is a new 0.74 version plz integrate it too
22nd April 2012, 08:51 PM   |  #57  
Member
Thanks Meter: 13
 
58 posts
Join Date:Joined: Jan 2011
Code:
shell@android:/ # free
             total         used         free       shared      buffers
Mem:        385772       376352         9420            0        26420
-/+ buffers:             349932        35840
Swap:       514076            0       514076
the used part is remains on 0
is this ok?

sorry for the bad eng...
22nd April 2012, 09:16 PM   |  #58  
Senior Member
Thanks Meter: 64
 
184 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by ovedby

Code:
shell@android:/ # free
             total         used         free       shared      buffers
Mem:        385772       376352         9420            0        26420
-/+ buffers:             349932        35840
Swap:       514076            0       514076
the used part is remains on 0
is this ok?

sorry for the bad eng...

Open some apps and games and then check the free space again ...
22nd April 2012, 09:29 PM   |  #59  
Member
Thanks Meter: 13
 
58 posts
Join Date:Joined: Jan 2011
Quote:
Originally Posted by sunra0815

Open some apps and games and then check the free space again ...

Still the same..
Maybe I did something wrong...

Sent from my GT-I9000 using Tapatalk 2
22nd April 2012, 09:36 PM   |  #60  
lerkin's Avatar
Senior Member
Flag msk
Thanks Meter: 356
 
1,065 posts
Join Date:Joined: Jan 2011
Quote:
Originally Posted by ovedby

Still the same..
Maybe I did something wrong...

Sent from my GT-I9000 using Tapatalk 2

Wait a couple of hours

Sent from my GT-I9000 using Tapatalk 2

The Following User Says Thank You to lerkin For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
swap
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes