yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] ViktorX:
On my ViperS v3.1.2 there's only 26M/118M free on cache, but system is OK 162M/787M. Is there anything I can do for cache (wipe cache and then install script in recovery)?
[HTC Sensation] ashkan-khatar:
:eek: 26MB?! even CMs have about 45MB (if I remember correctly). What have you done with it? Yeah try wiping cache and then see how much it has AFTER BOOTING UP.
[HTC Sensation] ganeshp:
Yeah for some reason I thought it's dual swap.. Even though title says quad swap (silly me)

And indeed it's interesting to see swaps of 50Mb each and having same priority

Btw I got a suggestion for you.. Having swap on system or data.. Kind of negates the number of apps you can have

Try to install swap on misc partition... (/vendor/firmware/misc)... It's where our radio resides.. And it's r/o.. I changed it to r/w and installed a 150 MB swap over there and it worked fine... (it got 170 MB free)

But reverted back as at 1.0.1 I felt like swap was unnecessary
[HTC Sensation] ashkan-khatar:
Wow i thought about other wheres on the phone, but didn't try misc... But reboot your phone and see if it is re-mounted or you have to change permissions again...
[HTC Sensation] ganeshp:
Well it stayed over reboot iirc.. And by init.d script I always remount the partition with r/w and then turn on the swap over it
[HTC Sensation] ViktorX:
After wipe 114M/118M. Will see if it builds up over some time, and if it doesn't will install script...
[HTC Sensation] hinxnz:
Yeah sounds like a very good idea, I have 178Mb free in /vendor/firmware/misc, we're pretty much on the same ROM. I wonder if CM has a similar size, by theory it should. I might move swap there and to another location too then, it will be more compatible with all ROM's and more ideal for everyone so space isn't needed to be gained to install. Seeing we aren't getting anymore updates from HTC and all we update is basically system and boot with custom ROM's it sounds logical to use such partitions.
[HTC Sensation] ashkan-khatar:
View attachment 2196537
[HTC Sensation] magic.hand:
Looks like ashkan-khatar already explored /vendor partition...

Maybe the script can be updated again to include /system, /cache and /vendor for more multi swap..

Sent from my HTC Sensation XE with Beats Audio Z715e
[HTC Sensation] ganeshp:
Is it sticking over reboot?
[HTC Sensation] hinxnz:
Looking into it right now :) will update as soon as I have tried a few things
[HTC Sensation] ashkan-khatar:
Yeah, I believe this is what makes it stick:

./busybox mount -o remount,rw /vendor/firmware/misc

I jist edited [MENTION=1909299]hinxnz[/MENTION]'s script.

[/COLOR]

Of course it can, and works... I removed system swap on purpose :)
[HTC Sensation] ganeshp:
Well some one needs to test the calls and reception.. To make sure radio is not getting effected.. After that [MENTION=1909299]hinxnz[/MENTION] can update this thread... :)
[HTC Sensation] ganeshp:
I'm getting only one swap image over misc partition I dont know why ..I'll try to sh it and see

After sh the swaps were created but couple of errors popped out

chown didn't work ..came with operation not permitted

Also it might be better to add some delay like sleep(5)
[HTC Sensation] hinxnz:
OP updated with new versions for all :) Enjoy.

Any suggestions are welcome.

Thanks for the idea of the other partition [MENTION=4546540]ganeshp[/MENTION], works well and makes installation so much easier for some and more compatible too for both Sense and CM users. Thanks for helping with this too [MENTION=5032148]ashkan-khatar[/MENTION]. Both you guys have been credited in OP :)
[HTC Sensation] ashkan-khatar:
You can replace your script with mine, and take a look at it, maybe you forgot a mkswap or a ch?

http://www.mediafire.com/view/?1n8ldbqq6d9cv1a

By the way, multitasking ability has astonishingly increased! :eek:

Have you guys tried yet? Psiphon, chrome, the heavy google search, xda, es explorer... :eek::eek: reeeeaally increased! Do try opening a lotta apps...!
[HTC Sensation] topjohnwu:
Little simple question, what have you changed from 2.1 to 3.1 ? This swap mod really make ViperS flying, thanks a lot!!
[HTC Sensation] hinxnz:
I'll look into it but getting late now so will tomorrow :) yeah adding a delay may help, all was fine here though. Did it work fine with a delay of 5 seconds? And did you flash the Zip or did you run the script from terminal? I always flash the Zip as I have to test it this way so I know it works for others and to test the updating script which removes the old Multiswap files when upgrading etc.

I just had a look too :) You have 7 files, does it affect performance compared to 4? I haven't experimented with more yet. Normally in Linux you can have maximum of 32 swap files :eek: it will probably be the same but unsure...

Good to hear, all that was changed was one of the partitions from /system to /vendor/firmware/misc partition. Thats why it went to version 3, much more suitable than system for Sense. I have explained it basically in OP :)
[HTC Sensation] www69:
No swap, After instal v3.0

My Rom's Cm 10.2 and init.d working :)

.:: sent from my Sensation XE with CM 10.2 ::.
[HTC Sensation] papikev:
Mine will show the same thing using the command cat /proc/swaps, however the swap was created. Check vendor/firmware/misc and you will see multiswap was created. Same in system as well. Check each one in terminal or adb with a df command. I am on Android 1-7 CM10.2 and the swap was created successfully.
[HTC Sensation] hinxnz:
See trouble shooting in OP about upgrading busybox.

Multitasking should be improved.

Version 4 is similar with larger swap files on system and cache, it has a larger byte size too which makes the difference between the two really and thanks :)

I could reduce the byte size if you think it is faster, I haven't had much feed back between the two so I left it as it is.

This mod should be compatible with ViperS v3.1.4 and Venom Sense 5 already :good:
[HTC Sensation] ahsan64:
So just release the v 1.0.2 :)
[HTC Sensation] WSZR:
What do you mean by that?
[HTC Sensation] McLongDong:
I knew something was different! :laugh:. When you say byte size, what are you referring to? Sorry, but can you tell me exactly the swap you used on v4.3.1 system, data, and cache? I just want to know for future reference. And yes, can you teeter with the byte size? I'll give you feedback.
[HTC Sensation] hinxnz:
Yeah sure I'm bringing out an update soon with reduced byte size an adding a few more tweaks with it too. Byte size is the amount of data swapped when it reads and writes. Version 4 for sense/vipers uses the cache, system and misc partitions.
[HTC Sensation] topjohnwu:
Really looking forward for the update!! I've been using your mod since day 1 and all I can say is perfection!! Nice, snappy and smooth :)
[HTC Sensation] hinxnz:
OP updated with a new version of MultiSwap, enjoy :)

- Compatible with ViperS Sense 5 and Sense 4+

- Byte size reduced for more speed

- A few errors fixed in some CM versions

- Added a few VM tweaks to the ViperS version

- Added optional VM tweaks for CM and sense versions

- Updated some OP information and tried make it easier for mobile app

.
[HTC Sensation] farazejaz:
below is the screen shot of free space on viper 3.1.4, and i think would need to remove atleast 19 MB using rom cleaner,

but is it possible just to use root exploer and remove unwanted apps manuaaly form sysrem /data/ apps

http://imageshack.com/i/5h39lop
[HTC Sensation] hinxnz:
Yes that's fine, use a root explorer and move the ones you don't want to your sd card incase you want to restore one. The system apps are found in /system/app/. You could also use an app like Titanium backup too.

Sent from my HTCSensation
[HTC Sensation] McLongDong:
One more thing hinxnz, what was the swappinness on v4.3.1?
[HTC Sensation] ziaulh.ch:
Its working well with sense 5 with 400 mb swap. No sense restart so far and browser can handle 3 heavy desktop sites. Lets see if its able to release memory because thats what was the problem wit turbo.

Will post. THanks for your work.
[HTC Sensation] hinxnz:
It was set to 100 :)

Sent from my HTCSensation
[HTC Sensation] anttaz:
this version same as previous only creates in cache partition for option 3 and none in misc partition?

using viper s 5.0.0
[HTC Sensation] hinxnz:
Working fine here, can you upload a screenshot of terminal after entering this code

df

Sent from my HTCSensation
[HTC Sensation] anttaz:
df does not bring up what you posted df brings up system running apps

just switched to turbo boost as this mod has never worked for me and has only ever created cache swap never a misc swap

I have always run my sensation with venom up to 3.1.4 and now 5.0.0

I would prefere to use your mod rather than turbo boost but it never works for me?
[HTC Sensation] hinxnz:
It gives you a list of partitions basically like in screenshot below

df

The swap files in my screenshot above enter

cat /proc/swaps

To list the contents of a folder such as MultiSwap in misc partition enter

ls /vendor/firmware/misc/multiswap/

To me it seems that the misc partition is not being mounted writable but I'm just guessing, not sure if swap files are created or not or if you have inadequate space. It could be that I need to put a delay on the files created.

Sent from my HTCSensation
[HTC Sensation] ashkan-khatar:
[MENTION=1909299]hinxnz[/MENTION] thanks for the update, works well. But I believe minfree values are REALLY aggressive. Multitasking ability significantly decreases after setting those values, and I think it is not at all good for social gamers. I suggest these:

