[Tutorial] How to Add RAM Swap [Tested on MM Roms] - Miscellaneous Android Development

Hello Guys.
In this Tutorial I will tell you how you can enable RAM Swap in your Coolpad Device.It will work on Both Coolpad Note 3 and Note 3 Lite.
So, The Basic Question:
Question :: What is RAM Swap and Why is it needed in a device like ours with 3 GBs of RAM.?
Answer :: Swap space is used when the amount of physical memory (RAM) is full. If the system needs more memory resources and the RAM is full, inactive pages in memory are moved to the swap space. While swap space can help machines with a small amount of RAM, it should not be considered a replacement for more RAM.
Our Coolpad Note 3 has 3GB but have you ever noticed that more than 1.5 GB RAM is eaten by System and it's Apps , that means only 1.3-1.4 GB is now available to user Apps now Apps like FB , Messenger , WhatsApp and few other local apps can easily eat that much RAM so in that case the Swap Memory/RAM Swap comes handy and the Processes are not killed but moved to Swap Memory thus reducing the System to start one process again and consume more power.
Requirements:
Root(SuperSU permissions)
Root Explorer App ( or any other Root Browser like ES)
So, How to Enable it?????
1. Open Root Explorer
2.Provide it ROOT permissions
3.Now head to (Root)/
4.Scroll down and look for a file named EnableSwap.sh
5.Open it and edit the '0' value after 'echo' to 1730674890 (It will enable 1.6Gb of RAM Swap higher or very lower value not recommended as it will make the UI slow.
6.Save it
7.Reboot and Enjoy
Credits:
Amit Kumar
Kuber Sharma

Good work

Thank You
mohancm said:
Good work
Click to expand...
Click to collapse

Can we use it on oreo
First of all kudos for the tutorial. Now what I was thinking it that will it make any difference on Oreo?(MADos8.1.0)

EnableSwap.sh file is no where in root location

Thread closed per OP request.

Related

[Q] change partition size on Galaxy 3 - more space for apps

Hi,
I have a problem with data space.
Therefore I removed those aplications from system folder :
Swype.apk (11 MB) - for czech and many other user useless because of absence their language support
Layar.apk (5MB) ? - useless too - I do not wanna anyone know where I am located
Samsung Apps.apk (5 MB ?) - useless because Samsung GAY policy
Thinkdroid.apk ( 5 MB) ? - I never used , but I wanna install it on sdcard - weird after remove from system, it was not possible to install it - phone rebooted
Ive expected I will have more free space for aplications, but I have not
So I have now :
System : 182.99 MB used, 27.64 MB free
Data : 188.86 MB used , 5.29 MB free
Cache : 792 KB used 32.03 MB free
My goal is ofcourse to have as much as MB free at DATA folder / partition
Is there any EASY way how to make it happen without data loss and most important - without PHONE BRICK ?
so some partition manager ?
I tried already some trick to have 2 partitions on SD and ofcourse, it does not work - it take only 1 or more hours to get 30+ GBs of music, maps etc back to SD
I am not sure if this works for example at Kyrillos 7.0 , but if I have to download something over DATA connection and cant use wi-fi , then this solution is unacceptable
Of course my goal is to have unchanged aplications and their data + I5800XXJPS
My dream is Android 2.3.4 , but I will wait till FM RADIO and other non working stuff will be solved
I found this http://android.modaco.com/topic/331205-guide-how-to-get-more-free-space-for-your-apps/
but it looks too hard and I need more like 128/136 MB for system partition
I am using APP 2 SD Pro and Move2SD Enabler set to EXTERNAL
for example install ANGRY BIRDS is impossible even I have 200 MB free at my 32 GB SDCARD
thanks for your help
Bro, wrong section.
And you have a 32 GB SD card. Then make a 1 GB ext4 partition. Rest 31 GBs you use for songs and all. Kyrillos has apps2sd v2 enabled. Only /data/data/ remains in internal memory. If you don t want that to also, then you can use app2sd v3. It works. All apps that you install will goto ext4 partition of SD.
It may be possible but there is an easier way. If you are low on space for apps, that means that data partition is full, you on the other hand, you deleted apps from system partition so you have more space there. So... go to data/app and move some of your instaled apps from there to system/app. Be sure to leave some free space on system partition, especially if you are going to change themes, then leave 10mb free.
thanks
ka'cipeder said:
It may be possible but there is an easier way. If you are low on space for apps, that means that data partition is full, you on the other hand, you deleted apps from system partition so you have more space there. So... go to data/app and move some of your instaled apps from there to system/app. Be sure to leave some free space on system partition, especially if you are going to change themes, then leave 10mb free.
Click to expand...
Click to collapse
Thanks all to respon, specially You,
I alraedy did exactly You suggest and it helps
I do not wanna go ext partitions, I alraedy deleted some most biggest size files from Dalvik-cache too
if there are a some steps how make works APP2SD ver 3 without partitioning SD, then please write how
now I am trying Regina Launcher first time, initializing takes so loooong
Best Regards
Radek

a2sd slugisch and slow after hopefully correct install

I'm running 2.3.5 sk particle GIO as os with build in a2sd.(sd card Class 10 (tested))
It was horrible to install and get it running, all the information on the marked is abigious....
The intrinsic quality of a2sd is not that great that creates tons of mis understanding....
(for a relative simple issue sym link and replace batch procedure...
I found out that the commands not executed in the right(specific) order leaded to crash and in usability of the system. It is difficult nearly impossible to detect and confirm you got it working
.... The above are not qualifications of a quality product heavily overrated.
order
su:
a2sd swappy64
a2sd zipalign
a2sd cashesd (reboot)
a2sd datasd (reboot)
>Swap active and only davik activee
a2sd install (reboot)
>100 more mb on sd card
The above is my guess apearently after executing ton's of command lines
All the difficulty needs to be handled by the unexplained user (a2sd last beta version)
But resulting system verry sluggish and slow
needed to install a task killer but now all gets aborted
I guess the data partition was copied, since the memory indication (a2sd titanium) increased by 100 mb, I would have suspected an increase of about 200 to 300mb , but that would mean
the symbolic link is completely corrupted.
Documentation on copying an additional system directory, is 3 lines of code , ok complex but
all transparancy on a2sd has been lost.
It is not possible that a2sd is quality work, all critics welcome, I would love it to work
I do not understand the memory reports :
ex titatium memory internal 189MB (185MB free) near to impossible
sd card 9 gig free
sd a2sd 1 gig 815Mb gree = 185mb used - 64 mb davik
I see no reason the system is so unstable on a symbolic link
restoring and re linking should not be able to help on that except killing the wole system
in the mean time
Did someone come to a working solution on that?
are it all lies and crappy work ???
I realy need help, is it worth the effort ????
Thanks for your comment
I don't understand you at all .
Sent from my GT-S5830 using XDA App
the only thing i understood is that your apps2sd is slow.Try upgrading ext2 to ext3/ext4

[TUTORIAL] Increase RAM in Micromax A56...Root Needed

Hey Guys...i've found a way after lots of research and experiments a way to increase RAM in Micromax A56 (thanks to xda). Unlike most of the devices A56 supports swap default by its stock kernel.
ROOT NEEDED....BUSYBOX NEEDED. !!!
Note - This Mod May/Will Degrade Your SDCARD Life.
Needed Apps - Swapper for root and Swapper2 (Download these from Playstore)
SETTING UP SWAPPER FOR ROOT
1. Click on Active Swap on boot.
2. Set swap file partition to - "SD Card FAT Partition"
3. Enter "512" or "256" in swap file size(in MB).
4. Click Save it will take some time about 2-4 minutes depending upon the swap file size we created. (you can experiment with the swap file size).
SETTING UP SWAPPER2 :-
1. Open Swapper2.
2. U'll see a black screen, click on ads off.
3. Now go to settings, Make sure you have "Run swapper at startup" box checked. Go to swap place and change it to "/sdcard/swap.swp".
4. Now Click on swap size and choose 256mb(you can experiment with the digits).
5. Go to swappiness and set it to 100.
6. Check the boxes "Safe Unmount" and "Safe Remount".
7. Now go to "Advanced Prefrences"-->Check the box "Reformat swap".
8. Leave everything else as it is...Don't touch anything and exit settings come to main screen of swapper2.
NEXT STEP-----> ACTION..!!!!
1. Click on "ON" Button. It will/may show some fails but don't freak out(its normal), Wait untill it shows "All Done!"
3. Now we are done...!!!! Now check ur sdcard, you will see a file named "swap.swp".
4. Now download Advanced Task Killer from the market and kill all the running apps and go and see ur free RAM. You will see more RAM free than usual. But in actual u have more than that cuz we just created a swap in our SDCARD.
NOW you can play Games which require heavy ram usage ( I love that..!!!) Like Temple Run, Asphalt 6, etc. Some games may still show little lags.
If you want more performance while gaming, download Chainfire3D and All its plugins and play.
If this helped you Click THANKS to help me.
This method can work for other devices too...TRY and SEE...!!!
Test post.
Hope now its visible to other members also.
Sent from my A56 using xda premium
Hi, I have finally managed to root the A56. Installed the Swapper for Root & the Swapper2 apps from PlayStore.
When I open SfR and select the option 'Active Swap on Boot', there is no option for SD Card FAT Partition. It just comes up blank.
I have created a secondary partition on the SD card using the Mini Home Partition tool as FAT32.
What am I doing wrong??
sidhusaab said:
Hi, I have finally managed to root the A56. Installed the Swapper for Root & the Swapper2 apps from PlayStore.
When I open SfR and select the option 'Active Swap on Boot', there is no option for SD Card FAT Partition. It just comes up blank.
I have created a secondary partition on the SD card using the Mini Home Partition tool as FAT32.
What am I doing wrong??
Click to expand...
Click to collapse
ur sdcard shud be of FAT filesystem
Does the microSD need to be FAT16 or FAT32??
The microSD has been formatted as FAT32. Does swapper need a new partition to work on as apps2SD does? Or will it work on the default partition?
Mine is working on FAT filesystem...can also work on fat32 no new partition needed.
anshubham said:
Mine is working on FAT filesystem...can also work on fat32 no new partition needed.
Click to expand...
Click to collapse
anshubham
how much ram do you get after doing this
in running services it shows 40-50mb ram...
it does not show more ram but it is usex when an app which requires more ram is launched.
if u dont understand this clearly...read the true meaning of swapping...on xda or on wikipedia.
Sent from my A56 using xda premium
can this tutorial be used for micro MAx a57
Sent from my GT-I9103 using xda premium
can anyone reply me
Sent from my GT-I9103 using xda premium

[XPERIA J] please help !!

I used an app called "Swapper for Root" and transferred about 100 M.B from my internal memory to RAM (I GUESS) to increase performance of the phone. But when I did so I neither got the RAM memory increased nor I got that 100 MB back .. ?? I also tried deleting the app .. I didn't get the memory back !! Please help me
PM/email to dev & ask how to fix
or
factory reset / fashtool / sony pc companion always your friend
Re-Flash stock ICS With Xperia Flasher, Don't email, that's the reason why this is called the Q & A thread
For first most probably you don't understand how swap works. Delete file by using any root explorer, adb or PC
lozohcum said:
For first most probably you don't understand how swap works. Delete file by using any root explorer, adb or PC
Click to expand...
Click to collapse
Which file to delete ?!
swap.swp something like that, depends if you have changed the name and destination folder
mustaqeemahmed said:
I used an app called "Swapper for Root" and transferred about 100 M.B from my internal memory to RAM (I GUESS) to increase performance of the phone. But when I did so I neither got the RAM memory increased nor I got that 100 MB back .. ?? I also tried deleting the app .. I didn't get the memory back !! Please help me
Click to expand...
Click to collapse
If you wanna use a safer Ram boosting app try the V6 supercharger script. It has an option where you can increase the Ram by using the memory. But it doesn't really make any difference, at least not for me.
Swap is used to store unused apps on that swap instead of the RAM, so that is why you don't see RAM Increase.
btw, swap on flash memories (like SSD, our phone's storage) kills them because flash memories have a limited read/write cycles.
Ketcchup said:
Swap is used to store unused apps on that swap instead of the RAM, so that is why you don't see RAM Increase.
btw, swap on flash memories (like SSD, our phone's storage) kills them because flash memories have a limited read/write cycles.
Click to expand...
Click to collapse
so I can't recover my memory back ?
mustaqeemahmed said:
so I can't recover my memory back ?
Click to expand...
Click to collapse
Try to flash stock firmware... not sure how swap works on android
Ketcchup said:
Try to flash stock firmware... not sure how swap works on android
Click to expand...
Click to collapse
Well there was a file swap. something ! I deleted it and got the memory back! thanks to Lozohcum !

[SOLVED] [Root] All Memory Problems of Xperia L

This is a guide to help you solve all problems related to Xperia L memory which includes internal, external SD card and RAM.
THIS IS NOOB PROOF GUIDE. EVERYTHING HAS BEEN TESTED BY ME AND IT WORKS PERFECTLY FINE.
USE THIS GUIDE ON YOUR OWN RISK. I WILL NOT BE HELD RESPONSIBLE FOR ANY DAMAGE
In this guide I will show you how to install many games on your Xperia without really swapping your internal and external memory. Also, I will help you regain your lost memory in case if it doesnot add up to your total. Further, if you think you havenot got much on your phone but still a lot of space is hogged by unknown files. All will be done using your phone and thus requires NO PROGRAMMING OR EDITING ANY FILES OF YOUR PHONE.
ROOT IS MANDATORY FOR THIS TO WORK
Only selected files might work partially thus root is recommended. UNLOCKED BOOTLOADER is not required.
HOW TO ROOT YOUR XPERIA
ishanbhatnagr96 said:
1. Use motochopper to root.
2. Push SU to /system in SU-> Settings -> Push SU to /system.
3. DONE
Click to expand...
Click to collapse
Motochopper Download Link :
http://forum.xda-developers.com/attachment.php?attachmentid=2004316&d=1369929448
Credits :
http://forum.xda-developers.com/showthread.php?p=42119438
RECOMMENDED
An Xperia L
An SD card of atleast 16gb
Some skills to work on intructions
Rooted recommended
RECOMMENDED APPLICATIONS:
SD MAID
https://play.google.com/store/apps/details?id=eu.thedarken.sdm&hl=en
FOLDER MOUNT
https://play.google.com/store/apps/details?id=com.devasque.fmount&hl=en
ADVANCED TASK KILLER
https://play.google.com/store/apps/details?id=com.rechild.advancedtaskkiller
TITANIUM BACKUP
https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup&hl=en
ES FILE EXPLORER
https://play.google.com/store/apps/details?id=com.estrongs.android.pop
GREENIFY
https://play.google.com/store/apps/details?id=com.oasisfeng.greenify&hl=en
CONTENTS
INSTRUCTIONS
http://forum.xda-developers.com/showpost.php?p=46772007&postcount=2
HOW TO KEEP RAM CLEAN AND KEEP YOUR PHONE BUTTER SMOOTH :
Having troubles with slow Xperia L. Want to make your xperia L faster.
READ POST 3
http://forum.xda-developers.com/showpost.php?p=46772035&postcount=3
HOW TO SWAP EXTERNAL MEMORY & INSTALL AS MANY GAMELOFT GAMES AS YOU WANT
Many of you are having problems installing many games in your internal memory and can only utilise 4 gb of your memory. This means only 3 gameloft games. Thus I will briefly help you with memory issues related to Xperia L.
READ POST 4
http://forum.xda-developers.com/showpost.php?p=46772433&postcount=4
INTERNAL MEMORY PROBLEMS
Internal memory not adding up? Unknown files hogging your space.
READ POST 5
http://forum.xda-developers.com/showpost.php?p=46772454&postcount=5
WARNINGS, RECOMMENDATIONS
READ POST 6
http://forum.xda-developers.com/showpost.php?p=46772464&postcount=6
MODS COMING SOON
INSTRUCTIONS
The phone MUST be fully rooted and all the recommended applications isntalled. They can be easily found on the Google Play. Links are provided for reference. In this guide I have used all the PRO (paid) applications. The Free versions will do fine but It is expected that some options are disabled in the free version. Google is your friend
After installing all these applications with your phone rooted, follow next posts
Game Installed and free space
ADVANCED TASK KILLER
Advanced task manager is used to kill tasks running in the background.
Add advanced task killer widget to your home screen. Every time you need to kill background applications, just tap it once. This way all the applications in the background are periodically killed and thus, more RAM is available to your system and thus increased performance.
GREENIFY[ROOT]:
This application/system basically looks for applications running in the background. These background processes might slow down system. Furthermore, these increase the battery usage and reduce battery time. Greenify detects the background applications and hibernates them. This not only speeds up the phone but also saves battery.
SICK OF BLOATWARE? TITANIUM BACKUP [ROOT]
Titanium backup is used for backing up your applications and system files. This can also DELETE applications from your ROM permenantly.
I recommend you make a backup with Titanium backup before uninstalling the files. REMEMBER, IF YOU UNINSTALL A SYSTEM FILE, YOU WILL NEED TO REFLASH YOUR ROM and you will end up in BOOTLOOP.
I will paste a screenshot to tell you which applications can be deleted easily.
OTHER SETTINGS :
Go to your settings>developers tools> background limit> use as less as you want. THIS WILL INCREASE USER EXPERIENCE
This one is very easy. Install Folder Mount and it will do the rest. Remember with free version, you can only mount 3 folders. The application is frequently updated and it has great support for Xperia L.
Basically this application creates a link folder in your SD card which is detected by games automatically once fully setup. It also moves your files into your SD card and this saves your EXTERNAL MEMORY FULLY. You can install as many games or applications and link them to your SD card. Its that simple.
Use App analyzer option to mount folders. Manual folder mounts are not recommended!
Go to app analyzer>Select Game> Creat pair(s)>Move files as well> Mounted
SCREENSHOTS :
This can be managed by SD MAID and TITANIUM BACKUP.
With SD Maid, you can free a lot of space. It has many cool features. I use the Corpse finder and System cleaner. You may also try appcleaner if you like.
Go to CORPSE FINDER>FIND FILES>DELETE ALL FILES. It will take some time looking for files.
SYSTEMCLEANER>FIND FILES>DELETE ALL FILES. It will take some time looking for files.
TITANIUM BACKUP IS USED TO RELOCATE THE MEMORY THAT IS MISSING.
Titanium backup> MENU > clean up the dalvik cache
This will also give you back some INTERNAL MEMORY BACK WHICH MIGHT BE LOST.
PICTURES AFTER REMOVED BLOATWARE :
DO NOT UNINSTALL ANY SYSTEM APPLICATION. Applications like facebook, office, and other missing applications can be uninstalled.
Clear dalvik cache after deleting bloatware
Questions post 7
WOW ,, Seems to be a great post
Sparksys said:
WOW ,, Seems to be a great post
Click to expand...
Click to collapse
Give your feedback now. Although it still needs some polishing and I need to add more details
Post completed and updated
heyy...!!!
am still having the problem of low memory even after deleting the files...like thumbnails and lost.dir
mukeshreddy said:
am still having the problem of low memory even after deleting the files...like thumbnails and lost.dir
Click to expand...
Click to collapse
Are you rooted ? Have you tried everthing as I mentioned ? This must clear all your space being hogged unnecessarily.
Try installing this app as well, It would help you do wonders too.
https://play.google.com/store/apps/details?id=com.qihoo.cleandroid&hl=en
And provide more information or else it's extremely hard to know what exactly is troubling you!

Categories

Resources