Does Increasing ZRAM Partition Could Damage My Phone? - Xiaomi Redmi 1S

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

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

ZRAM on BCM

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.

SD card ext and swap partitions: How useful? How large?

I'm using Mimicry 1.4.0 and quite happy with it in general. I've figured out that 4EXT is the way to go, and have ensured that all my internal partitions are ext4 (just now actually, I'm interested to see how much it helps). I have seen various people suggesting repartitioning of the SD card as a way to see a significant performance enhancement as well, and this seems reasonable to me but certain information on the matter seems to be lacking. There's a few posts here and there on the subject that have additional detail, but they're in other device forums or in response to folks running different ROMs..
So:
How helpful is repartitioning?
Should I just create an ext1 partition? Is ext2 additionally helpful? What about a swap partition?
What do the damn things actually do?
How large should I make the partitions? I assume there's a point of diminishing returns.
Since I am a cheap bastard, my cheap SD card is likely quite slow. How do I tell how fast it is? How relevant is that?
Much thanks!
+1
I'm also interested to know if anyone using swap has seen any performance improvements.
When you make for example 128Mb ext4 and 256 Mb swap partition to your sd card for G2 and plugged in it. Stock rom will not use the swap file but stock rom will detect the ext4 part and use it for keeping the cache there.
and for the custom roms like CM series and Sense roms you'll need to make a swap partition and if you like ext4 partition on sd card. (ext4 is not necessary).
Because G2 and desire Z has 368Mb ram and these new custom roms are needing a bit larger space then stock rom. thats why you can use " swap_enable_v2" for additional ram using. ( Remember if your sd card's write speed more then 6 Mb/s ) of you can simply use some scripts like SuperCharger_V6 or some other like this.
I stongrly suggest you to use Swap enabler and SuperCharger_V6 at the same time like me. it increased my desire z's permormance more then %40 and it awesome now.
:good:
Well, I'd say swap partition does not always is a good idea - constant reads and writes of the specific part of the card may degrade it's performance.
That's why I'd suggest trying DataSwap, which can just create plain file on the card.
I'm using it for over 4 months now, and I'm pleased.
On the side note AFAIR /sdcard should be FAT, and not EXT4
Partitioning the sd card or creating a swap file on sd card is not so different. Still mskes alot reads and writes
Sent from my Nokia 3310
If you are using ICS/JB - I put my swap file on the /cache directory since it doesn't seem to ever get filled up. Then I am not using the sd card.

[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] how to increase RAM...??

how to increase Ram on SGG
i googled and got to know that for swapping we need a custom kernal
i am using GENXT ODEX ROM 4.1.2, which kernal will be available for my phone...??
what are alternate solutions for increasing my RAM..??
king_of_grand said:
how to increase Ram on SGG
i googled and got to know that for swapping we need a custom kernal
i am using GENXT ODEX ROM 4.1.2, which kernal will be available for my phone...??
what are alternate solutions for increasing my RAM..??
Click to expand...
Click to collapse
You can not increase your RAM. It's tied to hardware, so unless you're skilled enough to mess with the phone's electronic board, it is not possible.
If you're talking about internal memory (sdcard0) there are many ways to free up some space in it, one of them is using Link2SD. You don't need a custom kernel, you just need to repartition your SD card.
have you heard swapping
naufalhadyan said:
You can not increase your RAM. It's tied to hardware, so unless you're skilled enough to mess with the phone's electronic board, it is not possible.
If you're talking about internal memory (sdcard0) there are many ways to free up some space in it, one of them is using Link2SD. You don't need a custom kernel, you just need to repartition your SD card.
Click to expand...
Click to collapse
have you heard of swapping...!!
with the help of swapping we can increase RAM from MMC
swapping cannot be done on default kernal.....hope u know that
Download An app,Ram expandar.It doesn't actually increase the ram instead,uses some of part of your sd card (swaping) as virtual ram.
Nonetheless there's always an option of downloading ram boosters
If i helped,don't forget to hit the THANKS button
My devices:Sony Xperia Sola(rooted)
Samsung Galaxy Ace(rooted)
Odys Next(rooted)
---------- Post added at 11:16 AM ---------- Previous post was at 11:13 AM ----------
Some part*
You can also flash a custom rom for better ram optimisation
If i helped,don't forget to hit the THANKS button
My devices:Sony Xperia Sola(rooted)
Samsung Galaxy Ace(rooted)
Odys Next(rooted)
king_of_grand said:
have you heard of swapping...!!
with the help of swapping we can increase RAM from MMC
swapping cannot be done on default kernal.....hope u know that
Click to expand...
Click to collapse
Alright I just read some old threads about this... It basically involves creating a swap partition on the SD card and use it as a secondary memory aside from RAM... It's similar to pagefile in Windows and swap partition in Ubuntu/Linux desktop.
Correct me if I'm wrong.
It will decrease your SD card life though (and probably damage/corrupt it) because SD cards are not designed for frequent and temporary read and write, it has limited read and write lifetime, while with the RAM this RW lifetime is much better than SD card.
Also, from what I'm seeing so far... swapping is more suitable for old Android versions (2.3 or lower) with low RAM (256 MB or lower). Android 4.0+ has improved memory management and there's really no need for a swap partition, thus why you more likely need a task killer on older Android (2.3-), but it is not recommended to use one on newer Android (4.0+). Even Kitkat runs fine on a 512MB device.
What sort of memory-eating app are you planning to use on your phone?
naufalhadyan said:
Alright I just read some old threads about this... It basically involves creating a swap partition on the SD card and use it as a secondary memory aside from RAM... It's similar to pagefile in Windows and swap partition in Ubuntu/Linux desktop.
Correct me if I'm wrong.
It will decrease your SD card life though (and probably damage/corrupt it) because SD cards are not designed for frequent and temporary read and write, it has limited read and write lifetime, while with the RAM this RW lifetime is much better than SD card.
Also, from what I'm seeing so far... swapping is more suitable for old Android versions (2.3 or lower) with low RAM (256 MB or lower). Android 4.0+ has improved memory management and there's really no need for a swap partition, thus why you more likely need a task killer on older Android (2.3-), but it is not recommended to use one on newer Android (4.0+). Even Kitkat runs fine on a 512MB device.
What sort of memory-eating app are you planning to use on your phone?
Click to expand...
Click to collapse
you are very much right...!!
but my grand is using 600mb out of 800mb
and i have class 10 sd card so it was ok with me
and my phone is getting much slower so i want to expand my ram
TheAmaze said:
Download An app,Ram expandar.It doesn't actually increase the ram instead,uses some of part of your sd card (swaping) as virtual ram.
Nonetheless there's always an option of downloading ram boosters
If i helped,don't forget to hit the THANKS button
My devices:Sony Xperia Sola(rooted)
Samsung Galaxy Ace(rooted)
Odys Next(rooted)
---------- Post added at 11:16 AM ---------- Previous post was at 11:13 AM ----------
Click to expand...
Click to collapse
Ram Expander Not working on default kernal
it is saying this kernal doesnt support swapping
king_of_grand said:
you are very much right...!!
but my grand is using 600mb out of 800mb
and i have class 10 sd card so it was ok with me
and my phone is getting much slower so i want to expand my ram
Click to expand...
Click to collapse
Adding a swap partition is not preferable because SD cards have slower R/W speeds compared to RAM, even if you have a class 10. And a "class 10" card means it has the best R/W speed, but it doesn't mean having longer R/W life.
Actually high RAM usage on Android is not always bad. Some parts of the RAM is used for caching so that you will run the apps faster compared to not having the cache. This is similar to the SUPERFETCH on Windows Vista and up. RAM usage does not always mean worse battery life, but CPU usage does.
Also... have you tried Greenify and see if it helps? Also if you can live without dual SIM, try one of the Kitkat ROMs, it removed lags completely for me.
Ok no problem!
By the way,which phone do you have?
You can easily flash an older or newer Kernel or maybe a custom one,for your phone,if you have a Sony Smartphone then flash through flashtool
Note:flashing Kernel doesn't wipe any data
Currently we don't have a swap supported kernel
Sent from my GT-I9500 using XDA Premium 4 mobile app
Swap is useless IMHO
Your SDCard will probably suffer if you use it
Sent from my GT-I9082 using Tapatalk

Categories

Resources