[CODE][SWAP] Curious about what is eating your swap? - G2 and Desire Z Android Development

If any of you are using SD Swap, DataSwap or zRam and you notice your swap usage in up higher than you expected (say for example on my system 60MB or so used with 64MB Dataswap + 10% zRam)
Here's a little shell script you can copy to /data/local/tmp, chmod 0775 on it, and then run it from adb shell via this command:
Code:
sh ./chkswap.sh | grep "Swap used" | grep -v "Swap used: 0" |sort -n -k 3
(my grep/sort knowledge is a tad limited so it could be done better).
You'll get an output similar to this, with the processes sorted from least amount of swap used to most:
Code:
Swap used: 8 - ( 1329 root 4532 S /sbin/adbd )
Swap used: 12 - ( 1328 root 5384 S /system/bin/rmt_storage /dev/block/mmcblk0p13 /dev/block/mmcblk0p14
Swap used: 20 - ( 1 root 364 S /init
Swap used: 48 - ( 1271 root 844 S /system/xbin/virtuous_oc )
Swap used: 56 - ( 1325 root 884 S /system/bin/installd )
Swap used: 60 - ( 1315 system 848 S /system/bin/servicemanager )
Swap used: 64 - ( 754 root 300 S /sbin/ueventd )
Swap used: 68 - ( 1327 compass 1184 S /system/bin/akmd )
Swap used: 68 - (18726 root 712 S /system/bin/debuggerd )
Swap used: 76 - ( 1330 root 1152 S /system/bin/htc_ebdlogd -s -k -P 7 )
Swap used: 80 - ( 3537 bluetoot 844 S /system/bin/brcm_patchram_plus --enable_hci --enable_lpm --baudrate 3000000 --patchram /vendor/firmware/b )
Swap used: 136 - ( 1324 bluetoot 1376 S /system/bin/dbus-daemon --system --nofork
Swap used: 148 - ( 1319 radio 16416 S /system/bin/rild )
Swap used: 172 - ( 1326 keystore 1788 S /system/bin/keystore /data/misc/keystore )
Swap used: 192 - ( 1316 root 4044 S /system/bin/vold )
Swap used: 200 - (31037 wifi 2476 S /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -iwlan0 -c/data/misc/wifi )
Swap used: 260 - ( 1317 root 7724 S /system/bin/netd )
Swap used: 280 - ( 3716 bluetoot 2188 S /system/bin/bluetoothd -n )
Swap used: 288 - ( 1358 root 992 S /system/bin/logcat2 -v time -f /devlog/system_log -r 1024 -n 50 *:w )
Swap used: 884 - ( 1322 drm 14048 S /system/bin/drmserver )
Swap used: 1064 - ( 1323 media 40916 S /system/bin/mediaserver )
Swap used: 2124 - ( 1320 system 73516 S /system/bin/surfaceflinger )
Swap used: 6740 - (19429 system 318m S {ndroid.settings} com.android.settings )
Swap used: 6856 - (19042 app_133 286m S {facebook.katana} com.facebook.katana )
Swap used: 6932 - (18993 app_135 273m S {o.mobiledefense} com.neevo.mobiledefense )
Swap used: 7348 - (18863 app_1 280m S {d.process.acore} android.process.acore )
Swap used: 7380 - (23142 app_14 270m S {d.process.media} android.process.media )
Swap used: 7392 - (23111 app_134 275m S {ogle.android.gm} com.google.android.gm )
Swap used: 7396 - (23293 app_102 269m S {es.fancywidgets} com.anddoes.fancywidgets )
Swap used: 7412 - (18822 app_97 283m S {pps.googlevoice} com.google.android.apps.googlevoice )
Swap used: 7420 - (23250 app_130 278m S {onFriendService} com.google.android.apps.maps:LocationFriendService )
Swap used: 7444 - (23092 app_130 293m S {droid.apps.maps} com.google.android.apps.maps )
Swap used: 7444 - (23205 app_130 283m S {LocationService} com.google.android.apps.maps:NetworkLocationService )
Swap used: 7564 - (13961 app_118 277m S ccc71.bmw.pro )
Swap used: 7660 - (19492 app_11 267m S {id.defcontainer} com.android.defcontainer )
Swap used: 7688 - (23237 app_130 275m S {s:FriendService} com.google.android.apps.maps:FriendService )
Swap used: 7792 - (16806 app_10 267m S {roid.dspmanager} com.bel.android.dspmanager )
Swap used: 8060 - ( 1534 app_45 316m S {e.process.gapps} com.google.process.gapps )
Swap used: 8096 - ( 3783 app_44 306m S {.android.kineto} com.android.kineto )
Swap used: 8448 - ( 1321 root 258m S zygote /bin/app_process -Xzygote /system/bin --zygote --start-system-server )
Swap used: 8620 - ( 3861 app_41 267m S {android.smspush} com.android.smspush )
Swap used: 11064 - (26947 app_42 305m S {nddoes.launcher} com.anddoes.launcher )
Swap used: 12268 - ( 3624 system 356m S {ndroid.systemui} com.android.systemui )
Swap used: 12436 - ( 1785 system 508m S system_server )
Swap used: 19772 - ( 3762 app_66 305m S {chtype.swiftkey} com.touchtype.swiftkey )
Swap used: 20464 - ( 3778 radio 312m S {m.android.phone} com.android.phone )
From above you can see that the phone and SwiftKeys3 uses most of my swap.
My free output at the tim of running the list above looked like:
Code:
total used free shared buffers
Mem: 375916 309656 66260 0 260
-/+ buffers: 309396 66520
Swap: 103120 61532 41588
So there you have it, a scripted way to find out what's eating most of your swap. (script attached).

kbeezie, you seem to be on a twofold mission to be the most helpful person on our forum and to re-establish our faith in this community. Well, the little things like this help a lot.
I remember the days when everyone shared everything they learned about android. Then many lost their way, and open source seemed to become everyone's pet secret.
I understand getting huge chunks of hard work ripped off is crappy; when you've worked so hard on something and someone just yoinks it for themselves.
But when someone who isn't learned in code drops by and sees this, it makes them just a little more excited about typing stuff into terminal emulator. And I bet that's how a lot of great devs are born.
Cheers.
Sent from my HTC Desire Z using xda app-developers app

Kbee u know how to set how much % of zram to use? Thank in advance
Sent from my HTC Desire Z using xda app-developers app

Steven How said:
Kbee u know how to set how much % of zram to use? Thank in advance
Sent from my HTC Desire Z using xda app-developers app
Click to expand...
Click to collapse
In Mimicry 1.3.2 RC1 (soon to be released as 1.3.2) the zRam setting has been fixed (ie: setting it in 1.3.1 does nothing), so that you can pick 10%, 18%, 26% under performance setting (ie: that % of total ram).

kbeezie said:
In Mimicry 1.3.2 RC1 (soon to be released as 1.3.2) the zRam setting has been fixed (ie: setting it in 1.3.1 does nothing), so that you can pick 10%, 18%, 26% under performance setting (ie: that % of total ram).
Click to expand...
Click to collapse
I'm not using that Rom anyway..using ice sensewich atm..
Sent from my HTC Desire Z using xda app-developers app

Steven How said:
I'm not using that Rom anyway..using ice sensewich atm..
Sent from my HTC Desire Z using xda app-developers app
Click to expand...
Click to collapse
Ahh ok, well the kernel would have to have zRam (formerly compcache) support enabled and a script to set it up. I don't know if the DataSwap mod in my signature would work for a sense rom or not (it might, it's very simple).

kbeezie said:
Ahh ok, well the kernel would have to have zRam (formerly compcache) support enabled and a script to set it up. I don't know if the DataSwap mod in my signature would work for a sense rom or not (it might, it's very simple).
Click to expand...
Click to collapse
Wat I know is swappiness is using sd card,and zram is compress the file to disk and wat is dataswap?
Sent from my HTC Desire Z using xda app-developers app

Steven How said:
Wat I know is swappiness is using sd card,and zram is compress the file to disk and wat is dataswap?
Sent from my HTC Desire Z using xda app-developers app
Click to expand...
Click to collapse
Simply put a swap file on your /data partition (ie: faster and more fluid than SD-Swap, and after a reboot is recreated on a different part of the chip so it's not working one part of the chip all the time like SD-Swap does).
Click the linky in signature it goes into a tad more details. It's generally recommended to use it with Sd-ext since that way you split the I/O between two devices.

kbeezie said:
Simply put a swap file on your /data partition (ie: faster and more fluid than SD-Swap, and after a reboot is recreated on a different part of the chip so it's not working one part of the chip all the time like SD-Swap does).
Click the linky in signature it goes into a tad more details. It's generally recommended to use it with Sd-ext since that way you split the I/O between two devices.
Click to expand...
Click to collapse
So wat I do is just flash that zip in attachment?isn't that for elitemod only??
Sent from my HTC Desire Z using xda app-developers app

So now wat should I do? Can I just extract the file of 80dataswap to init.d? And the sdext? And set permission to rwx rwx rwx? How much data swap is ok? 128 or 64 mb? If I enable data swap,will my data partition decrease ?
I'm still kinda confuse with dataswap and sd ext after reading up..still don't really understand..hope someone can simplify for me to understand thank in advance
Sent from my HTC Desire Z using xda app-developers app

No you just flash it, it uses the aroma installer to let you pick and choose options and no its not just for elitemod just the original code came from elitemod.
And yes dataswap uses /data space (which is negligible if you have an enabled sdext partition on your sd card since data/app and /app-private get stored there instead.)
The big question is whether or not you do enough on your phone to actually need the benefits of swap. It usually helps multitasking or performance of memory greedy apps
Sent from my T-Mobile G2

kbeezie said:
No you just flash it, it uses the aroma installer to let you pick and choose options and no its not just for elitemod just the original code came from elitemod.
And yes dataswap uses /data space (which is negligible if you have an enabled sdext partition on your sd card since data/app and /app-private get stored there instead.)
The big question is whether or not you do enough on your phone to actually need the benefits of swap. It usually helps multitasking or performance of memory greedy apps
Sent from my T-Mobile G2
Click to expand...
Click to collapse
After I enable the data swap..its pretty fluid....I already have a sd ext 122mb after I activate I left only 24 mb free and all the apps vanish..left only like 64kb in that app..unable to open..any idea?
How do I check if my data swap is working? And setting for it?
Sent from my HTC Desire Z using xda app-developers app

Steven How said:
After I enable the data swap..its pretty fluid....I already have a sd ext 122mb after I activate I left only 24 mb free and all the apps vanish..left only like 64kb in that app..unable to open..any idea?
How do I check if my data swap is working? And setting for it?
Sent from my HTC Desire Z using xda app-developers app
Click to expand...
Click to collapse
128MB SD-EXT is extremely small (and I've no clue why anyone would make one that small, maybe an extremely old school method of apps2SD suggestion), the SD-EXT partition must be at LEAST as big as your /data , so 2GB Sd-ext is recommended as a good fit. So if you wish to use the sd-ext feature you need to re-partition your SD card with a bigger SD-EXT partition.
Dataswap would show under typing free in the terminal (or adb shell) on the swap line.

kbeezie said:
128MB SD-EXT is extremely small (and I've no clue why anyone would make one that small, maybe an extremely old school method of apps2SD suggestion), the SD-EXT partition must be at LEAST as big as your /data , so 2GB Sd-ext is recommended as a good fit. So if you wish to use the sd-ext feature you need to re-partition your SD card with a bigger SD-EXT partition.
Dataswap would show under typing free in the terminal (or adb shell) on the swap line.
Click to expand...
Click to collapse
Idk how I get 128mb of sd ext and how do I check the data swap with terminal?? The command free??
Mind post me a link to make to make bigger partition of sd ext? Thank you in advance
Sent from my HTC Desire Z using xda app-developers app

in terminal type
free
if you have 4ext recovery you can check it there as well as change your sdext partition. you should also be able to partition your sdcard via clockwork
Sent from my HTC Vision using xda premium

demkantor said:
in terminal type
free
if you have 4ext recovery you can check it there as well as change your sdext partition. you should also be able to partition your sdcard via clockwork
Sent from my HTC Vision using xda premium
Click to expand...
Click to collapse
Using cwm to make sd ext? All my data will be erase right? Have to wait till next 2 week since I have exam..
Sent from my HTC Desire Z using xda app-developers app

you can backit up first and then restore it. if you change to 4ext recovery it can partition without a wipe, one of the many reasons I recomend it over clockwork
Sent from my HTC Vision using xda premium

Steven How said:
Using cwm to make sd ext? All my data will be erase right? Have to wait till next 2 week since I have exam..
Sent from my HTC Desire Z using xda app-developers app
Click to expand...
Click to collapse
Using either ClockWorkMod or 4EXT Touch Recovery ( I prefer 4EXT ), make a Nandroid backup of your currently installed rom.
Then Toggle USB Storage and copy ALL the content off of your SD Card onto your computer.
Using either CWM or 4EXT Repartition the SD card (all data will be lost on the card):
At least a 2GB SD-EXT (1GB is the limit, do not make one smaller than 1GB) partition.
Skip the option for SD Swap (ie: don't bother with a swap partition on the SD Card if you're going to use DataSwap)
And in 4EXT if you're asked for a size for a second SD-EXT partition, skip it, only the first Sd-ext partition will be supported.
If asked for a filesystem type, choose ext4.
THEN Toggle USB Storage again and copy back all your SD card data (which will be going onto the FAT32 portion of the SD card).
You'll then have the SD card with data again, but this time with a 2GB SD-EXT partition on it.
If you have a Rom backup Prior to the SD-EXT enabling (which was advised to have to begin with), you can restore that so that you get your apps back, and then re-enable SD-EXT now that the partition has enough storage to hold all the apps.

demkantor said:
you can backit up first and then restore it. if you change to 4ext recovery it can partition without a wipe, one of the many reasons I recomend it over clockwork
Sent from my HTC Vision using xda premium
Click to expand...
Click to collapse
U mean I can reset my sd ext without formatting the sd card with 4xt recovery? And after I install app over to sd ext partition..the app can't be found anywhere,any idea?
Sent from my HTC Desire Z using xda app-developers app

yes but it is a good idea to make a back up first just in case
as for the apps hidden this may be due to the rom you are using, some don't have sdext enabled out of the box
Sent from my HTC Vision using xda premium

Related

[Q] Best Practice to extend phone memory

Hi there,
I have successfully rooted and tweaked my Wildfire a few weeks ago and did some fine tuning since then (a lot to be honest).
XDA Developers has been a great help (obviously) but I got stuck at a few points.
There's especially one thing I'm a bit confused about: there seem to exist mainly four methods/ways to gain more internal memory:
re-partition the system, cache and data partitions
use Apps2SD (CM7)
use Darktremor Script
set up an ext partition on the SD card and move apps there (different methods)
Some of them could be used in combination.
I've read and experimented a lot but - as I said - I got stuck and a bit confused so I'll ask here for opinions/hints and probably a bit more clarification.
As you can see in my specs below I've already adjusted my internal partitions. Although I've gained a lot more space with that and being very selective which apps to install I don't feel lucky with my 312Mb.
My questions:
What would you choose to gain more space on the phone? Making an ext partition on SD or simply use CM7s built in Apps2SD?
I've read here about "S2E" - is this a good solution to work with an ext partition?
Any suggestions/hints/experiences?
Phone: HTC Wildfire S-Off By AlphaRevX
Android: 2.3.7
OverClocked: 264MHz-710MHz SmartAssV2
VM Heap Size: 32m
ROM: CM7 Nightly (7.2.0-RC0-buzz-KANG)
Radio: 13.55.55.24H_3.35.20.10
Recovery: ClockworkMod 5.0.2.0
Kernel: 2.6.35.14-nFinity [email protected] #1
Internal Memory: 320Mb Custom MTD Partition
-=V6 SuperCharger=-
Well to me it seems you already have your answer.
I personally use custom mtd settings of 145 10 and use absolutely no sd partition or a2sd what so ever. I've got quite a few apps but my internal memory has well over 200mb remaining.
In my opinion partitioning or moving apps etc just makes your system work a little harder but when using just the internal memory even with custom sizes seems to work best for me.
"sent from me2u"
I perosnaly am just using DarkTremor A2SD and I have about 100MB of free space with over 150 apps installed (140 in the app drawer, as the attachment shows, 4x5 and 7 dots up top)
slymobi said:
Well to me it seems you already have your answer.
...
In my opinion partitioning or moving apps etc just makes your system work a little harder
Click to expand...
Click to collapse
As you might have guessed that's not the answer I wanted to hear lol (but why I'm not surprised...?)
Well, in more detail I have quite a few apps I don't use very often - but I want to have on my phone for some reason. At the moment my free space is around 40-60 MB and I have the feeling that performance slightly went down a bit over the past weeks... (might be subjective though)
But anyway: that kind of honest opinion is exactly what I'm after, so thnx for your answer
[OT: regarding the nightly thread I'm not yet allowed to post in: yes, those 2 latest versions have scrolling cache disabled and I've had the feeling that it's a good thing...]
Swyped via XDA app from my HTC wildfire (buzz)
eventcom said:
As you might have guessed that's not the answer I wanted to hear lol (but why I'm not surprised...?)
Well, in more detail I have quite a few apps I don't use very often - but I want to have on my phone for some reason. At the moment my free space is around 40-60 MB and I have the feeling that performance slightly went down a bit over the past weeks... (might be subjective though)
But anyway: that kind of honest opinion is exactly what I'm after, so thnx for your answer
[OT: regarding the nightly thread I'm not yet allowed to post in: yes, those 2 latest versions have scrolling cache disabled and I've had the feeling that it's a good thing...]
Swyped via XDA app from my HTC wildfire (buzz)
Click to expand...
Click to collapse
Hi,you can use any of the methods you've stated in conjunction with the mtd ,the reason I don't use any apps to SD mods is due to 2 things.1.I have enough space left internally so not needed. 2.although it's very slim the chance of something corrupting in sdcard would simply cause errors for the apps moved to SD so my paranoia strays me from using any a2sd mods etc.I did in the past used dt app2sd and it worked fine.obviously if you are getting so low on memory even after the mtd then you might be best moving some of the lesser used apps to SD. In this case I personally would try the cm7 built in method . Others may differ but this is my opinion.
Ot. The scrolling cache removal in erwinp and cobje latest builds does not play nice on my phone but others are reporting scrolling improvement so I think it may be hit and miss for the benefits.
Anyways hope you find the method which works best for you.
Regards Slymobi.
"sent from me2u"
I was using mtd partition and dta2sd while on cm7, they work fine together. Just make sure if you use them both to do the mtd partition before installing dta2sd.
The amount of internal storage you have (or don't have) is probably not the cause of your system being sluggish, its most likely what is running in the background, yes the built in taskkiller does a good job but the more apps you have the more it has to do to keep things smooth
I recommend an app I use called autostarts, its better than a taskkiller as it'll stop all the apps that you don't want running in the background constantly starting then being killed then starting again.........
Sent from my HTC Wildfire using xda premium
Well, I thought I should complete the thread with my (ongoing) experiences:
Due to the fact that I've been really short on internal storage lately I've decided to give an ext partition on SD a try.
After stumbling over the really sweet & simple sounding "S2E" app I've been a bit shy to give it a go because the last (& rare) posts here @XDA dev about user experience with the app are not very fresh. But after having some issues like another member described here my latest tweaks & changes were lost anyway so I've decided to give it a try while doing everything from scratch anyway.
I'm happy with it so far - all apps on sd-ext now, I'll probably try out (with doing two nandroid backups before...) to move the dalvic cache also but I'm uncertain with that at the moment LOL
Scratch0805 said:
I recommend an app I use called autostarts
Click to expand...
Click to collapse
very nice - that's what I've been looking for: preventing all those apps from constantly starting up without need - thx
Next step done: moved the Dalvic cache over.
I'm pretty much satisfied so far. Everything runs smooth, stable and fast.
In numbers: Around 120 apps (100Mb) and dalvic cache (90Mb) on sd-ext, app data left on internal memory. Around 190Mb internal memory free (of 300). More than 100Mb of free RAM @ 15-20 processes running.
So far - so good. I'll watch this a while (and guess what?: I got married to a second wife, her name's "nandroid"...)
Sent from my HTC Wildfire using XDA App
What's your configuration ?
eventcom said:
Next step done: moved the Dalvic cache over.
I'm pretty much satisfied so far. Everything runs smooth, stable and fast.
In numbers: Around 120 apps (100Mb) and dalvic cache (90Mb) on sd-ext, app data left on internal memory. Around 190Mb internal memory free (of 300). More than 100Mb of free RAM @ 15-20 processes running.
So far - so good. I'll watch this a while (and guess what?: I got married to a second wife, her name's "nandroid"...)
Sent from my HTC Wildfire using XDA App
Click to expand...
Click to collapse
Hey,What is storage space of your SD Card ?
What's the Ext size and Swap size allocated ?
I have got 2 GB SD Card and I am doing the fresh install.
Should I configure the memory following this :
http://forum.cyanogenmod.com/topic/44675-how-to-configure-a-sd-ext-on-htc-buzz-wildfire/
i.e Ext size (1024M) and Swap size(32M) ?????
Thanks
Hi, unfortunately I've been too busy for a few more things to post here...
optimusodd said:
Hey,What is storage space of your SD Card ?
Click to expand...
Click to collapse
Mine is 8GB - when I started with ext partition it has been a class 4 and worked pretty well - now I have a class 10 - which seems to be a bit faster and a bit more stable but not 6 times more (and I haven't done any testing as it runs stable all the time now)
What's the Ext size and Swap size allocated ?
Click to expand...
Click to collapse
AFAIR I've allocated 1024MB - FreeSpace (app by the s2e dev) says I'm having 960MB
I have got 2 GB SD Card and I am doing the fresh install.
Click to expand...
Click to collapse
have you already done the custom mtd stuff? (just because that's what really helped me most to get the performance back...)
Should I configure the memory following this :
http://forum.cyanogenmod.com/topic/44675-how-to-configure-a-sd-ext-on-htc-buzz-wildfire/
Click to expand...
Click to collapse
I have done it with CWM recovery like suggested in the thread
i.e Ext size (1024M) and Swap size(32M) ?????
Click to expand...
Click to collapse
For the EXT size yes, for the swap size I'm not sure if I configured an ext swap partition at all (I'm not sure if this is necessary with s2e - thought it just needs the partition and does the rest itself...)
Also make sure that you read the warning about moving app DATA to ext, too. I even didn't try to do so...
What I've also done is setting the SD card cache to 2048KB - you can do a speed test with SD tools and set the optimal cache with SD booster.
HTH
eventcom said:
Mine is 8GB - when I started with ext partition it has been a class 4 and worked pretty well - now I have a class 10 - which seems to be a bit faster and a bit more stable but not 6 times more (and I haven't done any testing as it runs stable all the time now)
AFAIR I've allocated 1024MB - FreeSpace (app by the s2e dev) says I'm having 960MB
have you already done the custom mtd stuff? (just because that's what really helped me most to get the performance back...)
I have done it with CWM recovery like suggested in the thread
For the EXT size yes, for the swap size I'm not sure if I configured an ext swap partition at all (I'm not sure if this is necessary with s2e - thought it just needs the partition and does the rest itself...)
Also make sure that you read the warning about moving app DATA to ext, too. I even didn't try to do so...
What I've also done is setting the SD card cache to 2048KB - you can do a speed test with SD tools and set the optimal cache with SD booster.
HTH
Click to expand...
Click to collapse
You allocated 1024MB for Ext coz you have got 8GB Card.
Mine is 2GB so what should be the Ext size for it ?( 256MB or 512 MB would not be enough ?)
What should it be ? Ext2 or Ext4 ?
According to this : http://forum.xda-developers.com/showthread.php?t=1432459
“Choose Ext2, Ext3 or Ext4 for partition type based on whether your kernel supports Ext4. If it does choose it! If you don't know choose Ext2 to be safe.”
Yes I am done with Custom MTD Partitions.
You didn't try to do "what" ?
What’s up with this “swap” partition ?
It’s so confusing.Some people claim that “swap” is like virtual RAM and more RAM means a more efficient (and faster) device.
Here are the posts supporting “swap” :
http://www.mod2xtreme.com/showthrea...crease-RAM-using-Swap-File-and-Swap-Partition
http://forum.cyanogenmod.com/topic/...-the-wildfire/page__gopid__330791#entry330791
http://forum.cyanogenmod.com/topic/44675-how-to-configure-a-sd-ext-on-htc-buzz-wildfire/
While according to “Cyanogenmod” (http://wiki.cyanogenmod.com/wiki/Swap_and_Compcache ) and some member swap doesn’t make any diff .on android devices.
If that’s true and swape is useless then why so many forums going gaga over it on XDA at the first place ???It makes no sense. So bewildering.
Please go through my query :http://forum.xda-developers.com/showthread.php?t=1738336
optimusodd said:
You allocated 1024MB for Ext coz you have got 8GB Card.
Mine is 2GB so what should be the Ext size for it ?( 256MB or 512 MB would not be enough ?)
Click to expand...
Click to collapse
Hmm, let me think about it... When I saw your question the first time I thought that I would find it hard to go with a 2GB card. Here's why: I'm really not a music or video fanatic but 2GB are nothing if you have just a few mp3's or videos on your card (specifically your camera pics and videos for example...).
So if you say you don't need that - it should be ok.
For the size you need I could only tell from my personal experience, too:
I don't have much discipline with deleting or transferring unused stuff or garbage from my phone - so I might have a few apps installed I rarely or never use (anymore). But I don't collect apps just for fun also - so I'd say I've installed an average number of apps. 120 to be more specific. That makes 474MB used for the ext partition including installed & system apps and Dalvik cache (128MB).
So if you don't plan to install more than 120 apps, 512MB might work for you - I'd probably stuck with 1024 - even with a 2GB card - to prevent running out of space (what happens exactly when you just don't need it )
What should it be ? Ext2 or Ext4 ?
Click to expand...
Click to collapse
To be honest: I can't remember exactly but I've read something about possible problems and incompatibilities with ext4. But I'm not sure if I faced that question at all when I partitioned my card with CWM... if so I'm pretty sure that I've chosen ext3 (just in case I'd like to install a different kernel some time in the future)
Following Oleg Krikun it should be ext3 or ext4 for S2E...
You didn't try to do "what" ?
Click to expand...
Click to collapse
to move the app data to ext also
What’s up with this “swap” partition ?
It’s so confusing.Some people claim that “swap” is like virtual RAM and more RAM means a more efficient (and faster) device.
Click to expand...
Click to collapse
Yes it might sound confusing - but there are a few things to consider also besides a simple "do it" or "leave it": More RAM is an advantage if it's true original system RAM which can be accessed fast and handled properly and stable. If you already have a fast processor and much system RAM you might also experience some improvement by using an additional swap partition.
For CM7 - especially on the Wildfire - I pretty much agree with that:
In some applications, this makes it seem as if the application never closed at all. This is not much different from traditional swap, except that Android apps are specially programed to write out very specific information, making Android's Memory Manager more efficient that swap.
Click to expand...
Click to collapse
But your mileage may vary.
From my experience it's a bit trial and error to find the best setup and config for your phone - you should also know that there are differences between identical devices sometimes.
HTH
BTW: that's a funny post of user "Arfer":
Here are the posts supporting “swap” : (...)
http://forum.cyanogenmod.com/topic/...-the-wildfire/page__gopid__330791#entry330791
Click to expand...
Click to collapse
he cheers about 126MB free memory but has left over 125MB wasted memory in his system partition. (In other words: using custom MTD partitions he would get at least 100MB more if using a CM7 ROM)
Much different from my specs LOL:
Code:
Name: Cache
Path: /cache
SIZE: 15MB
USED: 1MB
FREE: 13MB
Name: Data
Path: /data
SIZE: 300MB
USED: 229MB
FREE: 70MB
Name: Ext
Path: /sd-ext
SIZE: 960MB
USED: 474MB
FREE: 485MB
Name: SD-card
Path: /sdcard
SIZE: 6670MB
USED: 4509MB
FREE: 2160MB
Name: System
Path: /system
SIZE: 150MB
USED: 123MB
FREE: 26MB
Okay,thanks buddy ,I'm gonna give it a try.
Thanks for your helpful, constructive insight.I really appreciate that.
You rock!!:good:
eventcom said:
BTW: that's a funny post of user "Arfer":
he cheers about 126MB free memory but has left over 125MB wasted memory in his system partition. (In other words: using custom MTD partitions he would get at least 100MB more if using a CM7 ROM)
Click to expand...
Click to collapse
LOL,I wonder if he is aware of MTD partition.
Okay,off to "Experimenter mode":fingers-crossed:
SD Card alignment
Hey,what's your take on "SD Card alignment "?
Anybody tried that ?
Here :
http://www.hjreggel.net/cardspeed/cs_calign.html
http://www.patriotmemory.com/forums/showthread.php?3696-HOWTO-Increase-write-speed-by-aligning-FAT32
Hmm, if I'm not totally wrong this has only to do with writing speed issues when you use the regular FAT32 partition of your card on your PC while the EXT partition is NOT FAT32 of course (but a system drive of the Android system) ;-)
Swyped from my HTC Wildfire (Buzz)

Rebooting after flash

Hi guys.. I just wanted to ask whether it is normal if my phone reboots few times after flashing new ROM...
and after the reboots your in the os ok? not normal but my guess is there's a kernel problem, maybe you didn't fully wipe. but if all works after a few reboots you should be ok
Sent from my HTC Vision using xda premium
jumptoin said:
Hi guys.. I just wanted to ask whether it is normal if my phone reboots few times after flashing new ROM...
Click to expand...
Click to collapse
Depends on the ROM/Kernel. For example with EliteMod/Kernel a reboot is actually required for it to finish up post-install steps.
But if you're talking bout rebooting like 4 or 6 times and never entering the OS, that could be indications of a problem causing a boot loop. One example is flashing a Rom/Kernel that doesn't support your radio (some require the newer *.19 radio), or if you try to flash a larger (sense?) rom onto a G2 hboot instead of DZ hboot.
More information is needed if you need further help.
it was exactly elite rom with elite kernel so it means everythings allright?
jumptoin said:
it was exactly elite rom with elite kernel so it means everythings allright?
Click to expand...
Click to collapse
Should be fine, the usual process is:
Recovery (backup if needed)
Partition SD Card if needed (i.e.: sd-ext, no sd-ext2, don't bother with swap if using dataswap)
Factory Reset / Cache / Dalvik Cache Wipe
Flash Rom (no need to flash Kernel as it's included in the Rom)
Flash Addons if desired (DataSwap Mod, Google Talk, as specified in thread, etc)
Reboot
Initial boot may take a while, and might reboot once or twice
Setup your information and when you reach the home screen you may be prompted with a dialog that says Apex Launcher and "Reboot Now!", you select the Reboot Now, and follow the instructions to do the final reboot and then all is done.
kbeezie said:
Should be fine, the usual process is:
Recovery (backup if needed)
Partition SD Card if needed (i.e.: sd-ext, no sd-ext2, don't bother with swap if using dataswap)
Factory Reset / Cache / Dalvik Cache Wipe
Flash Rom (no need to flash Kernel as it's included in the Rom)
Flash Addons if desired (DataSwap Mod, Google Talk, as specified in thread, etc)
Reboot
Initial boot may take a while, and might reboot once or twice
Setup your information and when you reach the home screen you may be prompted with a dialog that says Apex Launcher and "Reboot Now!", you select the Reboot Now, and follow the instructions to do the final reboot and then all is done.
Click to expand...
Click to collapse
thats exactly what i did now my phone is like a wind and could i have one more question ..sorry for stupid questions iam just curious and i like these things ... what is dataswap for? i know that it makes something faster... thank you bro
jumptoin said:
thats exactly what i did now my phone is like a wind and could i have one more question ..sorry for stupid questions iam just curious and i like these things ... what is dataswap for? i know that it makes something faster... thank you bro
Click to expand...
Click to collapse
In a nutshell = using /data for your swap instead of the SD card for faster access and no need to partition the SD Card for swap space.
DataSwap is a mod that nik3r created for EliteMod that utilizes a swapfile on the /data partition (as he said compliments the use of sd-ext since space on /data is freed up when all the apps are moved to sd-ext).
Using Dataswap would be faster than a swap partition on the SD card because it's run off internal memory, and to prevent wear on the internal memory the location of the swap file is moved after every reboot (where as sd-swap is always swapping to that portion of the SD card).
With both dataswap and sd-ext used you distribute your usage across two different sets of storage which in the long run might improve the life of the device.
If you're unfamiliar with swap, its basically 'extra' space when you run out of ram which can help improve multitasking. Without any swap space at all you tend to run into Force Closes and applications hanging when you actually run out of memory.
64MB is the recommended size, where as 96MB would be good for people who do a lot of heavy multitasking. You *can* use both DataSwap and SD Swap, but not much point to it.
PS: The DataSwap mod he made only works with the EliteKernel, and is not recommended to be used without sd-ext since you want that free space on /data for it.
Details in his own words here : http://forum.xda-developers.com/showpost.php?p=27608489&postcount=153
The cliff notes:
- complements sd-ext
- dramatically improves multitasking
Click to expand...
Click to collapse
kbeezie said:
In a nutshell = using /data for your swap instead of the SD card for faster access and no need to partition the SD Card for swap space.
DataSwap is a mod that nik3r created for EliteMod that utilizes a swapfile on the /data partition (as he said compliments the use of sd-ext since space on /data is freed up when all the apps are moved to sd-ext).
Using Dataswap would be faster than a swap partition on the SD card because it's run off internal memory, and to prevent wear on the internal memory the location of the swap file is moved after every reboot (where as sd-swap is always swapping to that portion of the SD card).
With both dataswap and sd-ext used you distribute your usage across two different sets of storage which in the long run might improve the life of the device.
If you're unfamiliar with swap, its basically 'extra' space when you run out of ram which can help improve multitasking. Without any swap space at all you tend to run into Force Closes and applications hanging when you actually run out of memory.
64MB is the recommended size, where as 96MB would be good for people who do a lot of heavy multitasking. You *can* use both DataSwap and SD Swap, but not much point to it.
PS: The DataSwap mod he made only works with the EliteKernel, and is not recommended to be used without sd-ext since you want that free space on /data for it.
Details in his own words here : http://forum.xda-developers.com/showpost.php?p=27608489&postcount=153
The cliff notes:
Click to expand...
Click to collapse
thanks now i understand it at least partly ... and what do you think does it really worth flashing ? does it come with any bugs,problems?
jumptoin said:
thanks now i understand it at least partly ... and what do you think does it really worth flashing ? does it come with any bugs,problems?
Click to expand...
Click to collapse
Not that I've noticed, but swap space just like SDSwap always has that 'inherent' risk of long term use (but course when used with sd-ext you kind of spread that usage out a little). Just like how there's always a risk when rooting your phone.
If you want to give it a go, but haven't partitioned your SD Card yet (I recommend 4EXT recovery over clockwork mod especially since it can convert your existing /data /cache /system to ext4 instead of ext3 which EliteMod supports), you can backup your SD Card, partition it with sd-ext (2GB or so should do fine if you got an 8GB or 16GB card), no swap, and no sd-ext2, formatted as ext4 (then copy back the SD card stuff you saved). Then flash the DataSwap mod.
The EliteMod rom will notice the new sd-ext partition and move everything from /data/app and /data/app-private over to the sd-ext and map it from there so that the phone just see's it as internal storage ("move to SD" will refer to Fat32 partition, so ideally you don't want any of your apps showing as on "SD").
With that freed up space on /data the dataswap mode will create a swap file in /data/local
Code:
[email protected]:/data/local # busybox ls -lah
drwxr-x--x 4 root root 4.0K Jul 11 17:10 .
drwxrwx--x 18 system system 4.0K Jul 11 17:10 ..
drwxrwx--x 2 system cache 4.0K Jun 26 21:05 download
-rw-r--r-- 1 root shell 7 Jul 6 16:03 elitemod.present
-rwxrwxrwx 1 root root 42 Aug 1 2008 postcleaner.sh
-rw------- 1 root shell 96.0M Jul 11 17:10 swap
drwxrwx--x 2 shell shell 4.0K Jun 26 21:05 tmp
-rwxrwxrwx 1 root shell 2.0K Jun 26 21:12 undervolt.sh
-rwxrwxr-x 1 root root 2.0K Jun 26 20:35 userinit.sh
I'm not sure how his code 'moves' it physically around the emmc chip but it does (i.e.: to prevent any excessive usage of any one part of the internal memory).
You can verify that the dataswap is active via free
Code:
[email protected]:/data/local # free
total used free shared buffers
Mem: 375212 367000 8212 0 8176
-/+ buffers: 358824 16388
Swap: 98300 2732 95568
If you also have a swap partition on the SD card you should see the swap line contain the total of DataSwap + SDSwap space. If neither then it would simply be zero. Nik3r used to use a 32MB dataswap but found that the 'sweet spot' was around 52MB as such 64MB became the new recommended size.
You can use Dataswap without an sd-ext partition, but it's not recommended.
kbeezie said:
Not that I've noticed, but swap space just like SDSwap always has that 'inherent' risk of long term use (but course when used with sd-ext you kind of spread that usage out a little). Just like how there's always a risk when rooting your phone.
If you want to give it a go, but haven't partitioned your SD Card yet (I recommend 4EXT recovery over clockwork mod especially since it can convert your existing /data /cache /system to ext4 instead of ext3 which EliteMod supports), you can backup your SD Card, partition it with sd-ext (2GB or so should do fine if you got an 8GB or 16GB card), no swap, and no sd-ext2, formatted as ext4 (then copy back the SD card stuff you saved). Then flash the DataSwap mod.
The EliteMod rom will notice the new sd-ext partition and move everything from /data/app and /data/app-private over to the sd-ext and map it from there so that the phone just see's it as internal storage ("move to SD" will refer to Fat32 partition, so ideally you don't want any of your apps showing as on "SD").
With that freed up space on /data the dataswap mode will create a swap file in /data/local
Code:
[email protected]:/data/local # busybox ls -lah
drwxr-x--x 4 root root 4.0K Jul 11 17:10 .
drwxrwx--x 18 system system 4.0K Jul 11 17:10 ..
drwxrwx--x 2 system cache 4.0K Jun 26 21:05 download
-rw-r--r-- 1 root shell 7 Jul 6 16:03 elitemod.present
-rwxrwxrwx 1 root root 42 Aug 1 2008 postcleaner.sh
-rw------- 1 root shell 96.0M Jul 11 17:10 swap
drwxrwx--x 2 shell shell 4.0K Jun 26 21:05 tmp
-rwxrwxrwx 1 root shell 2.0K Jun 26 21:12 undervolt.sh
-rwxrwxr-x 1 root root 2.0K Jun 26 20:35 userinit.sh
I'm not sure how his code 'moves' it physically around the emmc chip but it does (i.e.: to prevent any excessive usage of any one part of the internal memory).
You can verify that the dataswap is active via free
Code:
[email protected]:/data/local # free
total used free shared buffers
Mem: 375212 367000 8212 0 8176
-/+ buffers: 358824 16388
Swap: 98300 2732 95568
If you also have a swap partition on the SD card you should see the swap line contain the total of DataSwap + SDSwap space. If neither then it would simply be zero. Nik3r used to use a 32MB dataswap but found that the 'sweet spot' was around 52MB as such 64MB became the new recommended size.
You can use Dataswap without an sd-ext partition, but it's not recommended.
Click to expand...
Click to collapse
Can i make partition .through rom manager?
Or, could I use this way http://www.youtube.com/watch?v=Cygl0qZnbaM to make ext4 partiotion?
jumptoin said:
Can i make partition .through rom manager?
Or, could I use this way http://www.youtube.com/watch?v=Cygl0qZnbaM to make ext4 partiotion?
Click to expand...
Click to collapse
I would strongly advise against using rom manager or any other app to partition or convert existing partitions. You should stick to recovery mode for those kinds of tasks.
Sent from my T-Mobile G2
4EXT recovery would be the best recovery to use for those kinds of tasks on a DZ/G2. While the paid version is in Google play, there is a free apk that simply downloads and installs the latest version of 4EXT touch recovery.
Sent from my T-Mobile G2
Ok man, Iam sure I will do it soon.
Sent from my HTC Vision

(Q) Internal storage as ram..

Is it possible to expand the ram memory when we use the internal storage? I dont use it and i dont need that .. its a good idea or not ? If its possible
Sent from my HTC One V using xda premium
No answer? Not possible or..?
Sent from my HTC One V using xda premium
you mean using external storage as a booster just like ReadyBoost on windows, right?
I think he's reffering to using the eMMC 100MB internal storage as a swap partition
Nice concept it will be great if were use internal memory as ram so we can get more ram....if its possible so....
Sent from my One V using xda premium
rockstar_26 said:
I think he's reffering to using the eMMC 100MB internal storage as a swap partition
Click to expand...
Click to collapse
Personally I don't think that that would be a good idea. emmc has limited write cycles, and swap does use the cycles quite hard, so the emmc will be dead in no time, or at least it will shorten the lifespan of the phone quite much.
And for the concept. Swap uses different partition type, so even if possible, it will require the reformat of the partition, which means s-off practically. If you need and want swap, a partition on a class6 or higher SD will be more better in my opinion at least. That could be said switched if the partition dies. Also this is implemented in devices (like SE X8 and X10s).
Sent from my ONE V with CM10
So its not possible ? The phone has small ram its laggy sometimes :/
Its enough if 50 mb of the internal storage (emmc) used as ram "booster" mybe full sense will be more smoother and possibler xd
My english is not so good sry
Sent from my HTC One V using xda premium
dontbelive said:
So its not possible ? The phone has small ram its laggy sometimes :/
Its enough if 50 mb of the internal storage (emmc) used as ram "booster" mybe full sense will be more smoother and possibler xd
My english is not so good sry
It is possible one way or another, but I won't use it that's for sure. The V-s RAM is fragile even in stock, so I don't want to play with it.
And lag will be lag, there is no RAM that can match the speed of the internal RAM, even if it is a built in emmc. 512mb is not much I agree, but that is a limit that devs cannot really overcome. I personally vote for sd-swap if I must choose.
Click to expand...
Click to collapse
Can you explain short what sd-swap.is?
Sent from my HTC One V using xda premium
dontbelive said:
Can you explain short what sd-swap.is?
Sent from my HTC One V using xda premium
Click to expand...
Click to collapse
A SWAP partition is the SD card, which is enabled from kernel, and used as such after boot.
ah okeey
I have downloaded an app from.the market names.swapper i will test it for 2 days how the performance is
Sent from my HTC One V using xda premium
The app helped a bit i can play games without lag and i have flashed the full sense patch and runs soother than before
I recommend this app
Sent from my HTC One V using xda premium
dontbelive said:
The app helped a bit i can play games without lag and i have flashed the full sense patch and runs soother than before
I recommend this app
Sent from my HTC One V using xda premium
Click to expand...
Click to collapse
Well, this is the other way I mentioned, a "file" which is swap partition and mounted as such. Don't know about however, that the kernel even supports swap, but I don't really know about the work profile of the programme.
Good it helped you eventough
Hi
For more information see also here
http://forum.xda-developers.com/showthread.php?t=1805843
There is a good description of whats possible
max
maxwen said:
Hi
For more information see also here
http://forum.xda-developers.com/showthread.php?t=1805843
There is a good description of whats possible
max
Click to expand...
Click to collapse
The script enabled swap needs the kernel for swap support on SD, or am I wrong?
Sent from my ONE V with CM10
Hi
Actually we have everyting to use swap
This can be done even using an init.d script
I am currently "playing" with it and keep you informed
max
Hi
Ok guys
Here is a script that will enable the swap partition of 130m
on the internal emmc. This will make only sense if you ROM
hasnt already enabled swap!
To check use cmdline and enter
Code:
cat /prov/swaps
If you see there already a line with
Code:
/dev/block/mmcblk0p27
Then you dont need it!
USE IT AT YOUR OWN RISK!!!
http://www.mediafire.com/?i9xc4hnfheztgir
If you enter any command from inside that script on cmdline
make sure you ARE NOT MIXING up the partition!
It MUST ALWAYS BE /dev/block/mmcblk0p27!!!
If you use the wrong partition data loss is possible!!!
So make a backup before trying it.
You MUST have busybox installed for this to work!
And busybox MUST be installed in /system/xbin/
else you need to adapt the script
I have tested it on CM9 but it will work also on sense ROMs
If you use a kernel with init.d script support like KISS you can put
this script into /etc/init.d and it will be executed on boot
Dont forget to make it executable (chmod 755) also
You can also run this script using ScriptManager
The basic two commands used are
Code:
busybox mkswap /dev/block/mmcblk0p27
busybox swapon /dev/block/mmcblk0p27
First one will create a swap "area" on that partition
If you use the wrong partition here say goodbye to the
data there
Second line is enabling this swap area for the kernel
To see if it worked run
Code:
busybox free
You should see something like this
Code:
total used free shared buffers
Mem: 368696 336132 32564 0 18452
-/+ buffers: 317680 51016
Swap: 131064 3784 127280
If you want to turn of swap without rebooting you can
issue the following command
Code:
busybox swapoff /dev/block/mmcblk0p27
BTW: you will NOT see swap space in "Available RAM" in Android!
Max
but it still works as a RAM right?
Wait.. i don't really understand that...
maxwen said:
Hi
Ok guys
Here is a script that will enable the swap partition of 130m
on the internal emmc
USE IT AT YOUR OWN RISK!!!
http://www.mediafire.com/?i9xc4hnfheztgir
If you enter any command from inside that script on cmdline
make sure you ARE NOT MIXING up the partition!
It MUST ALWAYS BE /dev/block/mmcblk0p27!!!
If you use the wrong partition data loss is possible!!!
So make a backup before trying it.
You MUST have busybox installed for this to work!
And busybox MUST be installed in /system/xbin/
else you need to adapt the script
I have tested it on CM9 but it will work also on sense ROMs
If you use a kernel with init.d script support like KISS you can put
this script into /etc/init.d and it will be executed on boot
Dont forget to make it executable (chmod 755) also
You can also run this script using ScriptManager
The basic two commands used are
Code:
busybox mkswap /dev/block/mmcblk0p27
busybox swapon /dev/block/mmcblk0p27
First one will create a swap "area" on that partition
If you use the wrong partition here say goodbye to the
data there
Second line is enabling this swap area for the kernel
To see if it worked run
Code:
busybox free
You should see something like this
Code:
total used free shared buffers
Mem: 368696 336132 32564 0 18452
-/+ buffers: 317680 51016
Swap: 131064 3784 127280
If you want to turn of swap without rebooting you can
issue the following command
Code:
busybox swapoff /dev/block/mmcblk0p27
BTW: you will NOT see swap space in "Available RAM" in Android!
Max
Click to expand...
Click to collapse
This is just perfect maxwen! I have created 2 widgets that let me create a swap partition on the fly! whenever I use a memory intensive app (Games for example) I turn on swap. For everyday use I just turn it off!!:highfive:
rockstar_26 said:
This is just perfect maxwen! I have created 2 widgets that let me create a swap partition on the fly! when ever I use a memory intensive app (Games for example) I turn on swap. For everyday use I just turn it off!!:highfive:
Click to expand...
Click to collapse
This seems interresting enough. Max, if the kernel already supports it, swapon will work wit an sd-swap partition, am I right? Or to be more precise, I just have to mount the swap partition of the sd (p2 if I'm right, but can see into that), then swapon?
No further action needed max, it works, will post a guide/walktrough wiwth init.d script soon.

[TUT]How to Create Partition in SDcard/MicroSD for Windows user

hello guys,
i wanna share to you guys how to make a partition in external sdcard/MicroSD for Windows user. Dunno if this already post in XDA, didn't do a research
just to remind, do this with your own risk!
now, what we need :
1. PC/Laptop
2. microsd/sdcard with capacity 2gb/4gb/8gb/16gb/32gb
3. microsd adapter or card reader.
4. Minitool Partition Wizard http://www.partitionwizard.com/free-partition-manager.html
there's another tool called gparted but this tut only use Minitool Partition
5. a ciggy and a cup of coffee
before we go through, don't do this while you're drunk, so sleepy or in hurry..
now, i assume that the minitool partition already installed on your pc/laptop and the sdcard is empty.
let's begin....
1. put your sdcard into adapter or card reader
2. open the minitool partition wizard software.(pic 1)
3. right click in sdcard (pic 2--i use 8Gb) and click delete. after that your sdcard will look like pic 2-1 as "unallocated" (becareful to choose the drive!!)
4. right click and click create (pic 3)
5. in create new partition choose "primary" (dont use logical) and change the "file system" to "Fat32".(pic 4 & pic 4-1)
6. in partition size you change to what you need. if you want to swap 1gb then change the "partition size" make your "unallocated space after" to 1024mb(pic 4-2).
(i dunno exactly the space that fit with but i use 1gb, if you dont know either you can ask to our dev or mr. pep) after that click ok
7. now you can see the 1gb seen as unallocated(pic 4-3)
8. right click and click create again at the unallocated(1gb) will be a warning that "the new created partition cannot b used in windows" click "yes" (pic 5)
9. now change the "logical" to "primary" (if you choose logical then your phone will probably got a black screen or black screen with battery icon+lock icon after you flash a new cusrom) (pic 6)
10. Change the NTFS to ext2/ext3/ext4 (if you want to install link2sd/s2e from market you can choose ext2 and/or ext4, for me i choose ext4 because i use s2e) and click ok. (pic 6-1)
now there are 3 operations pending in the left side (pic 6-2)
11. click "apply" and "yes". (pic 6-3)
12. now take your ciggy and drink your coffee and wait 1-2 minute untill the successfull pop up then click ok(pic 6-4). close minitool program.
- this ext* will not shown on windows, only on linux base OS.(you can see it on Windows by using some software, i.e : linux reader or raise data recovery, etc)
- use sdcard adapter/card reader
- if you wanna move your app just use link2sd or s2e free on market.
- in this tut i use ext4 just for example to you guys if you choose s2e, but it is not a must for you to choose ext4,.for faster read/write sd choose ext2(see post 2 by pep)
this is just a tutorial for those who dont know and dont understand how to make partition/swap and for those who dont want to swap the phone's internal<-->external. do this before go to Pristine Method
swap thing is too risky for class4 microsd,
credits to :
- minitool partition wizard (useful tools)
- mr. pep (this guide related to Pristine Method ) http://forum.xda-developers.com/showthread.php?t=2044861
- all Wonders
- XDA
if this help just click the Thanks button if there's something i forgot to write or i'm wrong please correct me..
Great tutorial!
If I may, I'd like to add some tips:
When making the very first partition (from an empty-card condition), make sure:
It's Aligned to MB instead of Cylinder
There's a 1 MB 'gap' in front of the partition
Also, make sure that all partitions' sizes (in sectors) are divisible by 256 (or, in other words, the partition size is a multiple of 128 KiB).
.
The reason for this is that some SD cards allocate their storage capacity in 'blocks', and the largest known block size is 128 KiB (128 * 1024 bytes). 256 sectors = 128 KiB. By ensuring that all partitions' sizes are divisible by 256, you are ensuring that no block is split between two partitions, thus keeping performance high (as the SD card no longer need to read a block and perform a seek just to find the beginning of a partition), and help lengthening the life of your SD card.
.
(Other SD cards might have smaller block sizes, but all a binary fraction of 128 KiB, i.e., 64 KiB or 32 KiB or 16 KiB or 8 KiB or 4 KiB. Thus, if partitions are multiples of 128 KiB, they are certainly multiples of the smaller block sizes.)
To ensure that partitions are divisible by 256, just before you click on the "Apply" button, do the following for each partition created:
Right-click on the partition
Choose Properties (the bottom option)
Click on "Partition Info" tab
The size of partition (in sectors) is "Last Physical Sector" - "First Physical Sector" + 1
For example, in my case (see the attached image), the "Last Physical Sector" is 29003775, while the "First Physical Sector" is 2048. Thus, the size of the partition is 29003775 - 2048 + 1 = 29001728. Divide 29001728 by 256 and you have the nice integer value of 113288, meaning that the partition is an exact multiple of 128 KiB.
As for the filesystem type for the second partition, I myself prefer ext2 because I reasoned:
This is an SD Card; employing journaling (implemented by ext3 / ext4) will result in too much writing -- shortening SD Card life
Writes are (nearly) instantaneous anyways; journaling are helpful if writes take some time to finish (e.g., writing to a spinning disk, which needs the track-seek and sector-seek plus track-shift plus ECC generation)
The only way a write to SD Card can get interrupted is if power was removed immediately. Aside from dropping your phone and inadvertently ejecting the battery (in which case, SD Card corruption should be the least of your concern), smartphones can't suddenly lose power. When power gets too low, Android performs an orderly shutdown ensuring that all buffers are flushed
ext2 code in the kernel is simple, making reads & writes faster, and less intrusive to foreground apps (no need to generate/manipulate a checksummed journal)
--- Posted from Opera on Lenovo T420 ---
thank you bro for rhe additional tips..i forget bout that.. that'very useful for us.
yes, ext2 is better to choose..
i use ext4 because i install s2e not link2sd..and sometimes ext2 cannot be read by s2e but it's not a must for everbody to use ext4..
Sent from my GT-I8150 using Tapatalk 2
What are the advantages to making portion
Sent from my GT-I8150 using xda app-developers app
killeeeeer said:
What are the advantages to making portion
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
- no need to swap..do this and install app link2sd or s2e free on market..
- make your microsd card read/write better..
- can hide anything in the partition
Sent from my GT-I8150 using xda premium
stpdkid said:
- no need to swap..do this and install app link2sd or s2e free on market..
- make your microsd card read/write better..
- can hide anything in the partition
Sent from my GT-I8150 using xda premium
Click to expand...
Click to collapse
Nice well try it next time i update my android build, thanks for the info
I have partition my external_sd with format "ext4".,
it's work but when I reboot my SGW i got hardbrick
sent from nokia 3310
eza azami said:
I have partition my external_sd with format "ext4".,
it's work but when I reboot my SGW i got hardbrick
sent from nokia 3310
Click to expand...
Click to collapse
did you swap your internal sd-external sd after partition to ext4 and using the app(i.e link2sd or s2e)?
what apps that you use to swap?link2sd or s2e?what app tools (beside those two app) that you use?
it wont get hardbrick if you follow the tut carefully,,
i do this with my 4 microsdcards, 2microsd with size 8gb, 1microsd with size 4gb and 1microsd with size 16gb and all of it just class4.
i use this method since 2011.
this tut will not hardbrick your phone.
stpdkid said:
did you swap your internal sd-external sd after partition to ext4 and using the app(i.e link2sd or s2e)?
what apps that you use to swap?link2sd or s2e?what app tools (beside those two app) that you use?
it wont get hardbrick if you follow the tut carefully,,
i do this with my 4 microsdcards, 2microsd with size 8gb, 1microsd with size 4gb and 1microsd with size 16gb and all of it just class4.
i use this method since 2011.
this tut will not hardbrick your phone.
Click to expand...
Click to collapse
I using s2e, but maybe I forget some step.
last month I try it again and succesful..
sent from nokia 3310
Hi stpdkid.
Okay,I've got a 32gb class 10 SD card.
I tried doing the partition last night.
It the SD card which I had been using on my Xperia Arc for nearly a year so you can imagine the amount of garbage on it.
Copied everything to my PC and went ahead with the partition.
First partition Primary/ Fat32/9gb
Second partition also named as Primary/Ext2/21gb.
Done.
Copied my files back onto the sdcard and inserted it back into my device which only recognized the 9gb.
Used link2sd and it reads only the first partition of the sdcard.
I think I did everything correctly.But why is it that I'm missing the 21gb?
Should I have named it as NTFS/Ext2/21gb?
Sent from my Xperia Arc using xda app-developers app
sandroidnz01 said:
Hi stpdkid.
Okay,I've got a 32gb class 10 SD card.
I tried doing the partition last night.
It the SD card which I had been using on my Xperia Arc for nearly a year so you can imagine the amount of garbage on it.
Copied everything to my PC and went ahead with the partition.
First partition Primary/ Fat32/9gb
Second partition also named as Primary/Ext2/21gb.
Done.
Copied my files back onto the sdcard and inserted it back into my device which only recognized the 9gb.
Used link2sd and it reads only the first partition of the sdcard.
I think I did everything correctly.But why is it that I'm missing the 21gb?
Should I have named it as NTFS/Ext2/21gb?
Sent from my Xperia Arc using xda app-developers app
Click to expand...
Click to collapse
you're missing the 21gb because you use it as ext2..change it as fat32 and the 9gb as ext2..
Sent from my GT-I8150 using xda premium
stpdkid said:
you're missing the 21gb because you use it as ext2..change it as fat32 and the 9gb as ext2..
Sent from my GT-I8150 using xda premium
Click to expand...
Click to collapse
So to do this just run the partition wizard and edit the partitions?
And setting both to Primary is not a problem?
Sent from my Xperia Arc using xda app-developers app
sandroidnz01 said:
So to do this just run the partition wizard and edit the partitions?
And setting both to Primary is not a problem?
Sent from my Xperia Arc using xda app-developers app
Click to expand...
Click to collapse
backup first and follow the step on first post.
big size partition as fat32(primary) and for ext2(primary) the small size partition..
Sent from my GT-I8150 using xda
Done.
But there's still something which is not right.
Sent from my Xperia Arc using xda app-developers app
sandroidnz01 said:
Done.
But there's still something which is not right.
Sent from my Xperia Arc using xda app-developers app
Click to expand...
Click to collapse
what do you mean something's not right?
I'm sure I did not create one partition for cache.Yet its there.
Moreover,the cache has been building up progressively and I had been unable to clear it with link2sd.Neither via CWM Recovery.
Sent from my Xperia Arc S using xda app-developers app
sandroidnz01 said:
I'm sure I did not create one partition for cache.Yet its there.
Moreover,the cache has been building up progressively and I had been unable to clear it with link2sd.Neither via CWM Recovery.
Sent from my Xperia Arc S using xda app-developers app
Click to expand...
Click to collapse
its ok. just a cache from your app..
Sent from my GT-I8150 using xda app-developers app
Really good! Thanks for the post Bro!
Can i do Partition Using USB Cord
hey bro .. is it necessary to do partition using card reader... can i continue with USB cord... ???
replzz
Nikhil Pathak said:
hey bro .. is it necessary to do partition using card reader... can i continue with USB cord... ???
replzz
Click to expand...
Click to collapse
You mean, using your phone as an SD Card reader?
You can't. Your phone exposes the first partition to the PC. The PC doesn't have access to the all-important partition table.
Sent from my GT-I8150 using xda app-developers app

[GUIDE][INFO] CronMod-INT2EXT(+) --> How To Use, What To Use, etc...

Introduction:
I have written this tutorial because many people especially in legacy ARMv6 or older device forums suffer from low internal storage. Out of those, some do not know how to increase their internal memory, some use the wrong scripts and get problems, and some, well, do it right. This tutorial is not just meant for all of us, but for anyone who has these problems, or just wants to know some things.
croniccorey said:
About:
CronMod INT2EXT was wrote for use in my rom with the goal to achive a stable and fast way of moving the data partition of your phone to the sd-ext partition, they are available for all users and developers to use in any rooted rom with init.d support.
CronMod INT2EXT scripts are the first universal INT2EXT method released.
Features:
(All scripts are tested on Android 2.3.7 - 4.2.2)
INT2EXT
-Mounts /sd-ext to /data
-Works with EXT 2/3/4 filesystems
-ZipAligns /data/app on every boot
-No symlinks
INT2EXT+
-Mounts /sd-ext to /data
-Leaves /data/data on internal for speed
-Works with EXT 2/3/4 filesystems
-ZipAligns /data/app on every boot
-No symlinks
INT2EXT4
-Mounts /sd-ext to /data
-Works with EXT 4 filesystem
-ZipAligns /data/app on every boot
-No symlinks
INT2EXT4+
-Mounts /sd-ext to /data
-Leaves /data/data on internal for speed
-Works with EXT 4 filesystem
-ZipAligns /data/app on every boot
-No symlinks
INT2EXTV2+
-Mounts /sd-ext to /data
-Leaves /data/data on internal for speed
-Works with EXT 2/3/4 filesystems
-ZipAligns /data/app on every boot
-No symlinks
-Supports SWAP2INT
-Completely universal (Testing is needed)
Prerequisites:
-Rooted Rom with init.d support
-SD-EXT partition
-100mb internal is needed for every 500mb sd-ext
SD Card Partitioning:
Partition 1 - Fat32
Partition 2 - Ext 2/3/4
Install:
(Instructions based on ClockWorkMod recovery)
-Download Chosen Script Below
-Place on root of your sdcard
-Reboot Recovery
-Select "install zip from sdcard"
-Select "choose zip from sdcard"
-Select "CronMod-****_signed"
-Select "mounts and storage" category
-Select "format /sd-ext"
-Reboot
(if you already use a A2SD/D2EXT/INT2EXT/M2SD script then you will need to remove it completely)
Click to expand...
Click to collapse
That's about it on croniccorey's side. Now, onto the basics.
What is INT2EXT?
Basically, INT2EXT is an init.d script which increases your internal memory according to the size of your EXT partition.
How do I use it?
Prerequisites and install instructions are above.
Which Script do I choose?
Now, this is the topic I would like to stress upon. Croniccorey has a bunch of nice scripts, and obviously it is difficult to choose, when you know close to or absolutely nothing of these scripts.
Alright, so let's look at each of these scripts and what they do, again.
INT2EXT
-Mounts /sd-ext to /data
-Works with EXT 2/3/4 filesystems
-ZipAligns /data/app on every boot
-No symlinks
INT2EXT+
-Mounts /sd-ext to /data
-Leaves /data/data on internal for speed
-Works with EXT 2/3/4 filesystems
-ZipAligns /data/app on every boot
-No symlinks
INT2EXTV2+
-Mounts /sd-ext to /data
-Leaves /data/data on internal for speed
-Works with EXT 2/3/4 filesystems
-ZipAligns /data/app on every boot
-No symlinks
-Supports SWAP2INT
-Completely universal (Testing is needed)
Click to expand...
Click to collapse
Note: I have not included INT2EXT4(+) because they're the same thing, only that they support ONLY EXT4.
Now, let's talk about INT2EXT+ first, as that's what majority of Wildfire S users have.
My opinion:
Not such a good choice for some people. Look at it again.
INT2EXT+
-Mounts /sd-ext to /data
-Leaves /data/data on internal for speed
Click to expand...
Click to collapse
Agreed, the red part is done for speed, but this STILL keeps some part of your data on your REAL INTERNAL MEMORY. This is exactly why croniccorey has stated in the prerequisites:
-100mb internal is needed for every 500mb sd-ext
Click to expand...
Click to collapse
This means that every 100MB of real internal memory you have, it is equivalent to 500MB of your EXT partition.
To be more clear -
Our phone has 150MB of internal memory. This means, that if you use INT2EXT+ and have a 1GB partition for example, and if you install loads of apps, it's going to say "Storage Full" on around 750MB. That means, the remaining is practically waste and you can actually use only 750MB. This is why, if you are going to install loads of apps, you can use 750MB only, with this script.
Now then, let's move on to INT2EXT.
-Mounts /sd-ext to /data
-Works with EXT 2/3/4 filesystems
-ZipAligns /data/app on every boot
-No symlinks
Click to expand...
Click to collapse
Now, you can see that there's no leaving /data/data on internal for speed. This means that your phone will become slightly laggier.
But, if you have, say, a 2GB EXT Partition and flash this script, you get the FULL 2GB to use / torture / whatever as per your wish. No catches, only con is that it becomes slightly laggier (only on some ROMs, notably on stock).
My Opinion:
If you're ready to live with some more lag, (which we're all used to, anyway) and have loads of apps on your phone which won't fit in 750MB of space, then INT2EXT is for you.
Final Verdict:
-If you're not a heavy apps installer and can happily live with 750MB of space (which is enough for most people), go for INT2EXT+. This will make your phone less laggier than INT2EXT.
-If you are a heavy apps / widgets / whatever installer, and 750MB isn't enough for you, go for INT2EXT. This will, however, make your phone slightly laggier (as aforementioned only on certain ROMs, like stock).
-If you are a heavy apps installer, can't live with 750MB of space and want good speeds, well, I'm sorry, this isn't for you.
And finally, the link you've been waiting for!
Downloads:
Click to go to the CronMod-INT2EXT Scripts page to download
Credits:
croniccorey for the scripts of course!
dk75 for teaching me on the scripts thread on which is better to use. If it wasn't for him, this thread wouldn't be here for a long time or wouldn't be here at all!
Click to expand...
Click to collapse
Coming Soon:
Tell me what to add!
And this one too
Re: [GUIDE][INFO] CronMod-INT2EXT(+) --> How To Use, What To Use, etc...
Very...very clear :thumbup:
Sent from MARVEL JellyScream
How do I run?
I have HTC wildfire s and am just learning about rooting and this internal memory issue I am having with this phone..I have NO memory but was able to root and move some stuff to sd card but I tried to install the ROM "touchwiz v6" and all that happens is the phone is stuck on the S. Do I run the :cronmod zip just like I would install a ROM?
Lt.Win said:
Coming Soon:
INT2EXTV2+ information and guide, with information on SWAP2INT!
Something else I forgot.
Click to expand...
Click to collapse
I've been trying to install the cronmod scripts for well over a couple of weeks now. Tried three different recoveries, different scripts but I always get status 0 error. What is going wrong, I even moved the files from the script folder into a rom and tried installing it from there, the files do go into the init.d folder but they don't seem to be working. I even verified the init.d by using universal init.d apk
Did you use Primary ext4 partition?
Anil_Sharma said:
I've been trying to install the cronmod scripts for well over a couple of weeks now. Tried three different recoveries, different scripts but I always get status 0 error.
Click to expand...
Click to collapse
Hi, I can just suggest you to check if your ext 2/3/4 partition is set as Primary (not logical). You must have two primary partition (1. Fat 32; 2. Ext 2/3/4)
Int2extv2+ tutorial...
Any updates
Sent from my Wildfire S A510e using xda app-developers app
[email protected]¡[email protected]_S¡D said:
Int2extv2+ tutorial...
Any updates
Sent from my Wildfire S A510e using xda app-developers app
Click to expand...
Click to collapse
Sorry,I got a new phone about a month or so back and since then I've been inactive (college).
Anyways, the v2+ tutorial is the same as the remaining. In the time I had my WFS, i could only say that INT2EXTv2+ felt faster than INT2EXT+.
That is all. And the SWAP2INT is it puts your Swap partition on your internal, that is all.
If you need me to add something, do tell me!
How do I use it?
Prerequisites and install instructions are above.
Click to expand...
Click to collapse
Can someone please help. I am on a P500. I have followed all the instructions and flashed INT2EXT+. I am using AmonRA and dont have a format sd-ext option. What should I do? And once I have completed the process, what do I actually do to shift the apps to the sd-ext partition? There are no instructions for this.
Thanks very much and I appreciate your work. :good:
Internal memory required every 500 MB sd-ext
I saw in some people's signature in this forum sd-ext up to 8GB with int2ext+, int2ext4+ or int2extv2+, which according with tutorial, needs 100 MB of internal memory every 500MB sd-ext... Any exceeding sd-ext won't be considered by system
This means that every 100MB of real internal memory you have, it is equivalent to 500MB of your EXT partition.
To be more clear -
Our phone has 150MB of internal memory. This means, that if you use INT2EXT+ and have a 1GB partition for example, and if you install loads of apps, it's going to say "Storage Full" on around 750MB. That means, the remaining is practically waste and you can actually use only 750MB. This is why, if you are going to install loads of apps, you can use 750MB only, with this script.
Click to expand...
Click to collapse
So, it is possible to use "+" scripts with sd-ext bigger than this requirement (and use the entire sd-ext))??
Good work. i ve install Int2ext+v2 with ext3 on jelly king 2.0....working theeeeee best..congrats ..keep on development....very good work .thankful for that
archstanton2013 said:
I saw in some people's signature in this forum sd-ext up to 8GB with int2ext+, int2ext4+ or int2extv2+, which according with tutorial, needs 100 MB of internal memory every 500MB sd-ext... Any exceeding sd-ext won't be considered by system
So, it is possible to use "+" scripts with sd-ext bigger than this requirement (and use the entire sd-ext))??
Click to expand...
Click to collapse
If you use the entire sd-ext you will have no space for your private stuff like pictures, etc.
If you connect to computer there will be nothing I suppose.
i am using int2extv2+ and i have 1 gb ext partition on my wfs .
my problem is that i cant install any app because it is saying that your internal is full although in settings it shows that i still have 730 mb of free space plz help me with this
umairchang said:
i am using int2extv2+ and i have 1 gb ext partition on my wfs .
my problem is that i cant install any app because it is saying that your internal is full although in settings it shows that i still have 730 mb of free space plz help me with this
Click to expand...
Click to collapse
For every 500mb ext memory you need 100mb (actual) internal storage for int2ext+,int2ext4+ and int2extv2+.
The creator of these scripts clearly mentioned it in his op!!!
Thus 750mb is maximum we can use.
If you wanna use the extra memory next time flash int2ext or int2ext4 scripts.
Sent from my Wildfire S A510e using xda app-developers app
[email protected]¡[email protected]_S¡D said:
For every 500mb ext memory you need 100mb (actual) internal storage for int2ext+,int2ext4+ and int2extv2+.
The creator of these scripts clearly mentioned it in his op!!!
Thus 750mb is maximum we can use.
If you wanna use the extra memory next time flash int2ext or int2ext4 scripts.
Sent from my Wildfire S A510e using xda app-developers app
Click to expand...
Click to collapse
actually it is full on around 250 mb not on 750 mb . 750 mb is the free space it is showing but i m not able use it
umairchang said:
actually it is full on around 250 mb not on 750 mb . 750 mb is the free space it is showing but i m not able use it
Click to expand...
Click to collapse
Flash int2ext only script.
Sent from my Wildfire S A510e using xda app-developers app
hello
thanks for this post
i've read and practiced it earlier before i register this forum
i've used kimsmodrom which have link2sd and i replace it with int2ext
now i'm using crosssfire v1
one thing i noticed, that both rom won't reboot after i wipe cache / dalvik cache, also when i use defragment
i've been through 5 times a night reinstalling rom because of this..
so i conclude that do not ever wipe cache and defragment when using int2ext
Good Tutorial man, thx
So i installed int2ext+ 1gb partition for that. Got it working, the phone shows internal storage 1gb. I'm having one problem though. When I shut down or reboot the phone it loads the internal storage and no downloaded apps work. I have to pull the battery, then it starts with int2ext again. Any ideas?
Sent from my HTC One S using xda app-developers app

Categories

Resources