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

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
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
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:
Code:
busybox cat --help
 

magic.hand

Senior Member
Feb 8, 2012
380
86
0
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
 

mjuhari

Member
May 15, 2012
27
14
0
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:
Code:
busybox cat --help
My busybox version is v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary

Link to CrossBreeder MOD
 
  • Like
Reactions: hinxnz

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
Will flashing the ivicask's boot.img affect the multistage? And after I flashed the multiswap on my revelations this is what I got

Sent from my HTC Sensation Z710e using xda premium
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 :eek:
Code:
cat /proc/cpuinfo
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
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.
 
Last edited:

magic.hand

Senior Member
Feb 8, 2012
380
86
0
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.
Cool. Will keep an eye for the next update.

Sent from my HTC Sensation XE with Beats Audio Z715e
 

mjuhari

Member
May 15, 2012
27
14
0
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 :eek:
Code:
cat /proc/cpuinfo
Yes, swap feature is listed

Code:
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ 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|[email protected]:/ $ 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.


Code:
[email protected]:/ $ free -m
             total used free shared buffers
Mem: 572 539 33 0 8
-/+ buffers: 531 41
Swap: 164 45 119
[email protected]:/ $
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.
 

Brandals

Member
Feb 20, 2013
25
10
0
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
 

papikev

Senior Member
Jan 28, 2012
851
416
0
Ventura, Ca
@hinxnz: 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 @hinxnz 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.
 
  • Like
Reactions: hinxnz

rzr86

Senior Member
May 21, 2012
8,109
2,455
258
35
Nafpaktos
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
 
  • Like
Reactions: hinxnz

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
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
Personally I think 2.1 is faster than 3.1 and 3.2 in revelations...

Sent from my HTC Sensation Z710e using xda premium
Hopefully I found the reason why, will update with new version soon. I also adjusted the minfree and swappiness values lower.
@hinxnz: 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 @hinxnz 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.
Thanks for your feed back :) I will update soon. I think I found the reason for this possibly, I will lower swappiness value too.
 

magic.hand

Senior Member
Feb 8, 2012
380
86
0
@hinxnz

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
 
Last edited: