Hi Developers!
I need help for Alcatel One Touch 918D (android 2.3.5 build:v2AAE0).
How enable the swap support in kernel?
I create a 256mb swap partition in SDcard (class10). The system is see the partition (/dev/block/mmcblk0p3), but does not working the swapon command. (swapon: /dev/block/mmcblk0p3: Function not implemented)
please help!
best regards,
Imi
Somebody help me Please!
Also need swap support and oc ability... Please help
Sent from my ALCATEL_one_touch_918D using Tapatalk
cybic said:
Also need swap support and oc ability... Please help
Click to expand...
Click to collapse
Root the phone & install "swapper configuration". It works for me.
Sent from my ALCATEL_one_touch_918D using Tapatalk
Swapper Configuration? :-D Do you mean by any chance the app "Swapper"? Because I can't find any "swapper configuration" app anywhere...
Btw..: after enabling swap file with swapper I'm still unable to see any free swap memory within the terminal (free shows still 0 swap)
Although - it seems my phone is working better now... Placebo?
cybic said:
Swapper Configuration? :-D Do you mean by any chance the app "Swapper"? Because I can't find any "swapper configuration" app anywhere...
Btw..: after enabling swap file with swapper I'm still unable to see any free swap memory within the terminal (free shows still 0 swap)
Although - it seems my phone is working better now... Placebo?
Click to expand...
Click to collapse
I am not the expert in these things. After installing swapper and enabling swap on the sd-card, my phone became very responsive. On clicking home button, main screen with widgets and icons appears instantly, no matter in which program or apps I am in. So I guess it did made the phone faster and responsive.
Sent from my ALCATEL_one_touch_918D using Tapatalk
To my mind it's placebo effect - I've tested it and can't find any proof of SWAP enabled!
rkjust4u said:
Root the phone & install "swapper configuration". It works for me.
Sent from my ALCATEL_one_touch_918D using Tapatalk
Click to expand...
Click to collapse
is swapper configuration working?? i would try this on my alcatel 918n.. thanks
swapper
can somebody update us on swap support for alcatel ot-918D/M/N? would be really nice if our RAM can be increase even a half of our total RAM..hehe..thanks..
Kernel with swap support
Kernel with swap support. Posts from #229 to #239.
Related
I installed a Swapper app and when I tried to see how much swap I got in Terminal Emulator, it returned "Permission denied".
Does it mean that Venue does not support Swapper?
I use SuperOneClick to root.
Thanks.
suntung said:
I installed a Swapper app and when I tried to see how much swap I got in Terminal Emulator, it returned "Permission denied".
Does it mean that Venue does not support Swapper?
I use SuperOneClick to root.
Thanks.
Click to expand...
Click to collapse
if you are using the swapper app then that maybe when it is not working you need to use the swapper 2 app as just swapper is ment to be used on phone with android 1.5 phones
also what are you puting into terminal to see your swap?
and the swapper2 app dose have an info part that tells you what your swap size is and how much is free
hope this info helps ^__^
yohshua said:
if you are using the swapper app then that maybe when it is not working you need to use the swapper 2 app as just swapper is ment to be used on phone with android 1.5 phones
also what are you puting into terminal to see your swap?
and the swapper2 app dose have an info part that tells you what your swap size is and how much is free
hope this info helps ^__^
Click to expand...
Click to collapse
Thanks for the information, I typed "free" into Terminal to see my swap.
Ok. I do not mean any offence to junghyun01.
However this is another method & the one that I personally use.
This requires: stock kernel & dual mode recovery (ClockWorkMod).
Some version of ClockWorkMod that come with custom kernels do not include the necessary options to format your sd-card.
To return to stock kernel on gingerbread or froyo, follow this guide:
http://forum.xda-developers.com/showpost.php?p=21238366&postcount=2
This is the easiest way to create sd-ext/2nd partition+swap partition on sdcard with our phones:
1: Backup all data from sdcard to computer *Important*.
2: Boot into ClockWorkMod by tapping touch-screen while on Sony Ericsson screen
WARNING: We will now delete all data on sdcard, that is why you made a backup.
3: Advanced => Partition SD Card => 512M or 1024M (depending how many apps you want to install & the size of your sdcard) => 0mb for swap size (or if using a custom kernel you can set a swap size of 128m) => Yes to format.
4:Power Off phone.
5:Remove sdcard and put into computer, put the files that you backed up to the computer back on the sdcard.
6:Insert sdcard back into phone and power on. Click thanks.
How to enable swap? Warning: This can & will shorten your sd-cards life. Read post #2!
(Swap will only work on a custom kernel!)
After flashing the rom of your choice, flash the add-on "x8EnableSwapPartition2.zip" in ClockWorkMod to enable swap or download ResetSwap from the market.
Credits:
junghyun01 go on give him a thanks for giving me the motivation to create this thread.
[email protected](me): Flashable add-on zip, guide, time, information. Click thanks!
x8EnableSwapPartition2.zip=Swappiness set at 40%.
x8EnableSwapPartition.zip=Swappiness set at Android default 60% or whatever % your rom developer has set it at.
More Information: (You don't really need to read this but if you are interested...)
Stock Kernel?? Oh man...
I personally think it is worth it for all users to flash back to stock kernel & dual mode recovery. Why? Just so they can partition their sd-card like this, as sd-ext will be formatted in Ext4.
Ext4=Best speed/reliability overall. Why would you still be using ext2/3???
Why only 128mb swap size?
Because it is wasteful to create a larger swap partition. It never gets used. I have never seen 128mb's of swap used on our phone & that is even with heavy games/apps running in the background. You are just making your sd-card size smaller for no benefit.
Why not just use Swapper2 from the market with a swap(.swp) file?
Swapper2 is notorious for slowing down your phone as it likes to auto-start all the time also a swap file will not be as fast as a swap partition.
Will SWAP shorten SD-card lifespan???
Yes it undoubtedly will. Will you be able to notice this in any way? Most probably not.
Using swap will cause intensive reading/writing in one region of the sd-card. All flash memory devices (including our NAND internal memory) have limited write cycles. Excessive reading/writing causes bad blocks on your sd-card. Some sd-cards have extremely poor write cycles, so they can & will burn out when using swap.
Some people believe it would take a full year or even longer of using swap to actually cause any noticeable effect on your sd-card. Even if it does cause bad blocks on you sd-card, when formatting your sd-card with most modern-day file systems, these blocks will be marked as bad blocks and they wont be used. This equals to an extremely slow decrease in total capacity of your sd-card (which will be close to unnoticeable) .
Having said all of that there has been reported cases where SD-Cards have burned out and stopped working almost directly after enabling swap. Coincidence? Who knows but...What you do & flash to your phone is your own decision & no one else is in any way responsible for what happens except you.
And another method if you need it:
http://forum.xda-developers.com/showthread.php?t=1445543
Or guide with pictures:
You can create an ext partition on your sdcard in windows by downloading the newest Easeus Partition Manager Here or at their Homepage.
After installing the program use the guide found here:
http://forum.xda-developers.com/showthread.php?p=10654666
I have tried this method and it works with Ext2 and Ext3.
I use alf kernel + Gdx 21
I already partition my sd card using mini tool partition wizard as follow
1. primary Fat32
2. primary Ext4
3. primary LinuxSwap
already flash the addon , but still no swap active when i check on terminal.
i see on your zip that it make swap on /dev/block/mmcblk0p3
but in mine there's only /dev/block/vold -> which is empty also
I don't know if my swap partition is load .
still there's /sys/dev/blok/179:3 which refer to mmcblk0p3
and on sys/block/mmcblk0
I'm not familiar with linux , so please give me a guide what to do.
thanks
aries77 said:
I use alf kernel + Gdx 21
I already partition my sd card using mini tool partition wizard as follow
1. primary Fat32
2. primary Ext4
3. primary LinuxSwap
already flash the addon , but still no swap active when i check on terminal.
i see on your zip that it make swap on /dev/block/mmcblk0p3
but in mine there's only /dev/block/vold -> which is empty also
I don't know if my swap partition is load .
still there's /sys/dev/blok/179:3 which refer to mmcblk0p3
and on sys/block/mmcblk0
I'm not familiar with linux , so please give me a guide what to do.
thanks
Click to expand...
Click to collapse
How to u check if swap is running or not?? Type wat code on terminal..
Sent from my E15i using xda premium
kakho55 said:
How to u check if swap is running or not?? Type wat code on terminal..
Sent from my E15i using xda premium
Click to expand...
Click to collapse
on terminal type --> free
export PATH=/data/local/bin:$PATH
$ export PATH=/data/local/bin:$PATH
$free
total used free shared buffers
Mem: 186704 183584 3120 0 132
-/+ buffers: 183452 3252
Swap: 33596 25304 8292
$
So it work or not? ?
Sent from my E15i using xda premium
kakho55 said:
export PATH=/data/local/bin:$PATH
$ export PATH=/data/local/bin:$PATH
$free
total used free shared buffers
Mem: 186704 183584 3120 0 132
-/+ buffers: 183452 3252
Swap: 33596 25304 8292
$
So it work or not? ?
Sent from my E15i using xda premium
Click to expand...
Click to collapse
Swap: 33596 25304 8292
yes it work..
ok, it works now.
Re-download and flash.
(You can delete old script in etc/init.d)
8xfan said:
Swap: 33596 25304 8292
yes it work..
Click to expand...
Click to collapse
but i cant see any different .... ram still around 28mb ...><
Sent from my E15i using xda premium
lrakkarl said:
ok, it works now.
Re-download and flash.
(You can delete old script in etc/init.d)
Click to expand...
Click to collapse
thanks, it works now
works.. thx.. ..
btw, can someone please explain why did SWAP shorten SD card lifespan??
kakho55 said:
but i cant see any different .... ram still around 28mb ...><
Sent from my E15i using xda premium
Click to expand...
Click to collapse
LOL i dont know..maybe OP can answer it
Thankyou,thats worked!
Just forget to disable compcache,but there no problem at all!
I have updated both post #1 & #2 with the information requested. Please give it a read.
@kakho55
Swap allows you to run more apps/processes at any one time. The android operating system will still use all of your real ram too.
What about the swapping coefficient, in the script is not defined. This number is showed in procent and defines the ratio of swap partition being used by the system.
One question,i using Reset Swap and everytime i reboot i need to go to app and activate swap again,thats normal?And if i flash the EnableSwap.zip?
gdeliana said:
What about the swapping coefficient, in the script is not defined. This number is showed in procent and defines the ratio of swap partition being used by the system.
Click to expand...
Click to collapse
Uploaded new add-on & modified first post to answer your question.
(if no value specified then Android default setting is 60%)
RodrigoOgasawara said:
One question,i using Reset Swap and everytime i reboot i need to go to app and activate swap again,thats normal?And if i flash the EnableSwap.zip?
Click to expand...
Click to collapse
Yes that is normal if using ResetSwap. This is because it never auto-starts by itself.
If you flash the add-on zip then swap will be auto enabled every boot.
hi.. new addon.is for ??
lrakkarl said:
Uploaded new add-on & modified first post to answer your question.
(if no value specified then Android default setting is 60%)
Yes that is normal if using ResetSwap. This is because it never auto-starts by itself.
If you flash the add-on zip then swap will be auto enabled every boot.
Click to expand...
Click to collapse
Thanks mate
I have created a 1 GB a2sd partition in CWM, works perfect! Every app is on sd-card. In the same menu in CWM there was an option to create a swap partition, so I created a 256 MB partition. After reboot I checked in terminal if swap worked. Typed "su" followed by "free", swap showed 0 0 0... But then I found an app in Google Play named "ResetSwap" where I can turn swap partition on/off. When I check in terminal it works great! The "problem" is that every time I reboot I have to manually turn swap on in ResetSwap. Is there a way to make the swap partition autostart after boot??
Thanks in advance!
Sent from my ST18i using xda premium
U need another kernel rather than the official one
Hi there
what u need is to flash a kernel support swap function which the official doesn' t.
swap needs kernel support to work.
AND flash unofficial kernel means U need get ur bootloader unlocked.
If that's what u don't want , then give up.
if not there are instructions on this forum, just follow it.
In my opinion, if u don't play huge game ,ray's 512 ram is just enough for daily surf and simply work.
Hi!
Thank you for answering. My bootloader is unlocked, I'm running Sirkay v.6 @ 1,6 Ghz. Rooted + supercharged. The stock Xperia Home is freezed in Titanium Backup, I only use Launcher Pro. I have got the swap partition to work, only it doesn't start automatically when boot. It has to be done manually. I want it to start automatically. But I have found that there's use for the swap. I have lots of apps that together eats a lot of ram. Generally I have about 50-60 MB of free ram and the system also uses about 120-150 MB of the swap partition! I know the SD-card isn't as fast as the ram, but I don't see any difference when using it. Its an Samsung 32 GB class 10. Before I created the swap partition I got lot of crashes from several apps, I guess it ran out of ram. Maybe some say its not because of low ram that makes them crash, its because Launcher Pro isn't built for ICS. But I'm using the phone all the time, lots of multitasking. Have to charge the battery at least 2 times every day. So I'm pretty sure the swap file is working great, I get no crashes with the swap enabled. But I do get them without, several times every day. But basically, I just wanted to know if its possible to autostart the swap-file.
Best regards!
Sent from my ST18i using xda premium
open notepad or creat newfile with xplorer, name it swapper or what you like. type this command
#/system/bin/sh
swapon /dev/block/mmcblock0p3
save it and put it to /etc/init.d chmod it 777
hope it work for u
It's actually swapon /dev/block/mmcblk0p3 not mmcblock0p3.
Hello all, as some of you know that there is a way that lets you increase your device's ram capacity, and that is by swap, well am here to give you simple and easy steps to enable swap on your device.I only tested this on few devices so don't complain if it didn't work.
I'am not responsible for any damage could happen, you are doing it at your own risk.
Prerequisites
1-An android phone (duhh )
2-Must be rooted.
3-Busybox xbin. (Read below)
4-Kernel Must Support Swap
Tested devices
-Galaxy Ace S5830
-Galaxy Ace S5830i
-Galaxy Ace 2
-Galaxy S4 (don't ask why!)
-Galaxy S4 mini
-Galaxy Ace Plus
-Sony Xperia Sola
Tested android versions
-2.3.x
-4.0.x
-4.1.x
-4.2.2
-4.3.0
-4.4.2 (got some problems)
-4.4.4 (got some problems)
kitkat users may find a problem that swap has a limit of 50 MB or 150 MB ( Caused by the new 4.4.x kernel Just Try It)
Installing busybox xbin
{If you are not sure what is this then just go to how to swap
And if swap didn't work the come back here and apply the steps}
1-Download busybox from playstore or buy the pro version
2-Run busybox
3-Wait for the loading
4-Then normal install or smart install in case you are in pro.
5-When done installing restart your phone
How to swap
1-Install simple root swap
2-Run it and give it root permission
3-Specify the size of swap file (how much MB you want to add as virtual ram) (big size needs more time)
4-Create swap file
5-Check enable at boot
6-Click on
7-Check if the swap worked
8-Enjoy...
reserved
I did every thing and nothing happened ?
I have xperia u with Experimental v12...
Sent from my Xperia U using XDA Premium 4 mobile app
Heads up! using swap on SD card may decrease your SD card's lifetime.
Can we damage our systems any how?Can I try this on a auto navi system with Android 4.0.3?
Thx
Sent from my iPhone using Tapatalk
Csi02 said:
Can we damage our systems any how?Can I try this on a auto navi system with Android 4.0.3?
Thx
Sent from my iPhone using Tapatalk
Click to expand...
Click to collapse
Since the swap file in made on the SD Card, No, it will not damage your system but there is a high chance it can affect the SD Card. If you have an SD Card, then yes you can try this on Auto Navi System with Android 4.0.3. Make sure to have a class 8 or greater SD Card to get maximum speed. Hope I Helped
Thx for your answer! I will try it after I buy another SD class! I hope that will make my unit a little smoother!
Sent from my iPhone using Tapatalk
It does NOT work on Galaxy Ace S5830i with this ROM and this kernel...
MorgenTee said:
It does NOT work on Galaxy Ace S5830i with this ROM and this kernel...
Click to expand...
Click to collapse
Can you find the swap file on your SD Card? If not then can you tell us exactly what happens when you choose to create swap?
mahithm said:
Can you find the swap file on your SD Card? If not then can you tell us exactly what happens when you choose to create swap?
Click to expand...
Click to collapse
The file is there, it has the size that I choose in "Simple Root Swap". I tried 200 MB and 100 MB.
The "Info" tab of "Simple Root Swap" tells me however:
Status Swap:
Total Swap: 0MB
Used Swap: 0MB
Free Swap: 0MB
When I open a terminal emulator "free" tells me 0 swap, "swapon -a" tells me that /etc/fstab does not exist...
MorgenTee said:
The file is there, it has the size that I choose in "Simple Root Swap". I tried 200 MB and 100 MB.
The "Info" tab of "Simple Root Swap" tells me however:
Status Swap:
Total Swap: 0MB
Used Swap: 0MB
Free Swap: 0MB
When I open a terminal emulator "free" tells me 0 swap, "swapon -a" tells me that /etc/fstab does not exist...
Click to expand...
Click to collapse
Did you press the On button below Auto Start? Once you create the Swap file using the Re/ Create button, tick the Auto Start box and press the On button below that. That should activate swap on SD Card. Now check Info to see your swap details or use "free" on Terminal. Do post the result. Hope I Helped
mahithm said:
Did you press the On button below Auto Start? Once you create the Swap file using the Re/ Create button, tick the Auto Start box and press the On button below that. That should activate swap on SD Card. Now check Info to see your swap details or use "free" on Terminal. Do post the result. Hope I Helped
Click to expand...
Click to collapse
I have done that already. After the creation of the swap file, I checked "Auto Start" and clicked "on". I also tried restarting the phone, but it didn't change anything.
MorgenTee said:
I have done that already. After the creation of the swap file, I checked "Auto Start" and clicked "on". I also tried restarting the phone, but it didn't change anything.
Click to expand...
Click to collapse
Did you install BusyBox? Creating and running swap requires certain binaries which may not be present in the rom by default. Do post the result.
mahithm said:
Did you install BusyBox? Creating and running swap requires certain binaries which may not be present in the rom by default. Do post the result.
Click to expand...
Click to collapse
Yes, I followed the instructions (see below) in the first post exactly.
Installing busybox xbin
{If you are not sure what is this then just go to how to swap
And if swap didnt work the come back here and apply the steps}
1-downlpad busybox from play store or buy th pro version
2-run busybox
3-wait for the loading
4-then normal install or smart install incase you are in pro.
5-when done installing restart your phone
How to swap
1-install simple root swap
2-run it and give it root permission
3-specify the size of swap file (how much mb you want to add as virtual ram) (big size needs more time)
4-create swap file
5-check enable at boot
6-click on
7-check if the swap worked
8-enjoy...
Click to expand...
Click to collapse
Is it possible that the kernel I am using is lacking swap capabilities and therefore, the app cannot make swap work?
MorgenTee said:
Yes, I followed the instructions (see below) in the first post exactly.
Is it possible that the kernel I am using is lacking swap capabilities and therefore, the app cannot make swap work?
Click to expand...
Click to collapse
Since you have followed all the instructions perfectly, it must be the kernel. Rafael's kernel does have swap support though.
mahithm said:
Since you have followed all the instructions perfectly, it must be the kernel. Rafael's kernel does have swap support though.
Click to expand...
Click to collapse
Thanks! Too bad that it won't work for my setup. I will consider trying the other kernel once I do have some more time on my hands.
This worked very well for me. Thanks OP! :good:
MorgenTee said:
The file is there, it has the size that I choose in "Simple Root Swap". I tried 200 MB and 100 MB.
The "Info" tab of "Simple Root Swap" tells me however:
Status Swap:
Total Swap: 0MB
Used Swap: 0MB
Free Swap: 0MB
When I open a terminal emulator "free" tells me 0 swap, "swapon -a" tells me that /etc/fstab does not exist...
Click to expand...
Click to collapse
Your kernel might not support swap...
M2M_RockS said:
I did every thing and nothing happened ?
I have xperia u with Experimental v12...
Sent from my Xperia U using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Check your kernel swap support...
Sorry for flooding... I hv a que. Can I use swap in rom TWRD 1.0
Sent from my GT-S5830i using xda app-developers app
Hi XDA, just want to ask if its posible to use CUST as a swap partition.
tried using mkswap but its not detecting the /cust
also whats the best way to mount it during boot since it seemd that its not showing in cat /proc/mnt
thanks
TECHROY23 said:
Hi XDA, just want to ask if its posible to use CUST as a swap partition.
tried using mkswap but its not detecting the /cust
also whats the best way to mount it during boot since it seemd that its not showing in cat /proc/mnt
thanks
Click to expand...
Click to collapse
Hello,
I am using a great app called RAMEXPANDER. You may have heard it. I am using Xiaomi redmi note 4 Snapdragon version which is 4gb ram I have extended 3gb more I have total 6600 Ram. I think a swap file will serve you better. Please check out the app its on Google play Store. First you will have to download another app which is MEMINFO This is a testing app to see if your device is compatible you know kernel etc. Once Meminfio app tests Ok you can buy RAMEXPANDER app. You can also custom set is and see it.
Best Wishes
I've tried using that app but it doesnt show the CUST partition.
is there a way on mounting it?
Btw why would you want more ram by swapping the cust partition? Yu already have more than enough and probably IF you need more ram(you wont trust me) your phone will lag. Also some roms will bug out (especially if using treble ones).
Only way to swap is from pc i think, you cant do much from the phone itself. From ubuntu based pc maybe you can wipe and remake your phones partition and change cust to linux swap? Risky
TECHROY23 said:
I've tried using that app but it doesnt show the CUST partition.
is there a way on mounting it?
Click to expand...
Click to collapse
Hello,
Thanks for replying.
Kindly see the screen shot it shows cust partition and mnt also which I think is to manually use it.
I am using redmi note 4 Snapdragon version miui 8.10.0 MCFMIDI.
Best Wishes