Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,628 Members 38,910 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] MultiSwap v1.1.0 [All in One] Prioritized Multiple Shared Swap

Tip us?
 
hinxnz
Old
(Last edited by hinxnz; Yesterday at 05:42 AM.)
#1  
hinxnz's Avatar
Senior Member - OP
Thanks Meter 1,070
Posts: 1,755
Join Date: Jul 2009
Drive [MOD] MultiSwap v1.1.0 [All in One] Prioritized Multiple Shared Swap

.

.

For Sense and CM10 based ROM's
.

...Compatible with ViperS Sense 5...

.


.
.

...Introduction...
.
  • I have made this MOD for you as the HTC Sensation's RAM is quite low for the modern ROM's we have and to better multitasking and caching.
    .
  • I also have found that the other swap modifications available don't work to mine and others satisfaction.
    .
  • This is not your ordinary swap mod, it includes tweaks to help performance and usage.
    .
  • This MOD is for you so this thread is open to your ideas, questions and anything else relating to swap so feel free to speak up and help others too.
    .
  • I also made this thread to not clutter ROM and Kernel threads with swap questions and answers.
.
I have had positive results using MultiSwap and so have others, I use it myself and find it great.


.


.

...About...

MultiSwap All in One v1.1.0

.
.
  • ViperS, Revelation and Sense based ROM's

    Version 2
  • This version will give you 112Mb of swap.
  • Consisting of 4 swap files in the cache partition.
  • Swappiness is set to 60 and has 1 priority set.
  • Great for light users.

    Version 3
  • This version will give you 288Mb of swap.
  • Consisting of 8 swap files, 4 in the cache partition and 4 in the misc partition.
  • Swappiness is set to 80 and has 2 priorities set.
  • Great for medium users.

    Version 4
  • This version will give you 400Mb of swap.
  • Consisting of 8 swap files, 2 in the system partition, 2 in the cache partition and 4 in the misc partition.
  • Swappiness is set to 100 and has 2 priorities set.
  • You need to have 110Mb of free space in system.
  • Great for heavy users.

    .
    .
    .
  • CyanogenMOD based ROM's

    Version 2
  • This version will give you 112Mb of swap.
  • Consisting of 4 swap files in the system partition.
  • Swappiness is set to 60 and has 1 priority set.
  • Great for light users.

    Version 3
  • This version will give you 288Mb of swap.
  • Consisting of 8 swap files, 4 in the system partition and 4 in the misc partition.
  • Swappiness is set to 80 and has 2 priorities set.
  • Great for medium users.

    Version 4
  • This version will give you 400Mb of swap.
  • Consisting of 8 swap files, 4 in the system partition and 4 in the misc partition.
  • Swappiness is set to 100 and has 2 priorities set.
  • You need to have 220Mb of free space in system.
  • Great for heavy users.

    Version 4L
  • This version will give you 512Mb of swap.
  • Consisting of 8 swap files, 4 in the system partition and 4 in the misc partition.
  • Swappiness is set to 100 and has 2 priorities set.
  • You need to have 336Mb of free space in system.
  • Great for very heavy users.

    .
    .

    Swappiness
  • Once you have installed MultiSwap you can choose a custom swappiness .
  • You can either select 10, 20, 30, 40, 50, 60, 70, 80, 90, 100.
  • You can also choose to set swappiness back to the MultiSwap default.
  • If you decide not to choose a custom swappiness the default one will be used depending on the version of MultiSwap you install.

    Out Of Memory Tweak
  • This option will tweak your minfree and adj values in your Sense or CyanogenMod ROM.
  • You also have the option to remove this tweak.

    Virtual Memory Tweak
  • This option will tweak some of your virtual memory values in your Sense or CyanogenMod ROM.
  • You also have the option to remove this tweak.

    System Information
  • This option will show you how much in total and free space you have in your device.
  • So if you are unsure of your free space, this option is handy to check before installing some versions.
  • Also shows you a few other details.

    MultiSwap Removal
  • This option will completely remove MultiSwap.
  • It removes everything related to MultiSwap, including all files and directories made.
  • A reboot is needed after choosing this option.
  • You don't need to use this option if you are changing versions or upgrading MultiSwap.

.

.

...Installation...

