yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] McLongDong:
Hello Hinz,

I recently installed your swap and I have a few comments.

First, it makes my phone faster so kudos. But, is it supposed to drain more battery? Before using your multiswap, I on had 93MB of free RAM. After installing yours (version 4), I had 192MB :D. Is this part of the reason why the battery is draining because it has to work hard to continually swap RAM to get to 192MB? Just wondering.

Second, I am using adblock and after installing your swap I don't have "enough space on the partition" (see attachment). Any fix on that?

Thanks
[HTC Sensation] rzr86:
type in terminal df /system

see how free space you have in system partition
[HTC Sensation] hinxnz:
Your system partition is too low on space like rzr86 said, adaway needs to update the host file stored on your system. Your free RAM is contributed by the size of swap, swappiness, LMK and VM values. You shouldn't notice a big drop in battery, actually swap can also save battery depending on your usage.
[HTC Sensation] m3mmo:
Can u make this thing work on android 4.4.4?I tried to install it but when I check swaps there is nothing created.:(

-Sent from HTC SENSATION using Tapatalk-
[HTC Sensation] rzr86:
did you check the busybox version?

or do you have busybox installed?
[HTC Sensation] m3mmo:
-Sent from HTC SENSATION using Tapatalk-
[HTC Sensation] rzr86:
it has been said that 1.22.1 breaks swap you have to use a lower version

try with 1.22.0
[HTC Sensation] ashkan-khatar:
7?!! :eek: I have 3 in misc and 2 in cache.

Plus, once [MENTION=4301380]axetilen[/MENTION] said that the more swap file quantity results in etter performance. And now I have come to the point. :) i believe it IS better.
[HTC Sensation] ashkan-khatar:
A general question, does swap maintain cached processes only?

Try to turn the swaps on manually in this way:

su

swapon /vendor/firmware/misc/multiswap/swap.img -p 0

And similar for other swap files.
[HTC Sensation] rzr86:
is it necessary to remove first turbo boost mod?
[HTC Sensation] ashkan-khatar:
Sure do it. You wanna have several swap mods? TB creates swap file in for example /cache/swap and takes (for example) 110MB of cache space and this mod creates in /cache/multiswap requesting to take more space. Is it available? Sure no.
[HTC Sensation] cutejerk420:
After installing this v3.1 I tried playing beach buggy and the game gets killed or fc by itself after few seconds of racing...why is that?
[HTC Sensation] teddybear3k:
Hi,

I thinks the swaps was created but i ont sée anything:

u0_a40@android:/ $ su

root@android:/ # cat /proc/swaps

cat /proc/swaps

Filename Type SizUsed Priority

root@android:/ # free -m

free -m

total used free shared buffers

Mem: 597096 582000 15096 0 43480

-/+ buffers: 538520 58576

Swap: 0 0 0

root@android:/ # df /system

df /system

Filesystem Size Used Free Blksize

/system 787.4M 520.5M 266.9M 4096

root@android:/ # df /cache

df /cache

Filesystem Size Used Free Blksize

/cache 118.1M 90.0M 28.1M 4096

root@android:/ # su

swapon /vendor/firmware/misc/multiswap/swap.img -p 0

su

root@android:/ # swapon /vendor/firmware/misc/multiswap/swap.img -p 0

unknown option -- p

BusyBox v1.21.1-jb bionic (2013-07-25 21:23 +0100) multi-call binary.

Usage: swapon [-a] [DEVICE]

Start swapping on DEVICE

-a Start swapping on all swap devices

1|root@android:/ # cat proc/swaps

cat proc/swaps

Filename Type SizUsed Priority

root@android:/ #

I use CM 10,2 sultan.

Envoyé depuis mon HTC Sensation avec Tapatalk
[HTC Sensation] ashkan-khatar:
Hi, you have something wrong. You don't have that much free space on cacge on CM ROMs.
[HTC Sensation] papikev:
Edit
[HTC Sensation] teddybear3k:
Ok, i don't have espace in cache. The Mod CM no use the cache :

"For CM based ROM's, 2 are installed on the system partition and 2 on the vendor/firmware/misc partition."

And,

"

For CM based ROM's

You do need 110Mb of free space in system partition. More than likely you will easily have this much free space but to check prior to flashing MultiSwap enter code below into Android Terminal Emulator."

The system partition have the necesary space. No need cache partition in the description.

Envoyé depuis mon HTC Sensation avec Tapatalk

---------- Post added at 01:37 AM ---------- Previous post was at 01:03 AM ----------

Before:

System: 410.7 Mo

Data: 62 Mo

After:

System: 520.7

Data: 175.2

The install is, i think, correct. The amount of system and data is changed but no possibility to check if swap is enable or not.

The free -m write :

"Swap: 0 0 0"

Ted

Envoyé depuis mon HTC Sensation avec Tapatalk​
[HTC Sensation] hinxnz:
Will look into it later today I need to download and install the ROM, it maybe related to the type of busybox you have or the kernel not supporting swap.

I don't think it is related but will look into it, if it happens only when installed. What ROM are you on and what version of MultiSwap did you use?

Edit: It maybe because swap isn't big enough I will be upgrading versions of MultiSwap later on :) I'm on ViperS 3.1.2 and beach buggy caused issues for me due to this, so hopefully the upgrade will fix your issue too :fingers-crossed:
[HTC Sensation] teddybear3k:
With the ROM of sultan (http://goo.im/devs/sultanxda/Pyramid_CM10.2) (Android1234567) the turbo swap work good but not work with kang ROM.

Envoyé depuis mon HTC Sensation avec Tapatalk
[HTC Sensation] papikev:
just some info if it helps. I am on CM10.2 Android 1-7 latest build. Installed your script for CM. Swap was created in vendor/firmware/misc and system. I check with cat /proc/swaps and shows nothing. I run it manually for each partition using:

swapon /vendor/firmware/misc/swap1.img for each swap created. Check with cat /proc/swaps and I see it is running. Reboot just to see if it sticks and it does not. I did notice that before I rebooted, my phone actually lagged. I will continue to play around with it and post results. Thanks for your work.
[HTC Sensation] hinxnz:
I'm a bit confused did you mean MultiSwap or Turbo Boost? And the kang ROM, did you mean the CM4.2 ROM by albinoman887?

Thanks for info, so it must be the priority command is not working and related to busybox. To fix this more than likely it needs to be replaced by another version, I will investigate later on today :)
[HTC Sensation] www69:
Success on Cm by modifying the script

.:: sent from my Sensation XE with CM 10.2 ::.
[HTC Sensation] mjuhari:
Thanks for the changes on the swap location.

I'm on Revelation 1.02

Latest Multiswap didn't work on mine, seems CrossBreeder MOD modified my busybox location so I have to modify your Init.d script.

I can see the swap files after modifying the busybox location, however they're not running automatically after restart.

I can activate the swaps manually for /vendor/firmware/misc/multiswap/swap1.img and both cache swaps, however always get this error whenever trying to activate the swap2.img in /vendor/firmware/misc/multiswap/

'Input/output error'

Do you have advise to get around that error and activate the swap2.img on my /vendor/firmware/misc/multiswap/ ?
[HTC Sensation] hinxnz:
This is because of the priorities set and your current busybox version not supporting it, I will add instructions in OP once I've tested later on.

Where is busybox located at after CrossBreeder MOD moves it? Are your other swap files in cache activated?
[HTC Sensation] mjuhari:
busybox is moved to /system/etc/CrossBreeder/

Yes, swap1.img in /vendor/firmware/misc/multiswap/, and swap1.img and swap2.img in /cache/multiswap/ are all activated and running
[HTC Sensation] www69:
Just added /xbin/swapon

And working good

.:: sent from my Sensation XE with CM 10.2 ::.
[HTC Sensation] hinxnz:
Can you navigate to /vendor/firmware/misc/multiswap/ with a root explorer and see if swap2.img is located in there?

