Best settings for CyanogenMod - G1 Q&A, Help & Troubleshooting

Hey guys can you suggest me the perfect settings for my 2GB sd?
Do I need to use Swap? (now I have 64 mb of swap)
What kind of EXT it's best? (now I have ext4)
Thank you!

Krishath said:
Hey guys can you suggest me the perfect settings for my 2GB sd?
Do I need to use Swap? (now I have 64 mb of swap)
What kind of EXT it's best? (now I have ext4)
Thank you!
Click to expand...
Click to collapse
I believe ext4 is best, as it's the newest linux filesystem. I'm currently using ext3, because most ROMs don't support ext4, but I'll probably upgrade soon.
As for swap, I also have a 64mb swap partition, but default it isn't utilized. CompCache is already enabled, but I'd also like to know how to enable it.
EDIT: Swap requires a userinit.sh I'm about to try it out...

AdrianK said:
I believe ext4 is best, as it's the newest linux filesystem. I'm currently using ext3, because most ROMs don't support ext4, but I'll probably upgrade soon.
As for swap, I also have a 64mb swap partition, but default it isn't utilized. CompCache is already enabled, but I'd also like to know how to enable it.
EDIT: Swap requires a userinit.sh I'm about to try it out...
Click to expand...
Click to collapse
Yeah but what it's the best setting for this ROM?
EXT4 + SWAP 64MB are alright?
So swap partition isn't used by default? How we "activate" it?

Krishath said:
Yeah but what it's the best setting for this ROM?
EXT4 + SWAP 64MB are alright?
So swap partition isn't used by default? How we "activate" it?
Click to expand...
Click to collapse
Isn't much difference between ext3 and ext4. Cyanogen himself uses ext4, so...
You need to make a custom userinit.sh, follow that guide I posted.
Swap size probably doesn't matter too much, as long as it's not too big. 64 will be fine, any speed increase from a different size will be minimal.

This is how I'm running 4.0.4...
- 32MB Linux Partition - enabled using Swapper.
- 528MHz set ALL the time - enabled using SetCPU(Makes the UI sooo much smoother. Didnt really notice a difference in battery life either).

Using userinit.sh I enabled CompCache with linux swap on a 64 partition and it does seem smoother. Also switched to ext4 now, don't really see a difference.

Will try it now

AdrianK said:
Using userinit.sh I enabled CompCache with linux swap on a 64 partition and it does seem smoother. Also switched to ext4 now, don't really see a difference.
Click to expand...
Click to collapse
Can you post your usernit.sh?

AdrianK said:
Using userinit.sh I enabled CompCache with linux swap on a 64 partition and it does seem smoother. Also switched to ext4 now, don't really see a difference.
Click to expand...
Click to collapse
i would suggest you stick to ext3 because it's more commonly used as of right now... also 64mb is a good sized partition, and linux swap is good, but compcache and Backing Swap is a lot better...

prince.siraj said:
i would suggest you stick to ext3 because it's more commonly used as of right now... also 64mb is a good sized partition, and linux swap is good, but compcache and Backing Swap is a lot better...
Click to expand...
Click to collapse
Can I have some "made" files to put in my SD card? I have a "normal" 2GB microsd card with 64 mb of swap... I'd be glad for this

I really dont see anything wrong with ext4, Ive had a look in a few rom release threads and most of them have support for it. I use cyanogen mod 99% of the time anyway...
Krishath said:
Can I have some "made" files to put in my SD card? I have a
"normal" 2GB microsd card with 64 mb of swap... I'd be glad for this
Click to expand...
Click to collapse
Are you talking about userinit.sh and user.conf? Just follow the link I posted earlier, took me about 10 minutes to set up.

for swap dont go over 45mb. i honestly can notice the dif. i us my g1 as a test dummy. ext2,3,4 honestly does not make a dif in my eyes. i have tried all. i use linux mint to partition my sd. which by the way is the easiest and sickest way to partition. just had to put that out there for lin users. root root lol!! but ya. over 45mb makes me feel its really trying to find the swap space. try it and give me your opinion. i have partitioned my sd from recovery mkpartfs, windows partition to linux partition editor. ya. trust me. i currently use 40mb swap. that is what really matters. use at ur comfort and day to day usage. fosho!!

Related

Running a fully fxnal, speedy, and reliable hero rom

I haven't really kept up with he new roms put out but what are some general specs that I would need 2 run a rom as described above? (i.e. if I need swap, compcache, how to config a good compcache script, amt of swap [swappiness maybe?], and anything else that is necessary) Thanx, any help is wonderful, oh and if I'm missing anything or am just unclear feel free to clear it up
imurpops984 said:
I haven't really kept up with he new roms put out but what are some general specs that I would need 2 run a rom as described above? (i.e. if I need swap, compcache, how to config a good compcache script, amt of swap [swappiness maybe?], and anything else that is necessary) Thanx, any help is wonderful, oh and if I'm missing anything or am just unclear feel free to clear it up
Click to expand...
Click to collapse
It's acutally pretty easy.
On your SDCard set up in the following order:
Fat32
Ext3 (<1gb in size)
Linux Swap (32mb in size)
Pick up JACxHEROv1.2 (this is the hero rom that I am currently running)(Here)
Flash away! If you need further help pm me!
nolimit78 said:
It's acutally pretty easy.
On your SDCard set up in the following order:
Fat32
Ext3 (<1gb in size)
Linux Swap (32mb in size)
Pick up JACxHEROv1.2 (this is the hero rom that I am currently running)(Here)
Flash away! If you need further help pm me!
Click to expand...
Click to collapse
I suggest
Fat32
Ext3 (512mb)
Linux Swap (32mb or 64mb in size) most people liked 64mb a little more than 32.
nephron said:
I suggest
Fat32
Ext3 (512mb)
Linux Swap (32mb or 64mb in size) most people liked 64mb a little more than 32.
Click to expand...
Click to collapse
I've tried 64mb swap and came across a boot loop. Some of the hero roms freak out if it's over 32mb in my experiences.. But again these are the things that I did to get hero running and it's running beautifully.
nolimit78 said:
It's acutally pretty easy.
On your SDCard set up in the following order:
Fat32
Ext3 (<1gb in size)
Linux Swap (32mb in size)
Pick up JACxHEROv1.2 (this is the hero rom that I am currently running)(Here)
Flash away! If you need further help pm me!
Click to expand...
Click to collapse
Doesnt JACxHero 1.2 have a sms issue??? like you miss tons of texts, or does it just apply to mms messages..
Noobyflasher said:
Doesnt JACxHero 1.2 have a sms issue??? like you miss tons of texts, or does it just apply to mms messages..
Click to expand...
Click to collapse
This has been a hit and miss issue. If it does have the mms.apk issue then all you have to do is reformat the EXT3 partition and it goes away.
nolimit78 said:
This has been a hit and miss issue. If it does have the mms.apk issue then all you have to do is reformat the EXT3 partition and it goes away.
Click to expand...
Click to collapse
Are you sure....like reformat before flashing like usual or reformat again after flashing??
Yep I've had the issue myself. It's a problem that the mms.apk is getting corrupt every once in a while. All you have to do is wipe the EXT3 partition and reboot the phone. The ROM will reinstall the mms.apk.
EDIT: I also had a problem with trying to restore some old mms using "Backup for Root Users". I would restore and it would force close on me. I deleted all the messages and it fixed that issue.

Question about using swap for the first time(CM 4.1.11.1)

i am currently on Cm 4.1.11.1 with ext2 and fat 32, i know how to creat linux swap using Paragon, just want to know can i simply just create Linux swap partition and keep fat 32 and ext2 the way it is, and after creating swap, how do i use it with CM 4.1.11.1
***Please no one answer with "search" or "look around forum" because i have read threw about 100000000paages already
caleoss said:
i am currently on Cm 4.1.11.1 with ext2 and fat 32, i know how to creat linux swap using Paragon, just want to know can i simply just create Linux swap partition and keep fat 32 and ext2 the way it is, and after creating swap, how do i use it with CM 4.1.11.1
***Please no one answer with "search" or "look around forum" because i have read threw about 100000000paages already
Click to expand...
Click to collapse
You need to create a user.conf and userinit.sh on your ext partition which tell the phone which settings to use. The link's in my sig.
I'd highly recommend, switching from ext2, ext3 and 4 are journalled so you should get much better performance. If I remember correctly you can type "upgrade_fs" in Cyanogen's recovery to convert ext2 to ext3.
http://forum.xda-developers.com/showthread.php?t=534479
you may have to repartition your card (instructions in link above)
AdrianK said:
You need to create a user.conf and userinit.sh on your ext partition which tell the phone which settings to use. The link's in my sig.
I'd highly recommend, switching from ext2, ext3 and 4 are journalled so you should get much better performance. If I remember correctly you can type "upgrade_fs" in Cyanogen's recovery to convert ext2 to ext3.
Click to expand...
Click to collapse
what setting do u recomend? do u have a configuration already set up that i could just put on sd card or whatever, dont really know much about configuring it

The dudes cupcake 1.3RC2

does this ROM do Apps2sd automatically as long as you have an ext3 partition?
http://forum.xda-developers.com/showthread.php?t=507151
His changelog says this:
"Modified a2sd script to mount auto but not automatically convert to ext3"
Just out of curiosity, why are you going to that build?
didnt see that part.
it seems to run faster on my 8gb class 6 than cyanogen 4.0.4 did.
should it or should cyanogen be faster? i liked cyanogen but it just seemed to lag more...my friends G1 does the same thing.
also, everytime ive flashed cyanogen's 4.0.4 rom, and i install the wifi tether for root users app, it works, but it will not show up as a secured network, even though on my G1 in the app settings i have it set to be encrypted.
on cupcake 1.3RC2 it shows as a secured network as its supposed to.
He should be releasing a new update to 4.1.99 tonight which apparently will speed it up.
1.3rc2 is WAY outdated. dude's leaked release was about 3x as fast and stable. however, i'd probably consider going with one of cyanogen's roms right now, seeing as Dude has left the game for the time being, so any of his roms are going to be unsupported.
so i should flash cyanogens latest rom (is 4.0.4 still the latest stable) or should i go with 4.1.99 tonite after the update is released as the other guy said?
well, if you're running ok for now, i'd wait around for cyanogen's update tonight.
ill do that.
itll be updated in his thread tonite?
also...i have an 8gb class 6 sd card.
should i run swap? if so, 64mb, 96?
and ext3 vs ext4...i see a few are running 4 but most are running ext3. what are the pros/cons? (what would be the best SD card partition setup for 4.1.99?)
cyanogen has said that he *might* push the update out tonight, but ultimately, hes the only one who knows. as for the swap, running it is completely up to you. I have two g1s that are running 4.1.99 and the swap makes little differenct as far as i can tell. also, ext3 is fine, ext4 (because of its relative instability) is more likely to eat your card faster.
ive heard swap will eat the card faster as well.
i think ill just do fat32 and ext3.
can you explain to me what compcache is/does? i have the files and had it enabled on 4.0.4, but thats been wiped a few days ago so id have to reset it up if i want to use comcache with 4.1.99
ufvj217 said:
ive heard swap will eat the card faster as well.
i think ill just do fat32 and ext3.
can you explain to me what compcache is/does? i have the files and had it enabled on 4.0.4, but thats been wiped a few days ago so id have to reset it up if i want to use comcache with 4.1.99
Click to expand...
Click to collapse
compcache compress data that is going to be stored in ram and is cpu heavy
the result is more ram is available for use at the cost of cpu power and as a result battery life.
thats the simple way of stating it
you think i should run it?
i see in your sig you have fat32, ext3, and swap, then it says you have 32mb for comcache, is that a separate partition, or does that use space from your 96mb swap?
ufvj217 said:
you think i should run it?
i see in your sig you have fat32, ext3, and swap, then it says you have 32mb for comcache, is that a separate partition, or does that use space from your 96mb swap?
Click to expand...
Click to collapse
The compcache is stored on the RAM. The swap partition is on the SDcard and is used as a backing when the RAM fills up or the information cannot be compressed. The swap is generally for when I'm on a Hero ROM, where I use the swap only (since its a little bit faster for me on Hero)
I have a detailed explanation on the performance benefits on Compcache + Swap only, but I don't remember where it is.
Cyanogen uses Compcache by default, so if you don't have a userinit.sh, it will be on. Try it out, and then try it with the script. See what works better for you

Compcache + backing swap in newer CM ROMs

Hello!
I have a G1 using CM 4.1.999, and my microSD is partitioned with an ext4 for apps2sd and a 64MB linux-swap partition.
I am using the user-configurable userinit.sh with user.conf.
I am trying to understand the cc_disksize and cc_memlimit settings.
My understanding is that it used to be that no matter how I set these I will get a compcache of 15% of total RAM with a backing swap using the entire linux_swap partition.
But I am a bit confused as this rom has compcache 0.6, and I am not sure if that limitation still applies after .5x.
If that is the case, I want to confirm... if I set cc_disksize to 0 and set cc_memlimit to 32, I will get a RAM compcache of 32MB, and it will use the entire linux_swap partition as backing swap.
Is this correct?
Thanks for any help you can give me in understanding this!
Sorry for the bump, but I'm hoping a little more clarification might be a little more answerable...
Well i cant give you a definitive answer, but i can point you in the right direction.
If you don't get much help here, you can try PM'ing miketaylor00
he spent considerable amount of time talking about the subject and his user.conf is implemented in JACxROM
you can send him a link to this q&a and maybe he'll help you out. im sure a lot of people would like more clarification
i also believe the defaulting to 15% of ram was fixed in 0.6 compcache
i havent messed with these settings much. i messed around with them when they first came out but stopped after 0.6 and just started using whatever was included default in the rom. swappiness was pretty much the only settings i changed
bradycl_84043 said:
Hello!
I have a G1 using CM 4.1.999, and my microSD is partitioned with an ext4 for apps2sd and a 64MB linux-swap partition.
I am using the user-configurable userinit.sh with user.conf.
I am trying to understand the cc_disksize and cc_memlimit settings.
My understanding is that it used to be that no matter how I set these I will get a compcache of 15% of total RAM with a backing swap using the entire linux_swap partition.
But I am a bit confused as this rom has compcache 0.6, and I am not sure if that limitation still applies after .5x.
If that is the case, I want to confirm... if I set cc_disksize to 0 and set cc_memlimit to 32, I will get a RAM compcache of 32MB, and it will use the entire linux_swap partition as backing swap.
Is this correct?
Thanks for any help you can give me in understanding this!
Click to expand...
Click to collapse
Yes, your assumptions are correct. If you have backing swap enabled it will use the entire swap partition. You can check the stats with this command:
Code:
su
rzscontrol /dev/block/ramzswap0 -s
The disksize value when you have backing swap enabled should always equal the size of the swap partition. I recommend a 32MB swap partition if you are using a ROM that doesn't have BFS and a 64MB swap if it does have BFS.
The memlimit is the amount of uncompressed data that can be used by compcache. It usually compresses down to about 20-25% of the uncompressed size so with a 32MB setting it will only use about 5-8MB of RAM. I've been using a 32-48MB memlimit lately and it works great. If you are on a BFS ROM I would go with 48MB. I believe that CM is using BFS I just wanted to give the info for both in case someone else reads this down the road. There is a lot of info about the stats on this page.
http://code.google.com/p/compcache/wiki/StatsExplained
If you have any more questions shoot me another PM. I hope this helped.

Linux-swap Cynanogen?

ok so i made a linux-swap partion on my sd card that is 64mb. Now do i need to activate it somehow? or does cynogen do it for me? i tried to search but couldnt find. also do i need update my radio? it is 2.22.19.26I
You need user.conf and userinit.sh files on your ext partition. There's a guide on how to set that up here.
ok and can i have compcache and linux-swap at the same time? or do they do the same thing? also do i need to make a partion for compcache? and i cant find the htc keyboard in 4.2.3.1, does it come with it?
i thought if you have 4.2.3.1 you didnt have to add the files as it does everything for you? am I missing something.
is compcache and linux swap the same thing? and do we need both?
nahanee20 said:
is compcache and linux swap the same thing? and do we need both?
Click to expand...
Click to collapse
lol, no.
Swap is virtual memory. It uses a seperate partition to act as extra RAM, but it's nowhere near comparable to real RAM.
Compcache compresses what's in the RAM, so there's more space to cram files in. The problem is constantly compressing and decompressing files in RAM puts a heavy strain on the CPU.
so do i need to put the usernit files on or did this rom already do it?
does anyone know how to use the user.config app to do this?
nahanee20 said:
does anyone know how to use the user.config app to do this?
Click to expand...
Click to collapse
You DO NOT have to add any user int files to your sd for swap to work.
Its already rolling if you installed correctly.
go to terminal and use the print command to view your allocated spaces for each ext
Better yet, use the "free" command to see if it is really being used. I am pretty sure Cynanogen does not use a swap partition by default. It needs to be enabled. A easy way to check and setup your swap it to download swapper.
When I type free in the terminal I see 0 for total, used and free swap. I made an ext4 and a 32mb swap partition on my sd card. How do I enable swap on Cyanogen 4.2.5?
beav_35 said:
When I type free in the terminal I see 0 for total, used and free swap. I made an ext4 and a 32mb swap partition on my sd card. How do I enable swap on Cyanogen 4.2.5?
Click to expand...
Click to collapse
search user.conf app on market

Categories

Resources