A swap file allows an operating system to use hard disk space to simulate extra memory. When the system runs low on memory, it swaps a section of RAM that an idle program is using onto the hard disk to free up memory for other programs. Then when you go back to the swapped out program, it changes places with another program in RAM. This causes a large amount of hard disk reading and writing that slows down your computer considerably.
I can say Swap file is like Virtual Memory on your PC.
New Info:
For those who struggle with the Free on terminal Emulator, the swapper will still work. Here is the simple Instruction. Just make as 100-128mb Swap then put it to 50 swappines, reboot and done.
The Swapper can Work on Many Devices. I tested it on Neo V, Arc S and Samsung Galaxy SII
Just to make sure it supports this kind of Feature. Free to try it, its harmless.
Requirements:
-Any Rom- (Tested on Acronium 4 and I-Scream)
-Custom Kernel- (Tested on KGT and Xarc Kernel)
-300+ sdcard space-
-Terminal Emulator-
Source: Google Play
or Attached File
2. Go to terminal emulator type "Free" without the Quotation.
Make sure you see "0" on the Swap
3. open swapper2 go to Setting, Swap size=32 MB, Swappiness=60. (You can Play on the numbers you want I just displayed a Default Swap Settings.)
Go Advanced preferences check "Recreate swap file" and "Reformat swap" then exit...
4. Open Swapper2 click ON it will show some Fail.
Just wait for few secs or mins and it will continue. If not, Click the ON again.
5. Go to terminal emulator type free and you will see that the "0" has been replaced.
Hit thanks if you think I helped.
Note: This just give Everyone Idea that Swapfile is working without Partitioning your SD cards.
Notes:
Risk Free..
Enable/Disable Swap
Safe SD Card
Free to experiment what Numbers is suitable on your Settings.
The swap file Works well when your system Ram went low that can help Handling Running Process and Multitasking.
--- Update.. 0.1
---
For those who cannot do the do the Swap due to Kernel Issue
Here is a new way without using the Swapper 2
SOLUTION: How to make simple ZRAM init.d script
1. Using Root Explorer, got to /sytem/etc/init.d/
2. press Menu then create new file
3. paste these in it
Code:
4. close and save it as 99zram
5. set permission to 777 or "rwxrwxrwx" (tick all)
6. take note: 60*1024*1024 = 60MB zram disksize. if you want to set 30MB, change 60 to 30.
Thanks.
I will be Unavailable for a Moment. Im creating my own Custom Kernel
Unfortunately, this doesn't work on the stock kernel as we don't have the ramzswap module. But as I mentioned here it looks like it could be compiled as a loadable module if someone was willing to do it. Any takers?
Unfortunately, this doesn't work on the stock kernel as we don't have the ramzswap module. But as I mentioned here it looks like it could be compiled as a loadable module if someone was willing to do it. Any takers?
Yes, I used Xarc kernel. Somehow It doesn't work with other kernel. They can use the zram instead.
Recovering iPad users may still remember the multitasking function where you can swipe left or right to … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?