.
  • Just flash the MultiSwap All in One installer like you would flash a ROM in recovery. No need to wipe anything in recovery beforehand or afterwards. You can run the installer anytime and choose different options and combinations as many times as you want. No need to remove Multiswap if choosing another version, upgrading or changing options.

    .
    .
  • If your installing a version of MultiSwap that uses the system partition and need to acquire more space, an easy way to remove unwanted system apps, libs, wallpapers etc is with ROM Cleaner.

    - If your using ViperS v3.x, you can use the ViperS Sense 4+ Cleaner Script.

    - If you are using ViperS v5.x, you can use the ViperS Sense 5 Cleaner Script.

    - If you are using Revelation ROM, you can use the Revelation Cleaner Script.

    You can check your free space by entering the code below into Android Terminal Emulator or you can also check in the MultiSwap All in One installer.
    Code:
    df /system
    .
    .

    It is still recommended to make a nandroid backup in recovery prior to flashing as you would before flashing anything.

    You are responsible for what you flash. I take no responsibility for lost data or hardware failure but saying that MultiSwap is safe.

    .
    .
  • After flashing, restart device and let your device settle for 5 minutes. To check if MultiSwap is active, enter code below into Android Terminal Emulator and you should see 4 or 8 swap files depending on the version chosen.
    .
  • If you don't see the correct amount of swap files in terminal, see trouble shooting below.
Code:
cat /proc/swaps

.

.

...Troubleshooting...

  • Some Sense and CM based ROM's busybox don't support priorities for swap so upgrading busybox will solve your issue. Please install Stericson Busybox Installer from Play Store and update busybox using the Smart install option once installer has loaded up. Then reboot after upgrade. I prefer not to add busybox to MultiSwap as this way you will keep everything left compatible for ROM by just upgrading.
    .
  • When upgrading ROM, more than likely you will need to reflash MultiSwap unless on CM and you use the updater script included in CM. You may also need to update busybox again too.
    .
  • When upgrading MultiSwap, no need to remove any previous version as the updater script will take care of it for you.
    .
  • Experience lag after installing or upgrading, just reboot and should be fine after that.
    .
  • Having trouble with the JB Sense version, try the Sense based version.
    .
  • If the installation hangs, just remove the battery and reboot into recovery to repeat the process.
    .



.

...Changelog...
.

Always posted in thread on release.

.

.

...Credits...
...for ideas & helping in thread...


ganeshp | ashkan-khatar | mjuhari | LocotesKilla | rzr86

Many thanks to ahsan64 for helping with Aroma from amarullz

.

.

...Downloads...

.

MultiSwap All in One v1.0.0 -> http://db.tt/6qmdE9BY

MD5 : 35BB59F505BA51B4725408C2EFCAF7DD

MultiSwap All in One v1.0.1 -> http://db.tt/4VUDFSoz

MD5 : A32E3F860ADED2EBF1A451631D5D6B63

MultiSwap All in One v1.0.2 -> http://db.tt/k79k6Rgp

MD5 : B05E82F1C03C99747C816A5FAA04DE77

MultiSwap All in One v1.0.3 -> https://db.tt/8UytLxqz

MD5 :
D3B6E3C619D6E4C32872FD68A0CDFA41

MultiSwap All in One v1.1.0 -> https://db.tt/TItSYwxE

MD5 : 179E4DA5D547E1297C42B94E37E6D76E

.

.

If you like my MOD and want to show your appreciation just hit the thanks button in the
bottom left corner and rate my thread 5 stars in the top right corner.
Also I would like to thank you for using or trying my MOD


.


.
.
The Following 105 Users Say Thank You to hinxnz For This Useful Post: [ Click to Expand ]
 
derricancy
Old
#2  
Senior Member
Thanks Meter 65
Posts: 384
Join Date: Mar 2012
great work.... ..have this MOD installed in Vipers ROM... working well ...

Sent from my HTC Sensation XE with Beats Audio Z715e using xda premm
Sensation XE
Vipers
The Following 2 Users Say Thank You to derricancy For This Useful Post: [ Click to Expand ]
 
mjuhari
Old
#3  
Junior Member
Thanks Meter 14
Posts: 25
Join Date: May 2012
Thanks for your work,

I'm on Revelation 1.02, unfortunately the mod is not installed/running correctly on my phone.

