ZRAM on BCM - Desire Q&A, Help & Troubleshooting

I'm BCM ICS ROM and tried to use ZRAM with default setting 18%. After a reboot 'free' didn't show swap memory.
I found an init.local.rc script what looks like it tries to start the compcache as a service. But it is possible to start ZRAM manualy by handle_compcache. I cannot post to the developer thread, so I hope that it can be fixed this way.

How did you partition your SD card? I assume to use Z-RAM you need a swap-partition on your SD card?!

How did you partition your SD card? I assume to use Z-RAM you need a swap-partition on your SD card?!
Click to expand...
Click to collapse
No, you didn't need a swap-partition, because ZRAM is a compressed swap-partition in the normal RAM.

Related

How to use A2SD?

Hi,
I would like to know how to configure it.
I have in my SD:
1024M for swap
1500M for ext2
5000M for Fat32
Sent from my HTC Desire using XDA App
Swap? On a Desire? Don't think you need that, there's plenty of RAM.
So you need to partition your SD card, 512 mB ext3 should be plenty, the rest can be FAT32.
FAT partition must come first.
ok, thank you.
And now how can I enable the A2SD apps ?
raffarein said:
ok, thank you.
And now how can I enable the A2SD apps ?
Click to expand...
Click to collapse
Once you have Apps2SD installed and your SD card partitoned correctly, all there is to do is just install your apps and they will be installed to your ext2 partition on your SD card. Use the Quick System Info app from the Marketplace, or see my thread to check if it is working correctly:
http://forum.xda-developers.com/showthread.php?t=677073
raffarein said:
Hi,
I would like to know how to configure it.
I have in my SD:
1024M for swap
1500M for ext2
5000M for Fat32
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Way too much swap!! For Desire best is 0 for swap, 512mb for Ext2 and rest for Fat32
is it possible to partition the SD card "outside" the phone?
I got a new SD card I want to use, and the old one is running as ext partition, and the phone spasses out if i swap the 2 cards? so how can I make the external partition so I can install on the new one?
Yes, you could try partitioning by accessing Recovery Mode via your PC while having your phone connected with the USB cable. Use the relevant push files (available for download in my sig from the Nimbu guide) to access Recovery Mode, then you will see an option to partition your SD card. You can set the swap, ext2, and FAT32 space of your SD card and convert it from ext2 to ext3.
As advised above, set your swap to 0 MB, ext2 between 512 MB - 1024 MB (max), and rest of space allocated to the FAT32 partition.
Remember to backup your SD card contents beforehand otherwise you will lose everything through partitioning.
Sent from my HTC Desire using XDA App
I'm on r3.1 rom with A2SD+, I'm really pleased with it but I plan to switch to some Froyo rom once htc releases it (with A2SD+ if possible).
What is the proper way to prepare sd card for change of rom ( now I have sd card with standard settings: swap 0 ext2 512 mb fat32 rest).
Do I need to format it again?
The thing that I need to switch between goldcard and my everyday card during the process makes it difficult enough
djoni1980 said:
The thing that I need to switch between goldcard and my everyday card during the process makes it difficult enough
Click to expand...
Click to collapse
On the same topic: Is it possible to partition your SD card first and then make it a goldcard so we don't have to switch between cards during rooting and flashing? Thanks..
djoni1980 said:
I'm on r3.1 rom with A2SD+, I'm really pleased with it but I plan to switch to some Froyo rom once htc releases it (with A2SD+ if possible).
What is the proper way to prepare sd card for change of rom ( now I have sd card with standard settings: swap 0 ext2 512 mb fat32 rest).
Do I need to format it again?
The thing that I need to switch between goldcard and my everyday card during the process makes it difficult enough
Click to expand...
Click to collapse
With DJ Droid's v1.0 R1 BETA rom (Sense with Froyo), it allows you to partition your SD card the exact same way you had done with the r3.1 rom. I have mine setup with a 0MB swap, ext2 size of 512 MB, and rest to FAT32 partition. To install this rom, it is advised to format your SD card again to get rid of any niggling bugs.
AFAIK, all other Froyo roms (ones without Sense) require you to prepare the SD card differently and not have your SD card partitioned, you need to push via ADB to install your apps to the SD card.
manisa236 said:
On the same topic: Is it possible to partition your SD card first and then make it a goldcard so we don't have to switch between cards during rooting and flashing? Thanks..
Click to expand...
Click to collapse
This will not be possible as you need to use the Gold Card to unlock your phone's CID if your phone is network branded. After that, you can root and then flash a rom, and then partition your sd card afterwards.
Thanks for the answers massdroid, you are the most helpful member around
djoni1980 said:
Thanks for the answers massdroid, you are the most helpful member around
Click to expand...
Click to collapse
Thank you buddy. I appreciate your kind words
what are the benifets of app2sd???
The title says it all, I was wondering what are the benefits of storing and running your apps from the sd card other then the obviously being able to install more apps then can be stored on the phones internal memory?
Secondly what is the purpose of zipalign? At a very simplistic level I guess it has something to do with optimizing the apk though I am not really sure what this means.
Even with my Sprint CDMA Hero overclocked to 652 (min) & 710 (max) I still find the keyboard to be a bit laggy, will enabling the above help with this at all?
Yep, by installing apps and their associated cache to your SD, it saves you from having to install them directly to internal memory, which would affect the performance of your phone with the more apps you install. With A2SD installed, you basically save storage space and allows your device to run faster.
Also, consider installing a cache cleaner app to free up more space.
Zipalign makes interacting with apps more efficient after they are optimised making them run faster with the Android OS.
Sent from my HTC Desire using XDA App
where do performance improvements come from?
MasDroid said:
Yep, by installing apps and their associated cache to your SD, it saves you from having to install them directly to internal memory, which would affect the performance of your phone with the more apps you install. With A2SD installed, you basically save storage space and allows your device to run faster.
Also, consider installing a cache cleaner app to free up more space.
Zipalign makes interacting with apps more efficient after they are optimised making them run faster with the Android OS.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
I have seen the benchmark tests showing the speed improvements but I don't really see how changing the location of where the apps are installed to would necessarily improve the performance of their execution, I mean the phone's internal storage is separate from the phone's internal ram. Are there fragmentation issues or something when it comes to running the apps from the smaller internal storage vs the larger external storage of the sd card?
I think this question was asked previously but I didn't see an answer for it; when app2sd is set up, when you start installing new apps do they automatically get zipaligned and then installed to the sd card or do you have to do it manually?
Hmm.... i think you have a point there and i agree with what you are saying. With A2SD, i don't think it improves performance since it's ROM space, not RAM, that these apps are occupying. The main advantage of A2SD is having more dedicated space for storage of apps.
Since the 1.6 SDK was released, i think the ADT does this automatically on APK export. Therefore any app which has been updated since ~September (and was developed using the ADT Eclipse plugin) will be zipalign'd.
You can also do this manually, see this link:
http://android-developers.blogspot.com/2009/09/zipalign-easy-optimization.html
Sent from my HTC Desire using XDA App