Edit: What did you modify in script? thanks

Ok will have to install ROM to test so can modify script as it needs to work for all CM ROMs, do they all have the same priority?
[HTC Sensation] mjuhari:
Yes, I can see all the swap files in /vendor and /cache

I only replaced this line:

bb=$(find /system/ -name 'busybox')

with

bb=$(find /system/etc/CrossBreeder/ -name 'busybox')

There's no swap files created before the change, after making the above change I can see the swap files but they're not running.

I run them manually and successfully run the swap1.img in /vendor and both swaps (swap1.img and swap2.img) in /cache
[HTC Sensation] m3mmo:
Well,this is interesting.When I install busybox v1.20 and reboot,it stays on v1.20 as it should,but after that I install this multiswap,and when I reboot,busybox is back to v1.22 and of course,multiswap is still not working.Take a look at the pictures.

Its like this busybox is integrated into rom and cannot be manipulated.

-Sent from HTC SENSATION using Tapatalk-
[HTC Sensation] rzr86:
because multiswap installs also 1.22.1 that's why

do it in this order

install multiswap

install busybox 1.22.0

reboot

then check your swap again
[HTC Sensation] m3mmo:
You meen 1.20?I tried and its still the same :( no swaps created

-Sent from HTC SENSATION using Tapatalk-
[HTC Sensation] rzr86:
try it with 1.22.0

otherwise i think OP has to update multiswap for 4.4.4 roms
[HTC Sensation] m3mmo:
Tried everything.Still it is no go.I thing this has to be updated to work with android 4.4.4

-Sent from HTC SENSATION using Tapatalk-
[HTC Sensation] McLongDong:
So how can I resolve this?
[HTC Sensation] rzr86:
delete something from system partition that you don't need(such as an app)

or change the directory of hosts files from adaway
[HTC Sensation] hinxnz:
Yeah it won't work with 4.4 because some partitions are different, I'm not sure if flemmard's kernel even supports swap at this stage.
[HTC Sensation] sarayevo:
Hi buddy i have two sensations both with vipers 5.2.1 rom i flashed multiswap 1.0.3 on both i can see the partition in terminal emulator but both became very lagy i removed it now but did i miss any thing?
[HTC Sensation] hinxnz:
Hi, not sure but are all your swap files created and also settings maybe overwritten if using an app like Android tuner to edit anything like memory. Lowering your swappiness will use less swap until needed which could improve things on your side. Also you could try the sense version which is without the memory tweaks, they can also be flashed separately. Experiences can be different based on usage, configuration, ROM and user setup/apps etc.

Edit: You could also try MultiSwap Lite > http://xdaforums.com/showthread.php?t=2717352
[HTC Sensation] lykosha:
After MultiSwap installation on ViperS 3.1.4, the lock screen "Weather" flies. After deleting MultiSwap everything works normally.
[HTC Sensation] hinxnz:
OP updated with new version 1.1.0 :good:

- Works with updating Busybox

- Edited scripts for new changes and faster installation

- Updated removal code
[HTC Sensation] lykosha:
On ViperS 3.1.4 works super. Compared with the previous version MultiSwap. Application lock screen weather is not closed.
[HTC Sensation] magic.hand:
[MENTION=1909299]hinxnz[/MENTION], it seems this mod will not work with Carbon ROM.
[HTC Sensation] lutyjj:
It doesn't work with all CM11-based ROMs.
[HTC Sensation] v.konvict:
It works with cm roms from wats written on the first page.
[HTC Sensation] hinxnz:
Doesn't work with cm11 or other 4.4 ROMs yet because I haven't seen a 3.4 kernel that supports swap.
[HTC Sensation] magic.hand:
Thanks for time explaining.

I've run removal script accordingly.

I will keep an eye for future changes.

If I'm back using ViperS ROM, I'll definitely use this mod as usual.
[HTC Sensation] Hydro333D:
Thanks for the script .I am using 1.0.1 version 2 multiswap on 3.1.4 vipers, but using the code in emulator nothing found even after busybox installed.The script works for sure as i am checking my ram that is more and getting more from sec to second .Same happend on previous builds ao swaps also .emulator: nothing found
[HTC Sensation] Alcatraze:
Hello, using v3 and it's pretty good. But how swap affects battery? My vipers 3.1.4 seems to consume more battery than no swaps.

And, the swaps always take up about only 50mb memory usage while the other 200 mb swap is free , always like this...
[HTC Sensation] rzr86:
i think swap is working as it should be

probably you are not doing a heavy usage in your device

i am using a 400mb of swap and it has never filled up:)
[HTC Sensation] Alcatraze:
But a little laggy....anyway, it's even more laggy when no swap on vipers 3.1.4...Great work man !
[HTC Sensation] rzr86:
maybe you can try to change the value of the swappiness
[HTC Sensation] O_mardini:
tried this mod but the device came not stable not responding some time very slow any solution??

im using viper rom
[HTC Sensation] lykosha:
Good evening! I figured out what the problem MultiSwap with ViperS 3. The problem was in the last digit value adj. You have 16. Must be 15 max.

I improved just a bit, if you don't mind.

View attachment 3173847
[HTC Sensation] radhx:
Hi,

Tried this mod, free ram got boosted from 85-100 to 135-145MB.

But still have same persisting issue as before - Many of the apps keep on restarting in memory.

Tried all V2, V3, V4 (V4 started closing/Restarting app icons from status bar). Tried to increase/decrease swappiness.

But still same apps restarting issue persists.

Please advise.

Edit: I'm also using Mounts2SD.

Thanks & Regards.
[HTC Sensation] lykosha:
Try these.

View attachment 3213581

View attachment 3213582
[HTC Sensation] radhx:
Do I have to install both these mods? And if necessary, will I be able to uninstall the second mod Turbo_Swap.zip like the first one?

Hope it won't create any issues while uninstalling as it is installing init.d....

Thanks & Regards.
[HTC Sensation] lykosha:
Set either the first or second. However it is impossible!
[HTC Sensation] radhx:
Tried it, but still not luck.... Greenify, Dumpster, Media... keep on restarting in the background.

Will flashing the latest Liberty Kernel (Liberty-Sense-JB-Pyramid-3.zip) help in any way? If yes, how can I go about it?

Thanks & Regards.
[HTC Sensation] rzr86:
flash the kernel zip normally as a rom.zip

before flashing it :

make a nandroid backup just in case

enable smartflash from 4ext
[HTC Sensation] radhx:
Will give it a try and get back.

Thanks & Regards.
[HTC Sensation] hinxnz:
You could also try this MOD too.

http://xdaforums.com/showthread.php?t=2717352

It has swap and some minfree settings that may help.

Because our device has low RAM for todays specs. you need to limit background running apps to a minimal, especially when running a modern sense ROM.

Some apps that can also help:

Greenify - hibernates apps you don't need running until you use them.

AutoStarts - disables apps from starting up on boot and on other events.

Disable Service - disable services from apps that you don't need running.
[HTC Sensation] hinxnz:
Ok thanks I will have to install cross breeder to find a work around, I don't understand why this MOD and the reason for it to change the location. Maybe it installs another version of busybox as I'm on ViperS 3.1.2 which is basically the same in a way.

Can you post what version of busybox you have? Enter this code below into terminal emulator:

busybox cat --help
[HTC Sensation] cutejerk420:
Will flashing the ivicask's boot.img affect the multistage? And after I flashed the multiswap on my revelations this is what I got
[HTC Sensation] magic.hand:
I've been running on this multi swap for quite a while.

I noticed when swap is accumulating up to 140 Mb, phone starts to lag. For instance, I launched stock browser and opened 6 or more tabs, phone will freeze.

Sent from my HTC Sensation XE with Beats Audio Z715e
[HTC Sensation] mjuhari:
My busybox version is v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary

Link to CrossBreeder MOD
[HTC Sensation] hinxnz:
I haven't tried it yet but is swap still supported? Enter code below into terminal emulator and if it is, it should say swp under features. If it does just flash MultiSwap again.

Edit: whoops forgot code :o

cat /proc/cpuinfo

It's not because of swap files filling it is because of RAM getting to low as far as I know, I have adjusted minfree values again for the next version v3.2 and seems to be good :) I have also added another swap file which will give 275Mb of swap.

Edit: When doing what you described you will notice that RAM in HTC task manager in quick settings will drop under 90Mb which will start causing this.
[HTC Sensation] hinxnz:
Either ViperS has a different version of busybox or CrossBreeder installs another.
[HTC Sensation] magic.hand:
Cool. Will keep an eye for the next update.

Sent from my HTC Sensation XE with Beats Audio Z715e
[HTC Sensation] mjuhari:
Yes, swap feature is listed

u0_a216@android:/ $ export PATH=/data/local/bin:$PATH
u0_a216@android:/ $ busybox cat --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: cat [FILE]...

Concatenate FILEs and print them to stdout

1|u0_a216@android:/ $ cat /proc/cpuinfo
Processor : ARMv7 Processor rev 2 (v7l)
processor : 0
BogoMIPS : 13.53

processor : 1
BogoMIPS : 13.53

Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
CPU implementer : 0x51
CPU architecture: 7
CPU variant : 0x0
CPU part : 0x02d
CPU revision : 2

Hardware : pyramid
Revision : 0080
Serial : 0000000000000000

Using 45MB out of 164MB at the moment.

u0_a216@android:/ $ free -m
total used free shared buffers
Mem: 572 539 33 0 8
-/+ buffers: 531 41
Swap: 164 45 119
u0_a216@android:/ $

I'm just curios on why am I getting the error when trying to manually activating the swap2.img in /vendor while everything else seems fine.

Thanks for your help man, don't worry about it too much.
[HTC Sensation] www69:
They do not have the same priority

.:: sent from my Sensation XE with CM 10.2 ::.
[HTC Sensation] ashkan-khatar:
Guys forget about misc swap, it causes issue with latest 11.29A radio on WCDMA network as I have found out...
[HTC Sensation] ganeshp:
and what issue it caused ? Im just curious ..I havent had any issues as of yet
[HTC Sensation] hinxnz:
OP updated with new versions for all :)

Now using 5 swap files, giving us 275Mb of swap. Raised LMK minfree values in Sense JB version.

Check out trouble shooting for people using some CM based ROM's and others not having success previously.
[HTC Sensation] ashkan-khatar:
Judged early, it was my network...
[HTC Sensation] Brandals:
Flash v.3.2 htc sense stop working,and reboot same like v.3.1 get back to v.2.1 and everything work fine..or i do something wrong?

revelation is revolution sensation xe
[HTC Sensation] papikev:
[MENTION=1909299]hinxnz[/MENTION]: A little feedback on your CM 3.1 version. Here is what I did and the results:

- Updated busybox

- Used your script remover to remove prior version (even though it wasn't needed, makes me feel better:D)

- Wiped nothing and flashed 3.1 and let it settle for about 5 or so minutes.

- Script was successfully installed

- Checked in terminal and seemed to be running

- There is enough space in system.

However, I noticed a significant lag in opening apps, clearly different from before I flashed the mod. Gave it some time and continued to check responsiveness, yet it lagged quite a bit. I had to uninstall it. If at least one or two other CM10.2 users who have ran this script can confirm whether or not this is a legit issue so it can make [MENTION=1909299]hinxnz[/MENTION] feel better about looking into the issue, would be appreciated. This is a similar result when I manually started the script on 3.0. Just wanted to give some feedback, thanks man.
[HTC Sensation] cutejerk420:
Personally I think 2.1 is faster than 3.1 and 3.2 in revelations...
[HTC Sensation] www69:
flash v3.1 and Working good

.:: sent from my Sensation XE with CM 10.2 ::.
[HTC Sensation] rzr86:
i just flashed version 3.2 and works fine

now lets see how it goes

i am not sure if i will see any difference because i am not a heavy user hehe

good work hinxnz
[HTC Sensation] hinxnz:
Hopefully I found the reason why, will update with new version soon. I also adjusted the minfree and swappiness values lower.

Thanks for your feed back :) I will update soon. I think I found the reason for this possibly, I will lower swappiness value too.
[HTC Sensation] magic.hand:
[MENTION=1909299]hinxnz[/MENTION]

I'm installing this alongside with hardswap. How can I change the priority of hardswap to 0?

Edit: Removed HardSwap and now running v3.2 but seems this version introduces more lag. Will observe few more hours anyway.

Sent from my HTC Sensation XE with Beats Audio Z715e
[HTC Sensation] hinxnz:
Open the init.d script 991swap, and on line 31 it says

swapon $swap_partition >>$logfile_location/swap.0.log;

and replace it with

swapon -p 0 $swap_partition >>$logfile_location/swap.0.log;

I'm not sure if it will be successful but you could try and not sure how it will act too as for different read/write speeds etc. To set the swappiness to 100 like he has in his script, just edit mine otherwise leave it as is.
[HTC Sensation] hinxnz:
OP updated again :D New versions for all, enjoy :)

- Fixed script to recreate swap files in /vendor/firmware/misc partition on reboot in all versions

- Adjusted minfree values for v3.3

- Lowered swappiness values in all versions to 80

- Fixed removal package to remove swap files made in /vendor/firmware/misc partition
[HTC Sensation] vlaf:
For me, the best version is 2.1, I don't no why, but this is my feelings.
[HTC Sensation] hinxnz:
It must be because of the partition I'm using now but I'm going to upload another version very soon which should speed up swap.

Hopefully it will be quick like 2.1 as there have been a few people saying that. Thanks for feedback :)
[HTC Sensation] hinxnz:
Guess what?... OP updated again with new versions :D

- Reduce byte size for faster read/writes of swap for all versions

- Adjusted minfree slightly again for JB Sense version
[HTC Sensation] rzr86:
i can't catch you mate:good:
[HTC Sensation] magic.hand:
That's fast for an update. Haven't finished testing previous version.

Installed new version anyway. Feel slightly lighter.

One question, will there be any problem integrating CrossBreeder alongside? I read few post back, there might be BusyBox problem.

Sent from my HTC Sensation XE with Beats Audio Z715e
[HTC Sensation] hinxnz:
Yeah it was a fast update but I thought of what I added not long after I uploaded previous version :D I left both versions though as latest version will have a lot more write cycles but it will be faster and more responsive besides this. I'm not sure if anything else can be done to improve it further now but who knows there could be :) I haven't got it working with CrossBreeder yet, it installs it's own busybox which interferes. I gave up on it at the time but will try again in a day or so.
[HTC Sensation] magic.hand:
Awesome. Will keep testing again while waiting for your next update.

Sent from my HTC Sensation XE with Beats Audio Z715e
[HTC Sensation] mjuhari:
Hi man, thank you for your hardwork.

Just want to give feedback to your awsum MOD,

Installing v3.4 of your MOD to my Revelation 1.02 and it's not running on my phone, couldn't see any swap created. CrossBreeder is running well.

Upgraded my busybox to latest version, installed it to /system/xbin/

Then restarted, same result.

Changed one line of your swap init.d script from

bb=$(find /system/ -name 'busybox')

To

bb=$(find /system/xbin/ -name 'busybox')

And I can see your MOD is now running, all swap created and running, and I can also see my CrossBreeder is also running on my phone.

Thanks again.
[HTC Sensation] cwk_and:
I experieced crash after i have flashed the latest version of multiswap :rolleyes:

And it keep reboot when all apps was loaded.

But luckily the crash no longer exist after i reflash the whole ROM(viperS)
[HTC Sensation] magic.hand:
Yeap..that did the trick.

Sent from my HTC Sensation XE with Beats Audio Z715e