I can see the multiswap init.d script on my phone, it's the only script I have in there

I can't see multiswap folder in my phone system and cache.

And the command cat /proc/swaps doesn't show any result.

I have services.jar and crossbreeder MODs installed as well



Sent from my HTC Sensation Z710e using xda app-developers app
 
Brandals
Old
#4  
Brandals's Avatar
Junior Member
Thanks Meter 10
Posts: 15
Join Date: Feb 2013
Thanks..work well in my revelation :thumbup:

revelation is revolution sensation xe
The Following User Says Thank You to Brandals For This Useful Post: [ Click to Expand ]
 
hinxnz
Old
#5  
hinxnz's Avatar
Senior Member - OP
Thanks Meter 1,070
Posts: 1,755
Join Date: Jul 2009
Quote:
Originally Posted by mjuhari View Post
Thanks for your work,

I'm on Revelation 1.02, unfortunately the mod is not installed/running correctly on my phone.

I can see the multiswap init.d script on my phone, it's the only script I have in there

I can't see multiswap folder in my phone system and cache.

And the command cat /proc/swaps doesn't show any result.

I have services.jar and crossbreeder MODs installed as well



Sent from my HTC Sensation Z710e using xda app-developers app
Sounds like init.d support isn't working correctly like a couple of others on Revelation, try this from the link below to see if it is working. If not maybe flashing ROM again without wiping may help. You need 110Mb free space on system and cache before flashing MultiSwap if you missed that.

http://forum.xda-developers.com/show...02&postcount=1
 
ninjasalad
Old
#6  
Senior Member
Thanks Meter 99
Posts: 232
Join Date: Dec 2009
How would this mod work in say an aosp ROM?

Sent from my HTC Sensation using xda app-developers app
The Following User Says Thank You to ninjasalad For This Useful Post: [ Click to Expand ]
 
ThatsABigOne
Old
#7  
Senior Member
Thanks Meter 45
Posts: 175
Join Date: Jan 2012
Location: Minsk
Quote:
Originally Posted by ninjasalad View Post
How would this mod work in say an aosp ROM?

Sent from my HTC Sensation using xda app-developers app
That would be great if this mod is made compatible with CM or AOKP...
 
farazejaz
Old
#8  
Member
Thanks Meter 10
Posts: 84
Join Date: May 2013
Location: lahore
flashed with revelation 1.0.2 and since then cant take photos phone restarts any suggessions ?
 
ashkan-khatar
Old
(Last edited by ashkan-khatar; 17th August 2013 at 07:10 PM.)
#9  
ashkan-khatar's Avatar
Senior Member
Thanks Meter 781
Posts: 2,192
Join Date: Dec 2012
Location: IRAN - Kordestan
Good job @hinxnz, I played with swap stuff and when nothing satisfied me, I decided to remove it and chill with minfree affairs... But the idea of dividing the swap files into four was astonishing!

Sent from my HTC Sensation XE with Beats Audio Z715e using xda app-developers app
The pretty "THANKS" button's waiting for U, in case I helped :P

HTC Sensation XE with Beats Audio [APPARENTLY]
BootLoader: HBoot 1.27 Revolutionary (!)
Recovery: 4EXT Touch
Kernel: Sultan R31 3.0.96 [CPU Max Frequency= 1512MHz - Governor = lagfree - 3D/2D GPU = 320/228MHz]
ROM: Sultan CM10.2 4.3 19/07
The Following 2 Users Say Thank You to ashkan-khatar For This Useful Post: [ Click to Expand ]
 
Sherlocks
Old
#10  
Sherlocks's Avatar
Senior Member
Thanks Meter 436
Posts: 582
Join Date: Feb 2012
Location: Seoul
Great. Your script dont have adj value.
Dont need to change adj?

Sent from my HTC Sensation Z710e using xda premium

▄︻═━┳── Sensation
+ Display - Sharp
+ Radio - 11.76C.3504.00P
+ Earphones- Bang & Olufsen A8
+ SDCard - Samsung 32GB Class 10
+ ROM - ViperS 5.2.1(A2SD)
+ Kernel - SebastianFM JB v1.0.4

▄︻═━┳── Laptop HP 430
+ Operation System - OS X Yosemite 10.10 Beta2

Tags
lags, low ram, multiswap, multitasking, swap
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes