The Preferred Setup for Using CyanogenMod - G1 General

Hello to all!
I have a G1 that I am going to wipe and install the latest CyanogenMod rom on. I also have a class 2, 4GB SDCARD.
What would you all say the preferred setup would be as far as partitioning the SDCARD and all else? I am looking for performance. Seems like my G1 is laggy a bit, especially when trying to navigate the home screen.
Thanks!

Try this out
1. Save any important files (pictures, etc) from sdcard to computer
2. Boot into recovery and wipe all (data, ext, dalvik, battery, rotate)
3. Partition sd (Linux-swap 0mb; Ext2 512mb) then upgrade ext2 to ext3
4. USB toggle and place base zip and CM's latest on sdcard
5. Flash base first then flash CM's latest
6. Reboot system
7. Go to Spare Parts, turn Window animations off, enable Home app in memory, and Compcache.
8. Download this 10mb ramhack + OC kernel and place it on your sdcard.
9. Boot into recovery and flash the zip.

BoomBoomPOW said:
8. Download this 10mb ramhack + OC kernel[/URL] and place it on your sdcard.
Click to expand...
Click to collapse
Be warned. only do this step if you dont plan to use your G1 to play any 3D games as it utilises the ram used to process the games as far as i know.
correct me if im wrong though guys

Hey guys,
Thanks for the response.
2 questions:
1. Why would I not want to format ext3 in the first place? Just out of curiosity
2. Is the class 2 MicroSD card killing me? Do I really need to worry about the difference in classes as an average user? I just care about navigational speed
Thanks!

Well I. Can answer your first question. You need to set ext2 first as the 512 partition on your sd card. Then once you have all your partitions set. You can upgrade the ext 2 to ext 3 and even 4 if you feel the need.
I'm not sure about the 2nd question myself. Someone else may be able to help you there. But if you forget to up the ext you can do this at any time as you will not lose any data from this.
As for home screen lag, this can be due to widgets too. They take up quite a bit of memory as far as I know so if you have many on your home screen. This can lag it

patrickalexson said:
Hey guys,
Thanks for the response.
2 questions:
1. Why would I not want to format ext3 in the first place? Just out of curiosity
2. Is the class 2 MicroSD card killing me? Do I really need to worry about the difference in classes as an average user? I just care about navigational speed
Thanks!
Click to expand...
Click to collapse
The class 2 would only hinder performance when you are reading files from the sdcard. I.e. if you have a game loaded on the sdcard w/ apps2sd then it may be a bit slower than a class 6 card. If you have a swap partition set up this would also slow down read/write to and from the swap. This is of course slower performance when compared to a class 6, not saying that class 2 are slow just slower than.

BoomBoomPOW said:
3. Partition sd (Linux-swap 0mb; Ext2 512mb) then upgrade ext2 to ext3
Click to expand...
Click to collapse
Why is the Linux-swap set to 0mb? Do you have to create a swap partition?

MLonon said:
Why is the Linux-swap set to 0mb? Do you have to create a swap partition?
Click to expand...
Click to collapse
CM by default does not use Linux-swap. If you want to enable swap you must create a userinit and user.conf and push it in /system/sd (check this thread)
I suggested 0mb swap for him since he has a class 2 sdcard and enabling swap might be a daunting task for a novice.

BoomBoomPOW said:
CM by default does not use Linux-swap. If you want to enable swap you must create a userinit and user.conf and push it in /system/sd
I suggested 0mb swap for him since he has a class 2 sdcard and enabling swap might be a daunting task for a novice.
Click to expand...
Click to collapse
there is an app that will also do it for you called user.conf creator. its on the market. but get some advice on how to use it before messing about with it.
but as stated, with a class 2 card there aint much point

Great!
Any other suggestions once I get it up and running? I understand the whole point of the CM rom was to boost performance and add functionality so most of the stuff should be covered in the ROM?
I've seen articles mentioning that you can set the frequency for the processor to a higher value. Is that something I would want to do or is that already done in the more recent versions of CM?
Also,
What about skins and themes for CM? From my experience with Windows, any custom themes or skins can cause performance problems, unless they are absolutely minimalistic. Same basis with Android?
Thanks for the help people!

you can speed up the processor yes. cyanogen mod doesnt come with this, you can do this seperately with apps on the market for root users. there is a great app called SetCPU that has everything you need. it will configure the speed dependant on profiles that are set up for it. for example, you can have it running default speed when using it out and about, or full speed when plugged in. very handy to be fair. themes and skins will not slow the phone as far as ive seen. i have custom notification bar and custom launcher (advanced launcher) and have not had any problems so far, however some apps and widgets like stated earlier may slow your phone as they use up memory.

patrickalexson said:
Great!
Any other suggestions once I get it up and running? I understand the whole point of the CM rom was to boost performance and add functionality so most of the stuff should be covered in the ROM?
I've seen articles mentioning that you can set the frequency for the processor to a higher value. Is that something I would want to do or is that already done in the more recent versions of CM?
Also,
What about skins and themes for CM? From my experience with Windows, any custom themes or skins can cause performance problems, unless they are absolutely minimalistic. Same basis with Android?
Thanks for the help people!
Click to expand...
Click to collapse
You must be referring to the "780Mhz Bombshell". No need to have a whack at that. Actually that 10mb ramhack + OC Kernel I gave in my post earlier has been overclocked to reach 550Mhz. The max/min is 550/128. If you want to configure those frequency, you can use SetCPU app, choose Motorola Cliq as the device frequency. A great theme that doesn't hinder the rom's performance is the Enoch Theme. Simply flash that in recovery over the rom. Also, try fixing permissions once you've installed all your must-have apps. Simply open Terminal Emulator and type "su" enter, "fix_permissions" enter. Wait until it finishes. You could also boot into recovery, scroll to Other and run "fix apk uid mismatches".

if i have compcache at 32 should my backing swap be 96 or 64?
ps wats diff between swap and backing swap?

olvap377 said:
if i have compcache at 32 should my backing swap be 96 or 64?
ps wats diff between swap and backing swap?
Click to expand...
Click to collapse
Here's a thread that's very informative in regards to Compcache and Linux swap. If you really read everything discussed on there you will learn much more.
But back to your questions. If enabled, backing swap will correlate with the cc disksize, so it wouldn't be 96 or 64, but rather 32. So partition your sdcard to a 32meg swap.
The difference is that with backing swap you have Compcache managing the swap file as well as the compressed data. With regular Linux swap the data has to be handed back to the OS to deal with after it is determined that it can't be compressed. It's just more efficient to let Compcache send it straight to the swap partition.

Related

Working with swap on Hero ROM (MT3G)

Hey everyone i've been doing some reading and I'm still having some difficulty understanding the use of swap. I made a partition using gparted. Partitioned a fat32 a ext 3 and a linux-swap of like 80mb. Once the Evil Hero Rom is loaded I use DroidSwap to recognize the 80mb partition so that i will use 80mb instead of 32mb. My phone still runs a bit slow though. I've heard people say that i would never run sluggish once they increase the swap partition. I have set it on the settings to 64 MB swap size and 60 swappiness. Is there something i did wrong on these steps? Thanks guys!
Bump
No help guys? Really? Just wanna quick answer.....
I've never had any luck with swap. I've tried Swapper and using files, partitions, etc., I have a 16g Class 6 card and have a 32mb linux swap on it. It seems like when I enable swap (no matter which method I use) I start getting a lot of force-closes and random reboots.
--- before anyone blames the sdcard, it should be pointed out that I have tried 3 different sdcards of various sizes and speeds including the stock 2g card.

(Q) wich lagfix we can use?

now i m confused.. wich lagfix is better? in quadrant all the fix do then the 2000...
Your choice. Do you want to repartition the sd card and fiddle in cmd, or just double click a file?
The problem with the first fix is that you cant replace the card any time you want. The problem with the second fix is that if you dont have 1gb free on the phone, it wont work
Second one looks like a much better deal.
If you don't have 500mb free on your internal SC card (correct me if I'm wrong, but I don't think it's 1gb), you can always move all your personal stuff in the external SD card.
Unless of course you have filled it up with apps only (with no app2sd with Eclair), but how you would have managed to fill almost 2gb of apps is beyond me. That'd be more than 2000 apps.
What I don't know though is the long term effects. I have no idea if the fixes that are made are bad for the internal SD card. I guess you have to trust Ryan.
Davith said:
Second one looks like a much better deal.
If you don't have 500mb free on your internal SC card (correct me if I'm wrong, but I don't think it's 1gb), you can always move all your personal stuff in the external SD card.
Unless of course you have filled it up with apps only (with no app2sd with Eclair), but how you would have managed to fill almost 2gb of apps is beyond me. That'd be more than 2000 apps.
What I don't know though is the long term effects. I have no idea if the fixes that are made are bad for the internal SD card. I guess you have to trust Ryan.
Click to expand...
Click to collapse
what do you mean about second choise lagfix 2.0??
2.0 caused my phone to be unstable so I re-flashed and went back to the first (1GB) fix.
Are you considering mimocam's fix (using the external card) or just between Ryan and Chanfire's fixes?
rock187 said:
what do you mean about second choise lagfix 2.0??
Click to expand...
Click to collapse
Yeah, I was talking about Ryan's Lagfix 2.3. (it's not 2.0 anymore).
I don't use either. I recommend the original fix that moves data to dbdata. I have over 70 apps installed and still plenty of space left. Using autokiller to keep free memory at 70 meg I have no lag. Currently on jm5.
Sent from my GT-I9000 using XDA App
I first did it by command line with the 1Gb partition. That ran well. I then updated to Ryans 2.2 which I have been using all day. It also runs really well. Lag pretty much gone.
If i apply the one-click-LagFix it makes an virtual ext2 partition to my internal sd-card. So if i choose sometime later to undo the fix how can i delete the ext2 partition in my internal sd-card? Will it be necessary to use gparted or similar?
Bajo76 said:
If i apply the one-click-LagFix it makes an virtual ext2 partition to my internal sd-card. So if i choose sometime later to undo the fix how can i delete the ext2 partition in my internal sd-card? Will it be necessary to use gparted or similar?
Click to expand...
Click to collapse
Just run the included unlagfixme.bat file. It's automated. But make sure you are running the unlagfixme for the correct version (2-2 or 2-3)
It works fine. I ran unlagfixme and flashed back to a stock ROM, tested with Quadrant and got the 900 something score again, so it does remove the lagfix.
I will note, however, that it's a very good idea to run the unlagfixme.bat before flashing to a different ROM.
kgk888 said:
Just run the included unlagfixme.bat file. It's automated. But make sure you are running the unlagfixme for the correct version (2-2 or 2-3)
It works fine. I ran unlagfixme and flashed back to a stock ROM, tested with Quadrant and got the 900 something score again, so it does remove the lagfix.
I will note, however, that it's a very good idea to run the unlagfixme.bat before flashing to a different ROM.
Click to expand...
Click to collapse
If you are flashing to any rom using odin3, there is no need to do the unlagfix at all, because the flashing would have overwritten any changes that you have made to the file system.
I often flashed my device alredy with repartition but it didnt touched my internal sd, cause my photos which are stored in the internal sd were still there after flashing. So will a firmware-flash through odin really delete the virtual ext2 partition?
Bajo76 said:
If i apply the one-click-LagFix it makes an virtual ext2 partition to my internal sd-card. So if i choose sometime later to undo the fix how can i delete the ext2 partition in my internal sd-card? Will it be necessary to use gparted or similar?
Click to expand...
Click to collapse
The LagFix does not partition your internal card. A 1gb file is created upon which the ext2 filesystem is made. Then this file is mounted as a loopback device. So the UnLagFix basically moves the data back to the native internal storage directories and deletes the ext2 file, so no need to use gparted

[Q] about partitioning your SD card?

okay, so i just flashed Kyrillos' ROM (7.0, then upgraded to 7.1)
now i want to partition my SD card to create SWAP, and also to create a partition to add extra space to the internal memory (what is it's name, again?)
i don't know too much about what type of partition to do, so can you guide me through the process or give me a link where i can read further?
also, what are the recommended partition sizes?
PS : i have a 4GB, class 4 SD card. and i just downloaded minitool.
Mohit12 said:
okay, so i just flashed Kyrillos' ROM (7.0, then upgraded to 7.1)
now i want to partition my SD card to create SWAP, and also to create a partition to add extra space to the internal memory (what is it's name, again?)
i don't know too much about what type of partition to do, so can you guide me through the process or give me a link where i can read further?
also, what are the recommended partition sizes?
PS : i have a 4GB, class 4 SD card. and i just downloaded minitool.
Click to expand...
Click to collapse
you can flash g3mod kernel and do partition in uer sd card.mine is 8 GB Card, Class 4...I have 1024 as Ext Size and 256 as SWAP. so the choice is uers.
Mohit12 said:
okay, so i just flashed Kyrillos' ROM (7.0, then upgraded to 7.1)
now i want to partition my SD card to create SWAP, and also to create a partition to add extra space to the internal memory (what is it's name, again?)
i don't know too much about what type of partition to do, so can you guide me through the process or give me a link where i can read further?
also, what are the recommended partition sizes?
PS : i have a 4GB, class 4 SD card. and i just downloaded minitool.
Click to expand...
Click to collapse
Well, the answer to that is already in the forum
http://forum.xda-developers.com/wiki/index.php?title=SD_card_partitioning
Hope this helps
darksyde18 said:
Well, the answer to that is already in the forum
http://forum.xda-developers.com/wiki/index.php?title=SD_card_partitioning
Hope this helps
Click to expand...
Click to collapse
I've been looking for that too , Thanks
okay, i didn't know i'd need a card reader :/
i don't have it. any way to partition it using the CWM?
and what sizes do you recommend? i was thinking maybe 128 MB SWAP and 512 as the internal memory size.
and do i have to flash the g3mod kernel? i'm currently running 2.6.32.9. this came with Kyrillos' 7.0.
wait, i'm getting confused now. when i flash Kryillos' ROM 7.0, does my kernel also get changed? or am i running the stock kernel?
and the CWM i'm talking about is just.. recovery. the one that i access using vol up + vol down + home key + power key.
that also has partition SD card option under advanced > partition SD card.
will this do or do i have to flash g3mod kernel?
Once you flash Kryillos' ROM you are no longer running the stock kernel
CWM is ClockWorkMod Recovery and it comes with the ROM and so it's different (Google it)
And about making a SWAP, well , you might wanna read this -
"1. An Android swap partition must live on your SD card. SD cards are very, very slow memory. They are 100 to 1000x slower than a SIM. They are 10 to 100x slower than a hard drive. They are marginally faster than a network connection. When an application is “swapped out” it is copied into this very slow memory, and copied back to physical memory when it needs to run. On the other hand, when an app needs to be restarted after being terminated by Android, it is loaded not from the SD card but from the device’s (relatively) fast physical memory.
2. When an Android app is terminated because of low memory, it decides what information must be persisted to represent it’s state. This can be very, very small. For example, it might be an integer index into a database. When an app is moved into virtual memory, the OS has no idea what’s important. It just moves the application in whole. It can’t be smart about it.
3. Having swap actually prevents the native Android memory management scheme from activating. The system sees memory and doesn’t distinguish between physical and virtual. It will therefore prefer swap over the native Android memory management scheme, and won’t activate the native scheme until swap is full.
4. Having swap requires some overhead of system resources."
darksyde18 said:
Once you flash Kryillos' ROM you are no longer running the stock kernel
CWM is ClockWorkMod Recovery and it comes with the ROM and so it's different (Google it)
And about making a SWAP, well , you might wanna read this -
"1. An Android swap partition must live on your SD card. SD cards are very, very slow memory. They are 100 to 1000x slower than a SIM. They are 10 to 100x slower than a hard drive. They are marginally faster than a network connection. When an application is “swapped out” it is copied into this very slow memory, and copied back to physical memory when it needs to run. On the other hand, when an app needs to be restarted after being terminated by Android, it is loaded not from the SD card but from the device’s (relatively) fast physical memory.
2. When an Android app is terminated because of low memory, it decides what information must be persisted to represent it’s state. This can be very, very small. For example, it might be an integer index into a database. When an app is moved into virtual memory, the OS has no idea what’s important. It just moves the application in whole. It can’t be smart about it.
3. Having swap actually prevents the native Android memory management scheme from activating. The system sees memory and doesn’t distinguish between physical and virtual. It will therefore prefer swap over the native Android memory management scheme, and won’t activate the native scheme until swap is full.
4. Having swap requires some overhead of system resources."
Click to expand...
Click to collapse
Nice and informative.

Quick question!!

i bought a new memory card for my phone..... and im just wonderin if do i have to format in FAT 32 or just leave it and erase the files of a new memory card??
Thank you
rizer08 said:
i bought a new memory card for my phone..... and im just wonderin if do i have to format in FAT 32 or just leave it and erase the files of a new memory card??
Thank you
Click to expand...
Click to collapse
If it's new, there's no real need to format. It is already formatted in FAT 32.
You could however partition the memory card within CWM Recovery to setup SWAP and ext4.
Hope that helps =)
Agree it should already be formatted for windows - I would just add:
You can apply the 4EXT extension easily enough in recovery - my personal favorite 4EXT touchcovery...
I would not use a swap file on this device - useful for my old MT3G but I wouldn't do it for this phone IMHO
I use SDFormatter (it's free) for formatting all my MicroSD cards. I had problems getting a 32 GB MicroSD card to be recognized on my MyTouch 4G and after formatting it with that program, no problems anymore
SH31KH said:
If it's new, there's no real need to format. It is already formatted in FAT 32.
You could however partition the memory card within CWM Recovery to setup SWAP and ext4.
Hope that helps =)
Click to expand...
Click to collapse
Alright, I've been around for awhile and still haven't really looked into this, but what exactly is swap and ext4? Like what are the benefits?
And also, I'm trying to find the differences between the 4ext touchcovery and clockworkrecovery other than themes and touch. What would you recommend and why?
I2IEAILiiTY said:
Alright, I've been around for awhile and still haven't really looked into this, but what exactly is swap and ext4? Like what are the benefits?
And also, I'm trying to find the differences between the 4ext touchcovery and clockworkrecovery other than themes and touch. What would you recommend and why?
Click to expand...
Click to collapse
Swap is a portion of your card (or hard drive for desktop) that the system will use almost like RAM - for frequently accessed files/information. This was very useful for the older phones that had little RAM but not really needed for newer phones. That swap will get 'thrashed' quite a bit too, and with a limited amount of read/writes per SD card I would not recommend it except on older phones.
ext4 is a file system and ext3 was better than ext2 etc... ext4 in a nutshell is faster, and more stable - lots of googling available on that one if you are interested in the fine details.
4ext recovery - has a couple of really nice features like md5 checksum check and a few others and the new touchcovery is so slick - no buttons needed at all, great UI and all the features of the original - I practically feel guilty using it! Try it - if you don't like it you can always go back ...
Hope that helps...
Homerbsharp said:
Swap is a portion of your card (or hard drive for desktop) that the system will use almost like RAM - for frequently accessed files/information. This was very useful for the older phones that had little RAM but not really needed for newer phones. That swap will get 'thrashed' quite a bit too, and with a limited amount of read/writes per SD card I would not recommend it except on older phones.
ext4 is a file system and ext3 was better than ext2 etc... ext4 in a nutshell is faster, and more stable - lots of googling available on that one if you are interested in the fine details.
4ext recovery - has a couple of really nice features like md5 checksum check and a few others and the new touchcovery is so slick - no buttons needed at all, great UI and all the features of the original - I practically feel guilty using it! Try it - if you don't like it you can always go back ...
Hope that helps...
Click to expand...
Click to collapse
Yea, so swap is in other words Virtual Memory? When i had an iphone 3g, I used a VM mod and a couple others to speed it up cause it has very little RAM.
And I'm using 4ext touchcovery and I love the wipe all but sdcard function.
What are the benefits of partitioning your sdcard?
I2IEAILiiTY said:
Yea, so swap is in other words Virtual Memory? When i had an iphone 3g, I used a VM mod and a couple others to speed it up cause it has very little RAM.
And I'm using 4ext touchcovery and I love the wipe all but sdcard function.
What are the benefits of partitioning your sdcard?
Click to expand...
Click to collapse
Yeah touchcovery is sweet and you are correct about swap being virtual memory.
For partitioning your card with 4EXT, I am no expert but I think stock Android expects FAT, and if you run windows you would not see 4EXT easily etc... but I use a 4EXT partition of 500 MB for Android, since it is faster, more stable etc... and android has no problems reading it since it is a *NIX derived OS and the more recent ROMs should take advantage of that partition format.
You can partition pretty easy in 4EXT touchcovery BTW ... not sure how it handles existing data so I would back up if you go that route...

(Lagfree) For those who want a lagfree an 4 days battery experience on XSP

1-Wait for a Full working cm13 android 6.0 @Adrian thread
or
2-
Download :
-CM 12.1 unofficial 28/10 from "infected team"
-open gapps pico for 5.1
with TWRP
change data and cache file system to ext2 confirm yes to format
wipe sytem, data, cache, dalvik cache
wipe internal storage OR with the build in twrp file manager: delete on both internal and external sdcard .android and android folders.
select flash zip and select the cm12.1 rom and the open gapps pico
reboot
at welcome page :
don't connect to wifi for now
don't register to anything for now
uncheck enable location if ask
uncheck send stats if ask
after the first launch finished (5min)
go to battery settings and uncheck "activate profile for each application"
install swapper for root from play store
check active swap on boot
create a 768mb swap file on the root of your class 10 sd card if you have one, if you have an inferior sd card class, or no sdcard, create the file on your internal sd space.
swappiness to 20
save
ENJOY
Links :
rom : http://www.infectedbuilds.net/downloads/huashan/cm_12.1/
gapps : http://opengapps.org/
Give me some feedback
Already using Ram Expander and phone is working quite fine.
I think the workable parts of your post are deactivation of per app profiles and creation of appropriate size swap file to compensate low Ram. I can confirm these works good.
waseemakhtar said:
Already using Ram Expander and phone is working quite fine.
I think the workable parts of your post are deactivation of per app profiles and creation of appropriate size swap file to compensate low Ram. I can confirm these works good.
Click to expand...
Click to collapse
Ext2 is very important too.
And the system partition? Whats the file system?
RAMexpander / swap apps greatly reduce performance. I've used that for an year and it hugely degrades performance. When I've uninstalled it it was like upgrading my X-SP with additional 1 GB RAM. And I use a fast, Sony microSD. Of course, that's just me, it won't hurt trying for yourself.
create the file on your internal sd space
Click to expand...
Click to collapse
NEVER, EVER! Doing swap on internal memory it's a recipe for disaster.
waseemakhtar said:
Already using Ram Expander and phone is working quite fine.
I think the workable parts of your post are deactivation of per app profiles and creation of appropriate size swap file to compensate low Ram. I can confirm these works good.
Click to expand...
Click to collapse
varioventus said:
RAMexpander / swap apps greatly reduce performance. I've used that for an year and it hugely degrades performance. When I've uninstalled it it was like upgrading my X-SP with additional 1 GB RAM. And I use a fast, Sony microSD. Of course, that's just me, it won't hurt trying for yourself.
NEVER, EVER! Doing swap on internal memory it's a recipe for disaster.
Click to expand...
Click to collapse
Hum hum, don't listen to him, JUST TRY.
For system it's ext4 but even if you change it to ext2, the flash process always turn it to ext4. But it's ok, the system partition is only read only, we don't need ext2 for it.
Why does ext2 improve performance?
Well he does have a point..
Doing this will degrade your flash storage, both internal even external. Make sure when you are doing this you realise that this involves a huge number of read and writes onto the volumes while your device is turned on.
When flash storage degrades, the read write speeds become slower. This means the device will become slow in terms of i/o over time.
As always, its the users who decide There is nothing wrong on using swap at all
TechnoSparks said:
Well he does have a point..
Doing this will degrade your flash storage, both internal even external. Make sure when you are doing this you realise that this involves a huge number of read and writes onto the volumes while your device is turned on.
When flash storage degrades, the read write speeds become slower. This means the device will become slow in terms of i/o over time.
As always, its the users who decide There is nothing wrong on using swap at all
Click to expand...
Click to collapse
will, will, will...
1-Since i have my XSP (2 years) i've always used swap with the same sd card and no slowing down problem.
2-I've been used a ssd from 2011 to 2015 whitout trim support on my mac with all "unrecommanded writes process" : downloads, sleep image etc and no problem at all : 4 years.
because ext2 have no journaling process = less load to flash
nosenses said:
will, will, will...
1-Since i have my XSP (2 years) i've always used swap with the same sd card and no slowing down problem.
2-I've been used a ssd from 2011 to 2015 whitout trim support on my mac with all "unrecommanded writes process" : downloads, sleep image etc and no problem at all : 4 years.
Click to expand...
Click to collapse
Lol I will stop here.
Please do proper analysis for your own good too. God Bless and have fun.

Categories

Resources