• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Swap on Velocity 0.4?

KuroTsubasa

Member
I recently got a class 6 sd card, and I was hoping to get swap up and running. I've got a 32mb swap partition set up, and I've been messing around with the Swapper 2 app, trying to get it to work.

Every time Swapper 2 tries to run the swapon or swapoff command, it returns an error of "Function not implemented". After some brief research (on linux in general, not specifically android), this seems to be a symptom of not having a swap enabled kernel.

The Velocity 0.4 release post says that it *is* in fact swap enabled. So I'm wondering why I'm having difficulty with it. Has anyone else gotten swap to work on Velocity 0.4? Any ideas or feedback is much appreciated. =/
 
I've been trying to get swap working on the Ally too and have the same problem. So far the problem seems to be the GNM Turbo4 kernel.

I installed Velocity 0.3, which doesn't come with it, and swap works fine. Swap even works with the non-kernel version of Turbo4. But when I used the script that came with Velocity 0.4 to disable Turbo4, Swapper 2 still said "function not implemented." The script probably just disables optimizations without altering the kernel.

The next step is to try flashing the stock kernel on top of Velocity 0.4 (and the non-kernel Turbo4 to at least get the JIT compiler in there). I'm foaming at the mouth for a kernel that allows overclocking and swap at the same time though, so I can smoothly play Dungeon Defenders on my cheap little phone lol.
 
Swap is disabled on my newer kernels. Just having swap turned on in kernel and not even used adds latency so I dropped it from the config.


Good to know. Is there any distinction then between setting the swap to 32 MB vs 0 MB when fornatting the ext partition (other then 32MB of disk space being wasted)?
 
Good to know. Is there any distinction then between setting the swap to 32 MB vs 0 MB when fornatting the ext partition (other then 32MB of disk space being wasted)?
Having it there doesn't affect performance, the system just ignores it

Swap is disabled on my newer kernels. Just having swap turned on in kernel and not even used adds latency so I dropped it from the config.
Thank you for the non-kernel version though, it makes a tremendous difference in performance. What was your last kernel to support swap? I'll switch to Turbo4 after I give up on Dungeon Defenders lol that was blazing fast.
 
Having it there doesn't affect performance, the system just ignores it


Thank you for the non-kernel version though, it makes a tremendous difference in performance. What was your last kernel to support swap? I'll switch to Turbo4 after I give up on Dungeon Defenders lol that was blazing fast.

The turbo line are the latest with swap enabled. If you would like to build one grab my latest kernel source from github and enable anon paging file systems under config and build it.
 
Back
Top Bottom