Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,310 Members 45,116 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
didicola
Old
#51  
didicola's Avatar
Senior Member
Thanks Meter 89
Posts: 575
Join Date: Feb 2009
so now it is ok right?
Attached Thumbnails
Click image for larger version

Name:	shot_000002.jpg
Views:	416
Size:	15.4 KB
ID:	1018972  
 
Segnale007
Old
#52  
Segnale007's Avatar
Senior Member - OP
Thanks Meter 172
Posts: 836
Join Date: Feb 2010
Location: London
Quote:
Originally Posted by sunra0815 View Post
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 ..
-- Follow me on Twitter --


 
sunra0815
Old
#53  
Senior Member
Thanks Meter 64
Posts: 184
Join Date: Nov 2010
Quote:
Originally Posted by Segnale007 View Post
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.
 
Segnale007
Old
#54  
Segnale007's Avatar
Senior Member - OP
Thanks Meter 172
Posts: 836
Join Date: Feb 2010
Location: London
Quote:
Originally Posted by didicola View Post
so now it is ok right?
Yea its working..
-- Follow me on Twitter --


 
sunra0815
Old
(Last edited by sunra0815; 22nd April 2012 at 07:25 PM.)
#55  
Senior Member
Thanks Meter 64
Posts: 184
Join Date: Nov 2010
Quote:
Originally Posted by sunra0815 View Post
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!
The Following User Says Thank You to sunra0815 For This Useful Post: [ Click to Expand ]
 
didicola
Old
#56  
didicola's Avatar
Senior Member
Thanks Meter 89
Posts: 575
Join Date: Feb 2009
Quote:
Originally Posted by sunra0815 View Post
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
 
ovedby
Old
#57  
Member
Thanks Meter 5
Posts: 37
Join Date: 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...
 
sunra0815
Old
#58  
Senior Member
Thanks Meter 64
Posts: 184
Join Date: Nov 2010
Quote:
Originally Posted by ovedby View Post
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 ...
 
ovedby
Old
#59  
Member
Thanks Meter 5
Posts: 37
Join Date: Jan 2011
Quote:
Originally Posted by sunra0815 View Post
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
 
lerkin
Old
#60  
lerkin's Avatar
Senior Member
Thanks Meter 351
Posts: 1,044
Join Date: Jan 2011
Location: msk
Quote:
Originally Posted by ovedby View Post
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: [ Click to Expand ]
Tags
swap
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes