DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 11 123 ... LastLast
Results 1 to 10 of 102

Thread: CM7 - Swap? Compcache? Both?

  1. Droid
    chmcclellan's Avatar
    Member #
    78911
    Join Date
    Jun 2010
    Posts
    49
    Phone
    Moto Droid
    #1

    Question CM7 - Swap? Compcache? Both?

    Hey all-
    Since there is a lull in MIUI releases, I thought I would jump over to CM7 nightlies to see what its like to run gingerbread. I had never gotten around to setting up an apps2sd partition, but have been getting space warnings, so decided to go ahead. Since this is a convenient time to also set up a swap partition, I thought I might do that as well.

    Questions:
    1. As explained here, I understand compcache is virtual swap in RAM itself. This would seem to suggest it is pointless to use swap and compcache simultainiously - yes?

    2. Assuming the answer to 1. is yes, which is better? Seems like setting aside RAM for compcache is a little counterproductive if I am hoping to speed up my device. At the same time I hear swap will speed up wear on the SD card.

    3. Assuming the answer to 2. is that swap is preferable, what is the maximum helpful swap size? I see a lot of recommendations for 32 MB, but considering I am not maxing out my SD card as it is, doubling or quadrupling this is feasable - would it help?
    CM 7.1 - FUTUREPROOFED
    - Deprimed Kernel @ 1100 mhz, 68 vsel
    - v6 Supercharger
    - Link2SD with ext4 partition
    - Compcache w/ backing swap partition

    Thanks to Prime, Zepplinrox, GodfatherIP, and all the others who have given me the power to keep the OG Droid humming along.
  2. Droid
    chmcclellan's Avatar
    Member #
    78911
    Join Date
    Jun 2010
    Posts
    49
    Phone
    Moto Droid
    #2
    For that matter, what is the maximum space I would need in the partition to be used for apps?

    So much anxiety when deciding on partition sizes - like my dad always said measure twice and cut once!
    CM 7.1 - FUTUREPROOFED
    - Deprimed Kernel @ 1100 mhz, 68 vsel
    - v6 Supercharger
    - Link2SD with ext4 partition
    - Compcache w/ backing swap partition

    Thanks to Prime, Zepplinrox, GodfatherIP, and all the others who have given me the power to keep the OG Droid humming along.
  3. Droid Ninja
    Bear in NM's Avatar
    Member #
    3690
    Join Date
    Nov 2009
    Posts
    1,389
    Liked
    5 times
    Phone
    Bionic (sad but sweet)
    #3
    CH,

    Tough questions. I do not have answers to what is best, as it depends on what you need for your phone, your apps and your speed.

    If you check in the nightly CM7 thread, and take some time reading from about page 80-90, you will see where compcache is "fixed" by member Prime. It is offshoot of the compcache tutorial thread here in this forum, which itself was an offshoot to the long compcache thread. We are just starting to explore the issues with CM7 (GB), native task killing and compcache. It does seem to work, and while this does not answer your question (or need) of speed v. available ram, it appears to have worked for some folks. The speed can be had with overclocking.

    I would say the bottom line for your phone and your needs would be to try the compcache, proper overclock and then balance your results against what it is you are doing. And hopefully you are not just looking for a raw score in Quadrant, as this is a quantitative bench for comparisons, it really sucks as a guage to how your phone will run with your apps.

    As to the partitioning, I am weak here, but froya and GB support apps to sd without need for partitioning. Natively only a portion of the app is moved to the sd card, so perhaps you are looking for something more? As to card life, my best recollection when I was searching the web trying to get my noodle around cards is that they are typically rated for 100K read/write cycles. That is a lot for folks who use the card for file storage, rom flashing pictures and the like, but may not be a lot for constant read-writes. I guess if I had so many apps that I had to have them on SD, then factor in the cost of new cards every so often as the price of admission. And I would suggest getting in the habit of routinely backing up your card for your personal files (photos/music/videos etc.)

    Craig
  4. Senior Droid
    GodfatherIP's Avatar
    Member #
    39810
    Join Date
    Feb 2010
    Posts
    249
    Phone
    Droid Razr Maxx
    #4
    I have been wondering about these same issues. I recently got a lexar class 10 32gb microsdhc card so I figured the first thing I would do was partition it for apps to sd-ext with rom manager and while setting this up it asked if I wanted to do a swap partition as well so I figured what the heck and made a 128mb swap partition too, thinking if I wanted to use it down the road it would be easier to go ahead and partition now while my card was still blank. Looking into it though it seems people have had a wide range of experiences with swap from saying it slows down the phone making it unusable to people saying it made their phone run better than ever. I used compcache before on CM6 and I didn't feel like it improved things, in fact it seemed like things were a little slower and memory wasn't managed as well but as mentioned it just takes part of the ram and makes it compressed and swaps in and out of that so you have less uncompressed ram but seemingly more total ram. It would appear to me that sdcard swap might be preferable since it leaves all of the original ram untouched but of course it has the downside of slow read/write speeds to the card. I'm not too worried about SD card wear since the card has a 10 year warranty and will probably last until it is obsolete even with swap (a year or two from now and these cards will probably only be ~$20 anyway). So has anyone used swap with CM7 yet and how did it work out for you? I am hopefully going to have some time to flash CM7 tonight so I'll report back if I get everything working.

    In response to Craig, as far as the apps to sdext I have definitely heard that this has advantages over the froyo apps2sd although I haven't tried it yet (I will as soon as I install CM7). For example the entire app is moved rather than just part of it, the apps load more quickly on boot, and when you mount your sd card to your pc the sd ext apps will still work unlike froyo apps2sd where the apps can't run while the sd card is mounted.

    I remember a while back reading about someone working on repartitioning the phone's internal memory (I think maybe it was a xda thread on the G1). That made me think that maybe if someone was using an sd-ext partition on their phone for their apps that potentially part of /data could be partitioned as a swap space and maybe using the phone's internal rom for swap would be faster and better than the sd card swap. Anyway I would have no idea how to even begin addressing such an idea or if it would really be preferable, just throwing it out there. RAM definitely seems to be one of the Droid's biggest limitations so any way to improve upon this would be awesome.
    Project Elite v6.5 Link2SD for apps on sdext and Super Freaking Charged thanks to ZepplinRox!
    Thanks to all the devs out there keeping the OG Droid running strong!
    Join Dropbox for all your file storage and sharing needs, join from this link to give me more space
  5. Droid Ninja
    Bear in NM's Avatar
    Member #
    3690
    Join Date
    Nov 2009
    Posts
    1,389
    Liked
    5 times
    Phone
    Bionic (sad but sweet)
    #5
    GF,

    Thanks for the detailed post. I think you have pretty much nailed the biggest complaint, possible card life shortening. Your eyes are wide open, and your mind is clear on it. That is 90% of the battle. It certainly does make sense that having the entire ap in one place has got to help. And by and large about the only time I have remembered seeing questions on this have been when folks really are flat out of room in data. Our Droids are old, about to become relatively slow and have limited resources. About the best we can hope to do is chip away at the margins.

    And in allhonesty, it really is going to come down to you using it and finding out for yourself. Not sure I have ever seen a single thread where something like this was discussed where you did not have a bunch of folks finding heaven, with a similar number finding hell. With all of my music and photos/videos, my SD space is more precious than /data..........

    Craig
  6. Master Droid
    Ozzie's Avatar
    Member #
    100173
    Join Date
    Aug 2010
    Location
    Minnesota
    Posts
    824
    Liked
    2 times
    Phone
    Droid 1
    #6
    I love this topic...I just purchased a 32GB 10X card myself not long ago and felt the tug to explore other options with it. I may still end up digging in if the development slows a bit.
    Just a thought...off track a little, but I wonder if we could use the micro usb for an additional storage device? I found an adapter for a usb drive...
    Last edited by Ozzie; 02-17-2011 at 07:24 PM. Reason: terminology correction
  7. Master Droid
    gambit07's Avatar
    Member #
    129334
    Join Date
    Oct 2010
    Posts
    384
    Phone
    Motorola Droid, Droid X
    #7
    I haven't tried swap because I'm too worried about killing my sdcard, I heard a lot of things back and forth on compcache but once I realized GB's task killer was so aggressive that I couldn't keep more than one app open at a time I decided to see what it could do. My experience has pretty much been all positive with it. I have compcache at 18% and VM heap at 32m. My launcher almost never force closes, even after opening apps and playing games. I can keep at least 4 or 5 apps open at the same time without them closing.

    People also say that since the cache has to be compressed and decompressed your ram will be slower, which is true I suppose but in real world experience I haven't noticed any slowdown in opening/running tasks or smoothness of scrolling, in fact scrolling seems much better on the launcher. After 1 or 2 days it will start to slow down, all you need to do is restart your phone and it'll work fine. Anyway RAM is definitely our biggest bottleneck on the droid so I don't think there's any reason not to use compcache.
    Last edited by gambit07; 02-17-2011 at 07:21 PM.
  8. Droid Ninja
    pdroid's Avatar
    Member #
    43531
    Join Date
    Mar 2010
    Location
    Philly
    Posts
    2,253
    Liked
    17 times
    Phone
    iPhone 5
    #8
    Yeah, it's starting to look like things like compcache, higher clock rates, etc. are going to have to be the order of the day to get good GB operation on these devices.
  9. Master Droid
    gambit07's Avatar
    Member #
    129334
    Join Date
    Oct 2010
    Posts
    384
    Phone
    Motorola Droid, Droid X
    #9
    Quote Originally Posted by pdroid View Post
    Yeah, it's starting to look like things like compcache, higher clock rates, etc. are going to have to be the order of the day to get good GB operation on these devices.
    Once you sort out the ram I think GB runs better than froyo did though. Games most definitely run better and the system seems to be more responsive overall. I actually am clocked slightly less with GB than I was with froyo. Another nice thing is that for whatever reason GB doesn't seem to get as bogged down over time as froyo did.
  10. Droid Ninja
    Bear in NM's Avatar
    Member #
    3690
    Join Date
    Nov 2009
    Posts
    1,389
    Liked
    5 times
    Phone
    Bionic (sad but sweet)
    #10
    Quote Originally Posted by Ozzie View Post
    I love this topic...I just purchased a 32GB 10X card myself not long ago and felt the tug to explore other options with it. I may still end up digging in if the development slows a bit.
    Just a thought...off track a little, but I wonder if we could use the micro usb for an additional storage device? I found an adapter for a usb drive...
    Oz,

    Drivers, or specifically the lack thereof At least in all of the threads I have seen about peri. devices, no drivers seems to be the bottom line.

    Craig
Page 1 of 11 123 ... LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Swap/compcache/ramzswap
    By juniorjwh in forum Team D1-MIUI
    Replies: 7
    Last Post: 02-02-2011, 01:30 PM
  2. Compcache
    By peteralfonso in forum Bugless
    Replies: 34
    Last Post: 12-26-2010, 03:50 PM
  3. Compcache on UD2.1?
    By Paladin in forum UltimateDroid
    Replies: 3
    Last Post: 11-25-2010, 06:01 PM
  4. Ud & compcache
    By Sniper_5 in forum Android Hacks and Help
    Replies: 1
    Last Post: 11-09-2010, 04:09 PM
  5. Compcache?
    By Darkseider in forum ChevyNo1
    Replies: 10
    Last Post: 10-17-2010, 12:22 AM

Search tags for this page

cm7 compcache ram usage
,

compcache cm7

,
compcache cyanogen
,
compcache ram cm7
,
compcache ram usage
,
compcache ram usage android
,

compcache ram usage cm7

,
cyanogenmod compcache setting
,
enable swap cyanogenmod 7
,
swap cm7
Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+