Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
MarJar
Old
(Last edited by MarJar; 15th November 2011 at 08:02 PM.) Reason: Change sdparted.txt
#1  
MarJar's Avatar
Member - OP
Thanks Meter 18
Posts: 47
Join Date: Aug 2011
Location: Buenos Aires

 
DONATE TO ME
Default [GUIDE] Config EXT+SWAP partition on AlfsKernel+GDX

I made this Tutorial for enable ext and swap partition.
I have based this guide on:
- sdparted script (thanks to 51dusty): i modified the script for works on our X8
- on http://forum.cyanogenmod.com (Enabling swap)

Requirements:
Quote:
- AlfsKernel (i used v03 for this tutorial)
- GDX (i used V019 for this tutorial)
- ADB
- sdcard (i used SD 8GB class 4 -> recomended class 6)
My configuration: (with SD 8GB class 4)
Quote:
- fat32 -> 7040 MB
- ext3 -> 1024 MB
- swap -> 128 MB (swappiness 100)

Instructions:
Quote:
1) download sdparted.txt and userinit.txt below to root of sdcard
2) boot into CWM recovery
3) mount /sdcard, /sd-ext (if you have ext partition) and /system
4) backup sdcard: adb pull /sdcard/ sdbackup
5) If you have ext partition and you want backup this: adb pull /sd-ext/ sdextbackup
6) run: adb shell
7) move sdparted.txt to /sbin -> mv /sdcard/sdparted.txt /sbin/sdparted
8) then, chmod 755 /sbin/sdparted
9) run sdparted: for the differents options see the original thread
This is for my configuration -> sdparted -es 1024M -ss 128M -efs ext3
10) restore sdcard backup: adb push sdbackup /sdcard
11) restore sd-ext backup( if necessary): adb push sxtbackup /sd-ext
12) move userinit.sh to /sd-ext -> mv /sdcard/userinit.txt /sd-ext/userinit.sh
13) then, chmod 755 /sd-ext/userinit.sh
14) reboot
Note:
For change swappiness, you must edit userinit.txt before of copy this to sdcard. You must modified line 12 with the value you want:
Quote:
echo 100 > /proc/sys/vm/swappiness;
Quote:
15-11-2011
Change sdparted.txt, there is error with command -ufs.
Attached Files
File Type: txt userinit.txt - [Click for QR Code] (205 Bytes, 931 views)
File Type: txt sdparted.txt - [Click for QR Code] (15.8 KB, 766 views)
** Sorry for my bad English **

Galaxy S Advance White
-> Kernel CoCore 5.6.2 + Stock ROM

Xperia X8 Black
-> Unlocked Bootloader
-> Kernel nAa .32 + MiniCM10
-> ext4 + Swap partitions (sometimes)


[GUIDE] Config EXT+SWAP partition on AlfsKernel+GDX
The Following 12 Users Say Thank You to MarJar For This Useful Post: [ Click to Expand ]
 
jajank
Old
#2  
Member
Thanks Meter 1
Posts: 78
Join Date: Jun 2011
exactly what is this swapper for??
i've never used it before
 
timpot07
Old
#3  
timpot07's Avatar
Senior Member
Thanks Meter 35
Posts: 325
Join Date: May 2011
here

make google as your friend..
 
jajss
Old
#4  
Member
Thanks Meter 2
Posts: 35
Join Date: Jan 2011
Location: Porto
i use swapper 2 with swap partition and is working perfectly.
i have a swap partition with 128mb,ext 3 with 512mb and the rest in fat32.
my sdcard is a kingston 4gb class 4.
 
MarJar
Old
(Last edited by MarJar; 14th November 2011 at 02:15 PM.)
#5  
MarJar's Avatar
Member - OP
Thanks Meter 18
Posts: 47
Join Date: Aug 2011
Location: Buenos Aires

 
DONATE TO ME
Quote:
Originally Posted by jajss View Post
i use swapper 2 with swap partition and is working perfectly.
i have a swap partition with 128mb,ext 3 with 512mb and the rest in fat32.
my sdcard is a kingston 4gb class 4.
With this, you don't need any app.

This is another option for use swap taking advantages of the kernel, and i think that some users don't know.
** Sorry for my bad English **

Galaxy S Advance White
-> Kernel CoCore 5.6.2 + Stock ROM

Xperia X8 Black
-> Unlocked Bootloader
-> Kernel nAa .32 + MiniCM10
-> ext4 + Swap partitions (sometimes)


[GUIDE] Config EXT+SWAP partition on AlfsKernel+GDX
The Following User Says Thank You to MarJar For This Useful Post: [ Click to Expand ]
 
jajss
Old
#6  
Member
Thanks Meter 2
Posts: 35
Join Date: Jan 2011
Location: Porto
Quote:
Originally Posted by MarJar View Post
With this, you don't need any app.

This is another option for use swap taking advantages of the kernel, and i think that some users don't know.
ok.i only say that because swapper 2 its noob friendly.
 
andrasandhi
Old
#7  
andrasandhi's Avatar
Senior Member
Thanks Meter 105
Posts: 453
Join Date: Dec 2010
Location: Bandung
Hi dev,
Just ask questions, what is swapiness?
Whats wrong if swapiness set to higher value or lower value?

Sent from my SK17i using XDA Premium App
NARUTO meet SASUKE ????
 
MarJar
Old
(Last edited by MarJar; 14th November 2011 at 03:16 PM.)
#8  
MarJar's Avatar
Member - OP
Thanks Meter 18
Posts: 47
Join Date: Aug 2011
Location: Buenos Aires

 
DONATE TO ME
you can see this http://en.wikipedia.org/wiki/Swappiness

After some test, for me, the best performance is 100; but for some people is 80. You must test it in your phone with your configuration and apps.

For change it and test without reboot, you can type in console: sysctl -w vm.swappiness=0
** Sorry for my bad English **

Galaxy S Advance White
-> Kernel CoCore 5.6.2 + Stock ROM

Xperia X8 Black
-> Unlocked Bootloader
-> Kernel nAa .32 + MiniCM10
-> ext4 + Swap partitions (sometimes)


[GUIDE] Config EXT+SWAP partition on AlfsKernel+GDX
 
andrasandhi
Old
#9  
andrasandhi's Avatar
Senior Member
Thanks Meter 105
Posts: 453
Join Date: Dec 2010
Location: Bandung
Quote:
Originally Posted by MarJar View Post
you can see this http://en.wikipedia.org/wiki/Swappiness

After some test, for me, the best performance is 100; but for some people is 80. You must test it in your phone with your configuration and apps.

For change it and test without reboot, you can type in console: sysctl -w vm.swappiness=0
Nice info, thankz dev for reference.

Sent from my SK17i using XDA Premium App
NARUTO meet SASUKE ????
 
Dexter_prog
Old
#10  
Senior Member
Thanks Meter 91
Posts: 879
Join Date: Jul 2011
anyone experienced any performance improvements after enabling swap?

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...