A couple questions about Swap - G1 Q&A, Help & Troubleshooting

I have a couple questions about swap.
I am currently running the swap file from my EXT3 partition on JACHERO. It was all running very very smoothly last night after a fresh format of the sd card and most of my apps reinstalled. This morning I put my music back on the card(6 gigs of music). Right after I did that I noticed the phone ran like a slug again.
So my first question is does the amount of data on a SD card slow the access to the swap space?
My second question is, does the Swap space (EXT3) need to be the first partion or the last? Does it make a difference either way?
Ok I lied, I guess I have a "few"questions.
What benifit if any is there to running the swap on a linux-swap partition as opposed to an EXT3? If there is a benifit, how do I tell Swapper to use the linux-swap partition? IE what is its location?

as far as i know the swap file needs to be last

it should be Fat32/EXT2/3
No, the amount of space doesnt matter as long as you have atleast 100mb free on your ext3 partition.
In the swapper settings make sure the location of the swap file is in /system/sd and not in /sdcard

nephron said:
it should be Fat32/EXT2/3
No, the amount of space doesnt matter as long as you have atleast 100mb free on your ext3 partition.
In the swapper settings make sure the location of the swap file is in /system/sd and not in /sdcard
Click to expand...
Click to collapse
Ok thanks... I have it set to the last partition already. Swapper is set to /system/sd. I have an 8gig class 6 card. I have tested this twice now though. The moment I put my music on my card the system slows down like crazy, the moment I remove said music it speeds back up....
Anyone have any ideas?

Maybe your ext2 (or ext3) or swap partitions are too big. For ext use 500MB - it's enough. For SWAP don't use more than 32MB.

BolecDST said:
Maybe your ext2 (or ext3) or swap partitions are too big. For ext use 500MB - it's enough. For SWAP don't use more than 32MB.
Click to expand...
Click to collapse
Thanks but my ext3 is 512 and the swap size was set to 32...

Related

how to extend memory in linux-swap?

how do i extend memory in linux swap through console?
like to 64mb or the next level?
thks
bansawbanchee said:
how do i extend memory in linux swap through console?
like to 64mb or the next level?
thks
Click to expand...
Click to collapse
you would have to re-partition your sdcard to include a larger linux-swap partition.
would it be possible for you to give me the code i would type on comsole if i wanted 1gb ext4 and 64 or or of swap?
i have been looking everywhere but i cant seem to find it.
i used 51dustys script for the partioning part nothing on swap in there. it created it for me.
You could use gparted or the partion editor in ubuntu to resize it but it will takes about a half hour to resize and you would have to do it twice since you would also have to resize your ext partion to give you space to extend your swap. It's easier and quicker to just backup and format
ok q. if i go into console and change sd fat32 size to say 2gb. and how would i get ext4 to 1gb everytime i try it reverts back to ext2 i can get ext2 to 1gb but i want ext4. and if i got it like that would the remainder be swap?
You do not need over 500 mb for your ext and anything over 96mb for your swap is quite excessive.
ok i understand that. but with 96mb i would like. its not neccessary for me to have 1gb of ext jst the swap
Either reformat or download either gparted or ubuntu and make a live cd and use either one to resize
thks everyone for info
shold have retraced steps
51dustys script has all i need to complete swap. il try it out monday. also his script will do the format for you from console.
i know you have already found your answer, but i used sdparted to partition my card and it is very simple and easy.

Partition SD card without ext2/ext3/ext4?

noob question...
i was wondering if it was possible to exclude an ext2/ext3/ext4 parition and create a fat32 and linux-swap only partitioned sd card and use it without any problems. i am assuming yes and apps would simply be installed to the internal memory.
i've tried searching for an answer, but did not come across anything. any help and/or answer would be appreciated.
I'm pretty sure that would be fine, if there is no ext 2,3,4 then it'll go to the internal storage
Why don't you want an ext partition? I believe the opposite, I thought the default swap config looks on partition 3, so you may have to change some stuff in the config files.
evilkorn said:
Why don't you want an ext partition? I believe the opposite, I thought the default swap config looks on partition 3, so you may have to change some stuff in the config files.
Click to expand...
Click to collapse
if that is the case, then maybe i can manually allocate ext2/ext3/ext4 to have 0 mb.
i wanted to exclude the ext partition as i wanted to see performance difference with apps installed on internal memory and keeping the linux swap.
If you use cyanogen's roms then you will have to comment out the lines that activate apps2sd and you will change your userinit.sh and user.conf to look at /dev/block/mmcblk0p2 instead of mmcblk0p3. If you do that all should work out fine.

Q's about my new class 6 card.

I just bought a nice MicroSDHC 4GB class 6 card. I think I got it cheaper than what I was supposed to, because the package stated it was a class 4, but the card itself said class 6. Got it at Best Buy incase someone wants to know where to get one. I was currently using a regular 2GB card. I am using JACxRom. It automaticly does APPS2SD. Now I want to use my 4GB SDHC. What do I do so I don't lose all of my apps? Now that I have a fast card, what settings do you guys recommend for swapper? Hero roms were too slow for me with my old card. How much faster would Hero roms be on my new card and would you consider it usable for everyday use? Thanks.
JACxRom Thread
Use Switchrom to backup everything on your phone. Create the new partitions on your new sdcard. Copy the FAT32 portion of your old sdcard to your new sdcard. Switchrom restore. Everything should be fine.
My settings with user.conf (128MB Swap)*
60 swappiness
Not using swapper
CPU overclocked via user.conf
*I would make your mmcblk0p3 (3rd partition) 128MB, but then if you find that you need it to be 64MB or whatever, resize it and leave the rest of it unpartitioned. It'll just be a drop in the bucket for your sdcard.
Well, to avoid some hassle, if I don't use a2sd, then all I have to do is backup the fat 32 partion of my card, right? And the apps will stay on the phone? Is the only purpose of a2sd to be able to install more apps? Also, how do I edit files such as the user.conf?
i have like 15 apps but use apps2sd so i don't have to worry about re-installing them when i wipe. if you don't use apps2sd but want to keep a linux-swap partition then you have to edit the a2sd script and comment out the calls to /dev/block/mmcblk0p2 and you have the change the location of where the userinit.sh and user.conf look for your partition from /dev/block/mmcblk0p3 to /dev/block/mmcblk0p2
i use pspad to edit those files in windows, since it will not change the formatting when saving them.
david1171 said:
i have like 15 apps but use apps2sd so i don't have to worry about re-installing them when i wipe. if you don't use apps2sd but want to keep a linux-swap partition then you have to edit the a2sd script and comment out the calls to /dev/block/mmcblk0p2 and you have the change the location of where the userinit.sh and user.conf look for your partition from /dev/block/mmcblk0p3 to /dev/block/mmcblk0p2
i use pspad to edit those files in windows, since it will not change the formatting when saving them.
Click to expand...
Click to collapse
But the a2sd partition doesn't mount when I plug in the G1 to my computer. How do I mount it? Ohh, and about my camera problem: I went to the t-mobile store, and luckily found out my phone still has warranty, so I will get a new phone.

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?

Categories

Resources