2560,6400,15360,9933,17510,17510

SENT FROM WHATEVER IS NOT SOMETHING TO BE LOCKED AT, THE THING IS THAT IT IS SENT.
[HTC Sensation] topjohnwu:
Umm... I also think it's a bit too aggressive, maybe need little tweaking :)

Most times when I am listening to music and browsing through tapatalk, the music will be killed. But still thanks a lot for the mod :)
[HTC Sensation] hinxnz:
I might remove the minfree values from the ViperS version once I test different scenarios so stock minfree values are used instead which aren't so aggressive and if others want to use the existing minfree values they can apply the OOM tweak in the installer. I can't get music to be killed while on tapatalk or browser here but depends on what other background apps are running too with an higher priority and my data plan is too expensive to test social networking in a large game such as RR3.

Sent from my HTCSensation

Edit: I tested with stock minfree values and was able to induce lag with low RAM using a custom browser so I will leave as is for now. A different alternative is to install the sense version which doesn't have the OOM tweaks combined or manually change the init.d script to a preferred minfree or use an app such as Android tuner to change them.
[HTC Sensation] smint86:
Unfortunately I still couldn't get it to work properly with CM10.2 (by android1234567). It is the problem with all CM roms 8 iirc. At least for CM10.2 I can say that it never worked properly.

What I tried:

- using CM version v2 and v3

- using with and without OOM and virtual memory tweaks

- disabling uksm from the ROM itself

- using even more strict minfree values

The problem is always the same in the end, at some point the device will start to lag and become unusable, especially when using multiple memory intensive apps together (for example facebook, chrome browser and tweetcaster). Did anybody ever get it to work with CM10.2 properly? I think there still must be a culprit at some point.

Swyped via Tapatalk
[HTC Sensation] hinxnz:
Maybe v4 would suit your needs better otherwise have you tried another kernel?

Sent from my HTCSensation
[HTC Sensation] McLongDong:
Alright, so I've tested your new mod v1.0.2 and it's not bad but not great. Generally I check the amount of free RAM I have and I only have about ~130MB free, which is alright. On your previous mod (v4.2.1), it gave me around ~170MB. What do you think causes this?
[HTC Sensation] hinxnz:
On the same ROM with the same apps installed? If so flash the sense version and the OOM tweak without the VM tweak and see if that helps. I normally have between 200 - 150 and sometimes drops to 100Mb of free RAM with very heavy usage (browsing with heaps of tabs open) but not lower, as long as RAM doesn't drop too low as that causes lag.
[HTC Sensation] McLongDong:
Actually, with different apps installed but I can draw a conclusion. With my old ROM ViperS v3.1.3 with about 50 apps, I get ~180 most of the time. With a fresh install of ViperS 3.1.4 with no apps installedI get about ~140. Maybe it's my eyes but I get immediate lag with v1.0.2 after installation. :crying:

P.S. Tried v4.3.1, seems ok. On your new mod, is there an option to change swapiness? I remember back then there was a list of option or choice of default. Maybe my phone works best with 100 swappiness but it isn't available in aroma? Found it.

If you look at my attachment, this is the most free ram I can get when doing nothing ~130 with 100swappiness. I selected version 4 of ViperS Jellybean multiswap. Can you tell me your settings and how many apps you have?
[HTC Sensation] rzr86:
consider also that with wifi and mobile network enabled all the time are using resources if i am not wrong

in my case even without multiswap i have 270-290mb free ram(killing all apps)
[HTC Sensation] McLongDong:
Woah, can you show me? Call me skeptical but that's awesome. I'm trying to get between 150-200MB but i'm always below that.
[HTC Sensation] hinxnz:
I have 70 apk's in data/app at the moment, I use Mounts2SD with a 2Gb sd-ext though, Ext4 formatted.

I'm on ViperS v5 and using MultSwap v3 at the moment, I usually use v4 though. I leave swappiness at the default value of the script. I greenify a few apps such as maps, tapatalk, titanium backup etc but still have a quite a few custom background running apps.

If you need more free RAM and it dropping low enough to cause lag then you need to raise the minfree values higher. I just read, another user of ViperS v3.1.4 states that 3.1.4 has less free RAM than 3.1.3 with the same setup. In MultiSwap v1.0.2 the same OOM tweaks are used as previous version with a few VM adjustments.

Some of your new apps could be ones that run in the background too or wakeup regularly.

Sent from my HTCSensation
[HTC Sensation] rzr86:
yeap see here
[HTC Sensation] -Jonny-:
trying to understand swap

I only ever see about 40 MB being used in the swap. Is this normal? My swap is 242 MB, and I have 80% swapiness.

I notice that Sense on occasion closes down (ie, using Facebook and Internet combo) - shouldn't it be swapped out then back in?
[HTC Sensation] hinxnz:
Depends on your usage I can fill swap up with heavy browsing to about approximately 150Mb. Swap empties as like RAM does basically, when apps are closed or killed. I don't think Sense is being killed just pushed into swap as it needs to load back into RAM from swap which takes a second or so, when Sense gets killed you basically have a black screen just with the date showing if I remember correctly and takes roughly 5 seconds. When Sense is pushed into swap you still see Sense but without BlinkFeed/widgets and apps in draw until it loads back into RAM from swap. You may want to set swappiness to 100 and see how that goes for you. I am running v3 with default swappiness of 80.

Sent from my HTCSensation

Edit: You say that you have 242Mb of swap space, this means that something isn't right though.

If you enter code below into terminal, you should normally have 8 swap files on v3 and v4.

cat /proc/swaps
[HTC Sensation] -Jonny-:
Sorry typo. I have 8 swaps. 281MB

Sense comes up with background, then date and black folder boxes appear, then icons. Takes a good 5 seconds. Swap size is still <48MB used.

I will try increasing swappiness and see what results I get. Ta
[HTC Sensation] WSZR:
I have tried different versions and I do not see any difference in performance and occupancy of RAM.
[HTC Sensation] ziaulh.ch:
You gotta know how to tweak this properly. See here...http://xdaforums.com/showpost.php?p=47550892&postcount=7 Check with multitasking. And dont forget to kill apps when you feel its slowing down a little.
[HTC Sensation] WSZR:
I know. I have now 8,12,16,24,40,60, because at lower system slowed. A web browser is killing apps.

I do not play games but I use several applications at once.

Sorry for my english.
[HTC Sensation] McLongDong:
I figured it out! Greenify play service and you save an additional 30-40MB of RAM!!!!!

One more question:

What is your cpu max and min frequency along with screen off frequency?
[HTC Sensation] rzr86:
i was never able to greenify system apps and i don't know why:confused:

with xposed installer installed too
[HTC Sensation] hinxnz:
Good to hear and my max is 1728MHz (I'd say 99% of our devices can handle this) and the rest is controlled by PnP manager.

My 3D GPU max is at 320MHz too (some few devices play nicer with 300 though).

I have good battery performance, using Anker ofcourse :)

Sent from my HTCSensation
[HTC Sensation] hinxnz:
To greenify Google Play services open greenify, hit the + then your menu key and select show all, Google Play services will now be shown so you can greenify it :)

Sent from my HTCSensation

Edit: I actually forgot to greenify it beforehand so saving some more Mb's now :thumbup: thanks [MENTION=4287624]McLongDong[/MENTION]
[HTC Sensation] stillsober:
I'm a noob, what is the two tweaks supposed to do? Are we recommended to install for better performance? Should I install the tweaks or not? I installed the multi swap, checked in terminal that I had 8 swap files but don't notice a difference in performance. What am I supposed to see performance wise?
[HTC Sensation] WSZR:
Need Greenify Donate
[HTC Sensation] hinxnz:
If you choose the ViperS/Revelation version then the tweaks are already included. They help with RAM and help keep the ram from hitting a laggy threshold under usage. You should notice things like background services not restarting (sense as one of them), larger tasking such as heavy browsing or gaming, improved multitasking...

If you choose the Sense version it has the same options but without the tweaks which you can flash separately if you wish, all options can be removed. Test different combinations out if you like.

The CM version is without the tweaks too and which you can flash separately too. This version uses mainly the system partition as of how CM uses its partitions.

Sent from my HTCSensation
[HTC Sensation] stillsober:
This should be the effect of the multi swap right, not the tweak?

Or they all basically do different things that contribute to a faster phone? and I should defeinitely use all of them??
[HTC Sensation] rzr86:
i know that and i was able to greenify system apps(it was showing in the greenified list) but when i was closing greenify and reopening it system apps weren't showing anymore in the list

i had the donate version
[HTC Sensation] hinxnz:
Depends on the ROM your using but they all work to contribute.

Sent from my HTCSensation
[HTC Sensation] stillsober:
Hmmm i have 208mb free memory with nothing running on arhd 7.3 with multi swap but no tweak installed, and 190mb free with both tweaks installed and nthing running...
[HTC Sensation] sjknight413:
Not working on latest Miui here.

Running 'free' through terminal emulator tells me that no swaps are active.

Any way to fix it?

EDIT: updating busybox fixed it, but with the swap active my sensation is rendered absolutely unusable. chose cyanogen mod version 3 which should in theory work as there is plenty of system space and it absolutely crawls to a halt, it's so slow!
[HTC Sensation] hinxnz:
What kernel are you using?

It could be how the kernel manages swap, have you tried another?

Sent from my HTCSensation
[HTC Sensation] sjknight413:
Just used sultan kernel as that's what came with it.

surely if swap works though that's it? how can a kernel 'manage' swap differently?
[HTC Sensation] hinxnz:
The kernel managers the swap and there are different methods as far as I know. When I was using Sultan kernel I found that a few different types of swap acted differently than I normally experienced.

Sent from my HTCSensation
[HTC Sensation] stitch01:
I've installed this mod and used v4 on my sensation xe running vipers5 but everytime I run clash of clans my phone always restarts on loading screen. I removed the mod and CoC run fine.

What is the problem?
[HTC Sensation] hinxnz:
Try the standard sense version and see how that goes. Possibly the LMK values included in the viper version unless it's just a coincidence, I haven't experienced this.

Sent from my HTCSensation
[HTC Sensation] MiikO:
Which multiswap install on ViperS 5.0.0?

Wysłane z mojego HTCSensation za pomocą Tapatalk 2
[HTC Sensation] ashkan-khatar:
Whichever you like. Have a look at the OP. Try v4.

SENT FROM WHATEVER IS NOT SOMETHING TO BE LOCKED AT, THE THING IS THAT IT IS SENT.
[HTC Sensation] ichigo_kurosaki:
which is for ViperS5.0.0?

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

which of these if for Sense 5? i want the 400MB swap for my gaming.:)
[HTC Sensation] rzr86:
the 1.0.2 has 400mb swap(that's what i used)

but in any case it doesn't matter because you can choose from aroma installer for sense or aosp roms;)
[HTC Sensation] odnamra87:
Installation

Hello,

As I read the information on the 1st post, just wanna confirm several things before installing this mod.

1. it is said that I need to have at least 110 mb free space of system. Is it the same meaning between 'system' and 'cache'?In fact I only have 85 mb free space in system but 114 mb free space of cache.

2. do I need to make partition on sd card before installing this mod?

Sorry for this noob questions.

Appreciate any reply :)
[HTC Sensation] iphuang:
The /cache is not used by ROM. You don't have to worry about that partition. If you want to install v4, try to find the script to clean your ROM.

It will increase the free space in /system.

The swap is not installed on SD card. You do not need to modify your card. The above mentioned partitions located in NAND (phone).
[HTC Sensation] odnamra87:
I see...so I need to use this venom script ( i use viperS 3.1.4) and remove some system apps in order to fee up some memory, is that correct?
[HTC Sensation] odnamra87:
can you share your script?I am a bit confused to remove apps...just if u don't mind:o
[HTC Sensation] rzr86:
the point is i had never had the need for any script

when i flashed the rom i already had 160mb free space in system partition
[HTC Sensation] Pyromancer:
Should i use multiswap 1.0.2?

I already use Roehsoft ram expander. Is it worth it? Whats the difference?

https://play.google.com/store/apps/d...ander.de&hl=tr

I use it because on Asphalt 8 Tokyo map game freezes on ViperS 5.0 due to lack of ram
[HTC Sensation] nickez2001:
This looks interesting, but I'm failing with the flashing. I'm using latest twrp, but touch is not working when I'm going through the tutorial. Is there another way of flashing it?
[HTC Sensation] hinxnz:
I'm not sure why it isn't working with twrp, maybe incompatible with the aroma binary.

It works fine with 4ext recovery > PG58IMG.zip :)

Sent from my HTCSensation
[HTC Sensation] nickez2001:
Ended up doing it manually instead, following this guide: http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/. Except for the last step, you have to do an init.d script which executes swapon instead.
[HTC Sensation] Pyromancer:
Noob question: Does this mod only use internal resources? It doesnt swap with an sd card? Is v3 good enough? I dont want my already low phone storage to go lower..
[HTC Sensation] nlooooo:
Don't you think you should read the first post totally before you ask such a question?
[HTC Sensation] lovendsuicide:
No, it doesn't use your sd-card, only internal storage. I guess v3 should be more than enough for most users, unless you're a heavy gamer and multitask a lot...
[HTC Sensation] Pyromancer:
I did

[MENTION=4180409]lovendsuicide[/MENTION] thanks