more memory for ext3 linux swap - G1 Q&A, Help & Troubleshooting

i partion w sd card w swap linux for my jachero 2.63 but i stil get the loading screen occasionaly it is faster but i wud like to make it mroe faster..is there a way i can add more of my memory to the linux swap and tke some off from apps2sd?

Get the latest ROM 2.71

k1293 said:
i partion w sd card w swap linux for my jachero 2.63 but i stil get the loading screen occasionaly it is faster but i wud like to make it mroe faster..is there a way i can add more of my memory to the linux swap and tke some off from apps2sd?
Click to expand...
Click to collapse
Don't. Just don't do it. 32MB is the optimal size for the linux-swap partition. Any more or less will actually slow it down rather than speeding it up. Only way to get it faster is to update your ROM to newer versions with new optimizations.
Also, you really shouldn't be seeing the HTC Screen at all, I would check to make sure that the swap is being utilized:
Go to Terminal
type:
#free
If you get any zeros, your swap partition is not being used and that could be why its so slow.

sooo..... what is swap and what does it do?

its like adding extra RAM to your device at the expense of wearing your SD card quicker, it should still last a good, long while regardless though.

I'm assuming my problem must be the fact I'm still using the stock card that came with it. I should see a performance increase with a better class card right?

darkphoenix2012 said:
I'm assuming my problem must be the fact I'm still using the stock card that came with it. I should see a performance increase with a better class card right?
Click to expand...
Click to collapse
definitely

Related

Create New Swap...?

How would I upgrade my linux Swap to say 96mb without erasing SD card?
I know there is a way I saw the thread before but now I can't find it.
Thanks
Nick
Also is there a way to upgrade to ext3 or 4 without deleteing content on sd card?
If there is not a way to do this part how would I take apps off sd card and then push them back onto sd card so they run as if installed once again?
Considering I have to re format sd card in order to upgrade to ext3 or 4.
I'm doing my friends sd card for him and he doesnt want to re install apps and plus its knowledge I would like to know
Thanks,
Nick
You would use the resize command in parted to change the swap size. Also, if you use RA's 1.3.2 recovery, you can easily upgrade to ext4 without losing anything
none of the above should cause dataloss as long as its done right
bansawbanchee said:
How would I upgrade my linux Swap to say 96mb without erasing SD card?
I know there is a way I saw the thread before but now I can't find it.
Thanks
Nick
Also is there a way to upgrade to ext3 or 4 without deleteing content on sd card?
If there is not a way to do this part how would I take apps off sd card and then push them back onto sd card so they run as if installed once again?
Considering I have to re format sd card in order to upgrade to ext3 or 4.
I'm doing my friends sd card for him and he doesnt want to re install apps and plus its knowledge I would like to know
Thanks,
Nick
Click to expand...
Click to collapse
If you can, look in to loading an Ubuntu or Gparted live CD. It's makes everything soooo much easier than using parted, and it will allow you to do everything you asked about.
Is moving to 96 a larger or smaller partition than what you have now? And if it is larger, do you have the space to resize it w/o disturbing the other partitions?
PsychoPomp said:
Is moving to 96 a larger or smaller partition than what you have now? And if it is larger, do you have the space to resize it w/o disturbing the other partitions?
Click to expand...
Click to collapse
I am at 32mb on this specific sd card now. I would like to change it to 64mb and if it runs smoothly change it to 96mb and see how that goes.
-I would prefer to do everything on the phone directly and not on computer.
where could I find these commands in order to change my swappyness?
-I have 2gb ext2 and the rest fat32 on an 8gb card. 32 mb is swap.
-I want to upgrade ext2 to ext4 and then swap from 32mb to 64 mb.
-I want to do all of this without using computer and only parted.
-Also if it happens to be easier to reformat and do it the original way through parted than fine but then where could I find the commands to push apps from root of sd card to the apps2sd area that cyan pulls them from so I dont have to reinstall all apps. I have over 260 apps on this card that are installed and it would be a pain to install agian.
Thanks,
Nick

I'm using a 1gb sd card with dwangs superD and it is partitioned, but.....?

This is probably a dumb question. Do I need to do anything different to enable it to utilize the sd card to run apps off of it or is it built in? I read that cyanogen's rom was built in like that. I keep downloading apps and I don't want to run out of memory on the phone. Do I need to do anything to also use the sd card as ram?
I am using SuperD and jus partation your SD card and should all go well
Yeah it is working fine.
ilostchild said:
I am using SuperD and jus partation your SD card and should all go well
Click to expand...
Click to collapse
I was just wondering if I need to do something different or is it automatically using the sd card as ram and runing apps off of it.
jeffrimerman said:
I was just wondering if I need to do something different or is it automatically using the sd card as ram and runing apps off of it.
Click to expand...
Click to collapse
What do you mean by "something different" Different from what? In order for CM to automatically do apps2SD you need to have an EXT partition as your second partition. This can be an EXT2, EXT3 or EXT4 type partition and can be easily created by using the latest Amon_Ra Recovery Image (available here http://forum.xda-developers.com/showthread.php?t=566669).
Nothing else is needed. I see most signatures showing 512MB of EXT partition. I use the same and it has been more than enough for me.
Also, it is recommended that you use a class 6 SD card because the class 2 that came with the phone may not be fast enough and may cause some lag.
Thanks QMAN.
QMAN101 said:
What do you mean by "something different" Different from what? In order for CM to automatically do apps2SD you need to have an EXT partition as your second partition. This can be an EXT2, EXT3 or EXT4 type partition and can be easily created by using the latest Amon_Ra Recovery Image (available here http://forum.xda-developers.com/showthread.php?t=566669).
Nothing else is needed. I see most signatures showing 512MB of EXT partition. I use the same and it has been more than enough for me.
Also, it is recommended that you use a class 6 SD card because the class 2 that came with the phone may not be fast enough and may cause some lag.
Click to expand...
Click to collapse
I think you answered my question perfectly. When I put the Dwang rom on and updated to Amon Ra Recovery Image I followed instructions that had me partition the sd card and put ext2 or ext3 type partition. If I buy a class 6 SD card I imagine I can just partition it and put it in.
So to be clear, does then enable the apps to run off the sd card or to install onto the sd card and run off the card also? I mean is it using the sd card as some sort of ram or is it just using it as more of a hard drive? I'm going to guess it is just as a hard drive. I didn't designate anywhere to tell the phone to use the sd card as the installation place for apps. That's why I am kinda wondering.
Thanks
jeffrimerman said:
I think you answered my question perfectly. When I put the Dwang rom on and updated to Amon Ra Recovery Image I followed instructions that had me partition the sd card and put ext2 or ext3 type partition. If I buy a class 6 SD card I imagine I can just partition it and put it in.
So to be clear, does then enable the apps to run off the sd card or to install onto the sd card and run off the card also? I mean is it using the sd card as some sort of ram or is it just using it as more of a hard drive? I'm going to guess it is just as a hard drive. I didn't designate anywhere to tell the phone to use the sd card as the installation place for apps. That's why I am kinda wondering.
Thanks
Click to expand...
Click to collapse
It will both install on and run from sdcard. you don't have to enable anything.
dwang's rom does it automatically as long as you have the ext partition. His however does not support ext4.
Ok great.
djn541 said:
It will both install on and run from sdcard. you don't have to enable anything.
dwang's rom does it automatically as long as you have the ext partition. His however does not support ext4.
Click to expand...
Click to collapse
Is there a way to see how full the partitioned part of the sd card is getting? When I use settings I can see the fat 32 part I believe, and the internal phone memory. I have Astro, but I don't see an option to view the entire sd card's usage.
jeffrimerman said:
Is there a way to see how full the partitioned part of the sd card is getting? When I use settings I can see the fat 32 part I believe, and the internal phone memory. I have Astro, but I don't see an option to view the entire sd card's usage.
Click to expand...
Click to collapse
In rec mode goto console type...
parted dev/block/mmcblk0
print
this will tell you how much space is used by each partition
Is that what you want to know?
jeffrimerman said:
Is there a way to see how full the partitioned part of the sd card is getting? When I use settings I can see the fat 32 part I believe, and the internal phone memory. I have Astro, but I don't see an option to view the entire sd card's usage.
Click to expand...
Click to collapse
Go into settings and look under sdcard and phone storage.
djn541 said:
Go into settings and look under sdcard and phone storage.
Click to expand...
Click to collapse
Only cyan has that ,dwang doesnt use that.I think...
Ace42 said:
Only cyan has that ,dwang doesnt use that.I think...
Click to expand...
Click to collapse
With Dwang, you can still see 2 partitions, not all 3.
ok
Ace42 said:
In rec mode goto console type...
parted dev/block/mmcblk0
print
this will tell you how much space is used by each partition
Is that what you want to know?
Click to expand...
Click to collapse
That is exactly what I wanted to know. If I keep installing apps till it runs out of memory I'm guessing I won't know till it says it can't install anymore at some point.
Hey Djn I can't see the partitions with Dwang or do I need to specify something. I only see total space 449mb(i'm guessing that is the fat 32), available space 334mb. There is the internal phone storage section also.
this is what I see
number start end size type file system
1 512 472 472 primary fat 32
2 472 984 512 primary ext2
3 984 1016 31.8 primary linux-swap(v1)
So does it mean I've only used 40mb from fat32 section, but I believe I've used more than that? The ext2 part ended with more than it started, so does that mean when I partitioned it, the memory was increased? From number 3 it looks like 32mb was taken right off the top for ram?
jeffrimerman said:
That is exactly what I wanted to know. If I keep installing apps till it runs out of memory I'm guessing I won't know till it says it can't install anymore at some point.
Hey Djn I can't see the partitions with Dwang or do I need to specify something. I only see total space 449mb(i'm guessing that is the fat 32), available space 334mb. There is the internal phone storage section also.
Click to expand...
Click to collapse
Crap!, Ace is right, you can only see sd and internal with dwang, sorry about that. I haven't used dwang in quite some time.
P.S. Sorry Ace, My bad
Hey Ace
Ace42 said:
Only cyan has that ,dwang doesnt use that.I think...
Click to expand...
Click to collapse
Can you tell me what that info is telling me? It is a couple posts up. I understand the total sd card, -32 for swap yada yada. Just not sure if when it says "end" if that means that is what I have available now.
1 512 472 472 primary fat 32
2 472 984 512 primary ext2
3 984 1016 31.8 primary linux-swap(v1)
Block Start End
Well the above tells you what its for, and amount of space for each partition from starting point to end. 1 app is less than 3MB excluding games so if you have 150 apps you still have a good deal of space left.
Thanks Ace
Ace42 said:
1 512 472 472 primary fat 32
2 472 984 512 primary ext2
3 984 1016 31.8 primary linux-swap(v1)
Block Start End
Well the above tells you what its for, and amount of space for each partition from starting point to end. 1 app is less than 3MB excluding games so if you have 150 apps you still have a good deal of space left.
Click to expand...
Click to collapse
I don't put mp3s, so other than wanting a little faster load app speed with class 6 I am probably fine with my 1gb class 2 for now. I think most of the apps I have were less than 1mb. I imagine games are larger. If I happen to add mp3 and games will the phone warn me as I get close to filling up the sd card?
jeffrimerman said:
I don't put mp3s, so other than wanting a little faster load app speed with class 6 I am probably fine with my 1gb class 2 for now. I think most of the apps I have were less than 1mb. I imagine games are larger. If I happen to add mp3 and games will the phone warn me as I get close to filling up the sd card?
Click to expand...
Click to collapse
Music/vids/pics/docs will go onto the Fat32 partition...So your comp or phone will warn you that the FAt32 is full.

recommended size of ext2 partition??

right now i have a 2gb ext2 partition on my sdcard. the reason its so big is because im using it for app2sd and im going to install debian on the partition(as well as linux apps). i want to have plenty of room. im going to use this method:
http://all-google-android.com/googl...verdale's-debian-boot-v-2-0-updated-03092009/
i was told that it is way to big of a partition. i would like some more input as to why it is too big. i have a 16gb sd card and not concerned about space. will it give me performance issues? also should i convert the partition to ext3?
lokeycmos said:
right now i have a 2gb ext2 partition on my sdcard. the reason its so big is because im using it for app2sd and im going to install debian on the partition(as well as linux apps). i want to have plenty of room. im going to use this method:
http://all-google-android.com/googl...verdale's-debian-boot-v-2-0-updated-03092009/
i was told that it is way to big of a partition. i would like some more input as to why it is too big. i have a 16gb sd card and not concerned about space. will it give me performance issues? also should i convert the partition to ext3?
Click to expand...
Click to collapse
I remember reading somewhere here on XDA that 1.5 gigs was the 'recommended' maximum size for your ext partition. Why that is the case, I do not know. It very well could be related to performance, but I can not be 100% sure.
Anyone know why the 1.5 gig restriction is in place?

how can you tell?

how can you tell if your ext partition is helping?
so i downloaded apps2sd and repartitioned, but nothing is faster, i see no clarification of speed from it at all....the only thing noticeable is that my 4 gig sd card is now 1.75 gigs......help?
CHERNAB0G said:
how can you tell if your ext partition is helping?
so i downloaded apps2sd and repartitioned, but nothing is faster, i see no clarification of speed from it at all....the only thing noticeable is that my 4 gig sd card is now 1.75 gigs......help?
Click to expand...
Click to collapse
You don't, apps2sd puts your apps on the sd and that is all. It doesn't help with the speed or anything else.
CHERNAB0G said:
how can you tell if your ext partition is helping?
so i downloaded apps2sd and repartitioned, but nothing is faster, i see no clarification of speed from it at all....the only thing noticeable is that my 4 gig sd card is now 1.75 gigs......help?
Click to expand...
Click to collapse
I think you can check sd storage via settings or type df in terminal to see if its being used and how much space is left.
But speed wont be faster or slower with apps2sd.
the ext partition is for using apps2sd, so it will make your fat32 partition for media and such smaller. swap partition is to make things speedier, or supposed to. check settings/sdcard & phone storage/sd card secondary. thats how i could tell by total and available space
so to have 2 1/2 gigs for apps is really a waste unless i want to have 500 apps on my phone......good to know, if i may ask, how do i get rid of that? and how do i get this "swap" partition?
thanks for your replies, theyre greatly appreciated
CHERNAB0G said:
so to have 2 1/2 gigs for apps is really a waste unless i want to have 500 apps on my phone......good to know, if i may ask, how do i get rid of that? and how do i get this "swap" partition?
thanks for your replies, theyre greatly appreciated
Click to expand...
Click to collapse
You must repartition your sd with recovery and choose a swap size...But all your files on your sd will be deleted from your card. And you must re-DL apps from market.I use 256MB Ext cause i install less than 30 apps.My fav app is gameboid/Snesoid so i mainly care if that works.
Ace42 said:
You must repartition your sd with recovery and choose a swap size...But all your files on your sd will be deleted from your card. And you must re-DL apps from market.I use 256MB Ext cause i install less than 30 apps.My fav app is gameboid/Snesoid so i mainly care if that works.
Click to expand...
Click to collapse
*boots into recovery and actually reads the options* oh look, "partition sdcard," am i blind or what? lol. thanks ace, had a feeling i could count on you.....thanks to everyone else for there responses as well ^_^
i used droid swap, but ive only got the stock mem card for now as my 8g **** out on me, and its a class 1 i have been told, which is why i was lagging so much with a2sd. but im pretty sure you can use scripts and such to turn swap on

[Q] best partition

hello frdssss
plsee tell me which patition is best for x8
ext2,ext3,ext4 or fat 32
i mean which work fast
monu09 said:
hello frdssss
plsee tell me which patition is best for x8
ext2,ext3,ext4 or fat 32
i mean which work fast
Click to expand...
Click to collapse
I read in the internet that the fastest is ext3
xperia x8 support ext3 ?
monu09 said:
xperia x8 support ext3 ?
Click to expand...
Click to collapse
what you mean?
In my info...ext2,3,4 etc is the same ....
And who knows wats the best partition for a 8GB SDHC class 2 ?..
i mean how much shud i partition?..for the best speed
lukewong01 said:
In my info...ext2,3,4 etc is the same ....
And who knows wats the best partition for a 8GB SDHC class 2 ?..
i mean how much shud i partition?..for the best speed
Click to expand...
Click to collapse
The speed is affected by mostly the class of the card. If your card is class 2, it means, that the minimum writing speed is 2Mb/s. You can have any of the partitions you want, but the speed is derived by the SD Class. (Ext2 is fast, Ext4 is safer, but slower, i don't use ext3, fat32 is medium in every aspect, but has drawbacks (max. 1gig files)).
if you are using custom rom...just dont create any extra partition...
i use the native way..well most of custom roms support this, i suppose
Ken-Shi_Kun said:
The speed is affected by mostly the class of the card. If your card is class 2, it means, that the minimum writing speed is 2Mb/s. You can have any of the partitions you want, but the speed is derived by the SD Class. (Ext2 is fast, Ext4 is safer, but slower, i don't use ext3, fat32 is medium in every aspect, but has drawbacks (max. 1gig files)).
Click to expand...
Click to collapse
so i am using ext3 partition 300 mb..is it recommended?
i am using link2sd in 2.1
first i create ext3 then at application linking time my phone hand
than i create ext2 my phone work fine
my card is class 4 8gb
thkss
I use ext4 personally. I've heard horror reports of ext2 partition corruption and having to format and lose data. Basically, speed-wise
1st: Ext2
2nd: Ext3 and/or Ext4 (I think)
Fat32 --->?
Ext2 gives you best speed but is less safe than Ext3 and/or Ext4, Ext3 is a middle ground, Ext4 is quite safe but is slower than Ext2. I got a 1137 highscore in I/O in quadrant advanced, you get higher scores with Ext2 I think...
Fat32 is default
P.S. I'm using GingerDX so you might want to base the speed of Ext2 using GingerDX.
lukewong01 said:
so i am using ext3 partition 300 mb..is it recommended?
Click to expand...
Click to collapse
You may want to upgrade to Ext4. It has some better aspects but parted can't resize it . I use 512 MB Ext4 partition on my default 8GB sd card found in the box (obtained during promotion) and things still run fast. It's your choice.
spyder12345 said:
You may want to upgrade to Ext4. It has some better aspects but parted can't resize it . I use 512 MB Ext4 partition on my default 8GB sd card found in the box (obtained during promotion) and things still run fast. It's your choice.
Click to expand...
Click to collapse
thanks for the info..having class 2 memory card really slow downs the phone right?..
lukewong01 said:
thanks for the info..having class 2 memory card really slow downs the phone right?..
Click to expand...
Click to collapse
I'm not sure if mine is class 2 (dumb sandisk didn't put symbol there), I think it might be. My write speed (as measured using SD Tools) is about 13 MB/s and read speed is about 20+ MB/s. If mine is class 2, then it doesn't appear to slow the phone down. But I don't think mine is class 2 and I have heard reports that data2sd on class 2 sd card lags the entire phone down like sh!t.
spyder12345 said:
I'm not sure if mine is class 2 (dumb sandisk didn't put symbol there), I think it might be. My write speed (as measured using SD Tools) is about 13 MB/s and read speed is about 20+ MB/s. If mine is class 2, then it doesn't appear to slow the phone down. But I don't think mine is class 2 and I have heard reports that data2sd on class 2 sd card lags the entire phone down like sh!t.
Click to expand...
Click to collapse
I think yours is class 10....because those classes are classified as
Class 2= 2MB/s
Class 4=4MB/s
Class 6=6MB/s
Class 10=10MB/s
How do i check am i using data2sd ?...
open root explorer or a similar app that can access /system files. Go to the root directory. Then, open /sd-ext. If there are folders inside you probably are using data2sd.
Note: data2sd is moving /data/app and some other stuff to /sd-ext. I think sometimes it is called a2sd or app2sd. I also use dalvik2sd .
spyder12345 said:
open root explorer or a similar app that can access /system files. Go to the root directory. Then, open /sd-ext. If there are folders inside you probably are using data2sd.
Note: data2sd is moving /data/app and some other stuff to /sd-ext. I think sometimes it is called a2sd or app2sd. I also use dalvik2sd .
Click to expand...
Click to collapse
I am using a2sd...with dalvik cache...so is it recommend on a SDHC 8GB class 2?..and i even tested my write speed..3.5 MB/s...
lukewong01 said:
I am using a2sd...with dalvik cache...so is it recommend on a SDHC 8GB class 2?..and i even tested my write speed..3.5 MB/s...
Click to expand...
Click to collapse
Well, first thing you do is make sure that your app that is testing the write speed is not on fat32 app2sd (on fat32 partition of sd card), move it to phone memory and recheck the write speed.
As long as you feel that there isn't really much (or any) lag at all while using a2sd, then yes it is fine to use a2sd even on a class 2 sd card.
Note: Lag can occur when using incorrect settings in smartass module or having very little ram, even when not using a2sd.
spyder12345 said:
Well, first thing you do is make sure that your app that is testing the write speed is not on fat32 app2sd (on fat32 partition of sd card), move it to phone memory and recheck the write speed.
As long as you feel that there isn't really much (or any) lag at all while using a2sd, then yes it is fine to use a2sd even on a class 2 sd card.
Note: Lag can occur when using incorrect settings in smartass module or having very little ram, even when not using a2sd.
Click to expand...
Click to collapse
I dun really get it...explain in more details please?..
lukewong01 said:
I dun really get it...explain in more details please?..
Click to expand...
Click to collapse
Basically, as long as you feel that the current lag (if any) is fine, then you can use a2sd all you want.
To test write speed properly, move your app that tests write speed to the phone and then retest.
spyder12345 said:
Basically, as long as you feel that the current lag (if any) is fine, then you can use a2sd all you want.
To test write speed properly, move your app that tests write speed to the phone and then retest.
Click to expand...
Click to collapse
Okok...i think is not quite lag..just sometimes delay..is it normal?..=D

Categories

Resources