[Q] swap to add RAM on Arc?

I have flashed the newest Doom kernel, it says swap supported.
And also, I already have a class-6 sd card in my phone
I just wanna add some RAM to improve the performance when gaming, playing video & taking pictures.
But.. how? Dose SWAPPER work?
Thanks..
you'll need to partition your sd card, try using link2sd as well as swapper2(both free on market)
sinkster©

[Guide] use swap on qkernel

How to use swap on defy/defy +
Since we got another kernel its possible to use swap
swap is "extended memory" on SC-Card or internal memory.
It's usefull when you need memory for currently non active applications (like browser + maps + etc...).
you can run more apps but you need more time to switch between those apps.
Warning: SD card (or internal memory) will be used as swap space. It can (and will) shorten SD card (or internal memory) lifespan.
required: root, qkernel , some free space (sd-card preferred)
I show you two ways to run it on defy/defy+, a simple and a hard one.
==============simple way===================
1.Downlod Swapper 2 from market! Link: https://market.android.com/details?id=lv.n3o.swapper2
2.Install Swapper2 normally
3.Open Swapper2 and go to Settings
4.Click on Swap size and choose 32,48,64..etc (i use 128MB)
5.change swappiness dependet on SD-Card speed 10-20 should be fine in any case
6. check "Run at Startup" if you want swap on by default
7. Leave settings menu and press "on", this will take some time to create and format swap file.
open terminal emulator and type "free" to see if swap was activated sucessfully
==============hard way==========================
open terminal
#comment do not type in console
#creates swapfile
dd if=/dev/zero of=/sdcard/swapfile.swp bs=1048576 count=128000
#cange rights
chmod 644 /sdcard/swapfile.swp
#swap file formatiern
mkswap /sdcard/swapfile.swp
#things above need to be done once
#enable swap
swapon /sdcard/swapfile.swp
#disable swap
swapoff /sdcard/swapfile.swp
#swappiness is 60 by default
cat /proc/sys/vm/swappiness
==================================================
Im not responible for any damage on your phone
swapper2 is a app from Elviss Kuštans , i just showed how to use it
if i missed something or you have an idea how to improve things let me know
is possible to create the swap file on internal storage?
Yes Certainly!
Sent from my MB526 using xda premium
marcospulido said:
is possible to create the swap file on internal storage?
Click to expand...
Click to collapse
yes,using it as swap partition will work fine.
BUT flash memories have limited write cycles.
so you end up decrasing your internal flashs livetime
i recomerre to use sd card, because its easier to replace after a jear or two if it stops working well.
-------------ad flash live span info-----------------------------
Individual flash memory (sd and internal flash) cells have a limited lifespan. That's the bad news. The good news is that their lifespan is usually measured in the many, many thousands of erase/write cycles, and that card controllers use an algorithm that balances the wear across the entire card's cells. InternalFlash and SD/SDHC cards are designed to automatically and transparently map out memory cells that go bad, or in some cases when they reach a predefined limit.
The cards and flashs are rated in and out of a device over 100,000 write cycles.
so nothing to worry about
Why and how does this shorten the sd's life-span? (Curious)
Sent from my defy+
Can we use swap partition on sdcard? Is it better then swap file at fat32?
Sent from my MB525 using xda app-developers app
Is there a way to prevent certain apps from being "swapped" to sd card? I dont think there is but what's the harm in asking?
This is because the launcher gets very laggy when swap is enabled.
Also: using internal memory as swap isn't recommended. Not only can you shorten life of internal memory, but also slow down your phone. As everything (apps,system,swap)will be trying to access the internal memory at the same time and will lead to trashing.
thanks
Thanks
I am a noob to this android stuff and I know this question is outdated, but what is a qkernel?
Also, I am using a kernel that has been confirmed to be able to work with swap files, but when I press "on" in swapper 2, everything works fine. Then it says, "enabling swap file(fail)."
Could someone please inform me on how to fix this problem on MB525.
Thanks in advance.

[Q] Possible to remove the virtual SD card altogether?

Hello,
I have just recently started absorbing direct Android / Unix-based kernel experience, so excuse the potential technical bull**** ahead.
Seems to me that Ace II has an internal ~2GB storage, half used as the standard internal space and second half mounted as a virtual sdcard0 that can be used to store additional apps or else. When I install a real card, it it mounted by the system as sdcard1. Through NovaFusion advanced configuration, I am able to swap these 2 cards, so my actual external sd card becomes sdcard0 and can afterwards be used as alternative storage for apps. So far so good, but the virtual sdcard moves to sdcard1 and is just a 1GB OCD trigger.
What I would like to do is to remove the virtual card altogether, merge it's space back into the internal storage so I get 2GB full internal memory and use my real external sdcard as sdcard0 without any additional mounts.
Possible?
mystrdat said:
Possible?
Click to expand...
Click to collapse
Yes - possible and already done:
Read first to understnad you you are doing with it..
http://forum.xda-developers.com/showthread.php?t=2596521
This is also helpfull because of the different "pre-sets" included it the linked file:
http://forum.xda-developers.com/showthread.php?t=2700727
I'm running approx 2,8 GB on Data and "only" 100MB on virtual (internal) SD Card.....
fluffi444 said:
Yes - possible and already done:
Read first to understnad you you are doing with it..
http://forum.xda-developers.com/showthread.php?t=2596521
This is also helpfull because of the different "pre-sets" included it the linked file:
http://forum.xda-developers.com/showthread.php?t=2700727
I'm running approx 2,8 GB on Data and "only" 100MB on virtual (internal) SD Card.....
Click to expand...
Click to collapse
Thanks, that looks pretty brick-prone. I suppose I'll wait until the process is a bit more user-friendly and more tested, so I don't have to go through several attempts. :good:
They heard your wishes
http://forum.xda-developers.com/showpost.php?p=54157635&postcount=129

Does Increasing ZRAM Partition Could Damage My Phone?

Recently I've found a method that could increase my zram from MIUI default 512 mb to 870 mb by using init.d script. But does it will damage my phone as i heard swapping can damage memory for long time usage. Forgive my noobness and thanks very much in advance. May good things come for all who helped.
Well yes it will damage your sd card if you format sd card or lets say remove sd card without disabling swap. btw zram is different and swap is different. Here's a link for better understanding https://forum.xda-developers.com/showthread.php?t=1851991

Categories

Resources