yashsingh1/xdaforums huggingface dataset:
[Magisk] Dreamer(3MF):
Check The Following Points About RAM, LMK & Swap:

- Android RAM Management Depends On 2 Important Factors Which Are Swap (Swap Space) & LMK (Low Memory Killer)

- Swap Is A Virtual Memory Which Allows Physical Memory RAM To Be Extended Using A Portion Of Internal Storage Where Android Moves Inactive Processes/Apps Into Virtual Memory To Make Space For New/Active Ones

- The Functionality Of This Module Is Swap (Total) Size To Be 0 For Improving Responsiveness/Performance [It Can Be Checked Either By Downloading

RAM Truth

From PlayStore Or Using The Command Of

cat /proc/meminfo

From Terminal Emulator]

- LMK Is A Utility For Handling Low Memory Cases (Out Of Memory) To Kill Processes/Apps Using Complex Algorithm

- The Default Values Of LMK Settings Are Proportional To RAM Size

- The Effect Of LMK For Killing Processes/Apps Is Less Aggressive For High RAM Size But More Aggressive For Low RAM Size

- Use The Module For Any Device With 2 GB Of RAM Or More For Getting Better Performance/Effect

- You Can Try Also Tweaking The Values Of LMK Settings To Be Less Aggressive Using Kernel Adiutor For Low RAM Size/Unacceptable Effect
[Magisk] Nerva:
Do you mean, "Kernel Adiutor"?
[Magisk] Dreamer(3MF):
Yes, And You Can Download It From PlayStore.
[Magisk] Jordan~Kurniawan:
Thanks I'm gonna try doing that
[Magisk] Bharadwaz:
can i use this in miui10 redmi note 5 pro
[Magisk] Dreamer(3MF):
It Should Work So Try The Modified Module From This Post https://xdaforums.com/apps/magisk/module-swap-torpedo-run-faster-reliably-t3766883/post78039462 Or https://xdaforums.com/apps/magisk/module-swap-torpedo-run-faster-reliably-t3766883/post78081697.
[Magisk] appman1234:
Tried Swap_Torpedo-v1.2-rc(Unity)(3MF).zip and is working for Mi Pad 4.

Thanks a lot :)
[Magisk] TPSC:
Hello, I can't run this module. Can you tell me how to fix it and set amount of swap? Thanks
[Magisk] slave200701:
It works on Xiaomi MI 8 thank you!

RAM Truth [ 6 GB ]

Reserved: 508,54 MB

User: 5635,46 MB

Active: 3053,34 MB

Available: 2582,13 MB

Hibernating: 2512,34 MB

Idle: 69,79 MB

Swap (total): 0,00 MB

Used (none): 0,00 MB

Device Info:

Android: 8.1.0

Device: dipper

Model: MI 8

Maker: Xiaomi

RAM Truth: v1.4

Press/touch this row to copy screen info to the clipboard.

Press/touch a component row for component definition or Device Info row to refresh display.

Gesendet von meinem MI 8 mit Tapatalk
[Magisk] Dreamer(3MF):
The Functionality Of This Module Is Swap (Total) Size To Be 0 For Improving Responsiveness/Performance [It Can Be Checked Either By Downloading

RAM Truth

From PlayStore Or Using The Command Of

cat /proc/meminfo

From Terminal Emulator].
[Magisk] TPSC:
Sorry I forgot to upload screenshot, module doesn't work and I dunno why. I'm thinking about 1GB of swap, is this possible?
[Magisk] Dreamer(3MF):
It Works Perfectly As I Told You Before The Functionality Of This Module Is Swap (Total) Size To Be 0.

Check Also This Post.
[Magisk] sh0w 0f:
Hi Can I know what is the latest version of this module and the link to download the module thanks in advance :)
[Magisk] Dreamer(3MF):
Try The Modified Module From This Post https://xdaforums.com/apps/magisk/module-swap-torpedo-run-faster-reliably-t3766883/post78039462 Or https://xdaforums.com/apps/magisk/module-swap-torpedo-run-faster-reliably-t3766883/post78081697.
[Magisk] sh0w 0f:
Thank you :) will try this now
[Magisk] iZLeeP:
The module at the OP worked for me. But after checking meminfo recently, it's not applying the tweak so swap is enabled. Tried the 2 modules above and no effect as well. I'm on stock Android 6.0, and the only modifications it has are Magisk + modules.
[Magisk] Dreamer(3MF):
Do The Next Steps:

- Download ClearDalvikCache4Magisk From This Thread https://xdaforums.com/apps/magisk/module-dalvik-cache-t3787264 & Flash It Thru Magisk Manager Then Reboot

- Which Magisk Version Do You Use?

- What About The Flashed Rom & Kernel?

- Magisk Manager --> Send Its Screenshot

- Magisk Manager --> Modules --> Send Its Screenshots

- Magisk Manager --> SuperUser --> Send Its Screenshots

- Send The Screenshots Of "cat /proc/meminfo" & Ram Truth
[Magisk] iZLeeP:
For testing purposes, which of the modules should I use?
[Magisk] Dreamer(3MF):
Disable All Modules Except

Swap Torpedo

&

ClearDalvikCache4Magisk

From Magisk Manager Then Reboot & Check Ram Truth.
[Magisk] iZLeeP:
Thanks for the tip. Found the culprit, Viper4Android FX. Installing it as a system app as "recommended" during the setup process breaks the functionality of Swap Torpedo.
[Magisk] insestito:
I think Its not working on my exynos S8
[Magisk] Didgeridoohan:
You see where it says that "Swap (total)" is zero? That means it's working.
[Magisk] hoang_dang2809:
Help :(

Hi, i just install Swap_Torpedo-v1.2-rc(Unity)(3MF).zip via TWRP recovery, now i want to uninstall it, please help, i cant find any uninstall file :(
[Magisk] Dreamer(3MF):
For Removing The Module (Unity), Reflash It Thru TWRP Recovery.
[Magisk] Dreamer(3MF):
Download

MultiFunctions

To Do The Following Functions [Clearing DalvikCache-PlayStoreWithServices-MagiskHideList, Changing The SELinux Mode, Booting The Android Into Safe Mode, Opening Magisk In Core Only Mode, Controlling The Virtual Memory (Swap) & Changing The Swappiness Value] From This Thread https://xdaforums.com/apps/magisk/module-multifunctions-bootloop-t3933386.
[Magisk] Bintang Krisna:
what if im already at 0 MB Swap before using this module?

im using Oneplus 3 on Oxygen OS 5.0.6
[Magisk] DanGLES3:
If your swap is already 0,you don't need this module
[Magisk] Bintang Krisna:
so even if i install the module,it doesnt have any effect?
[Magisk] DanGLES3:
If you have no swap then this module does nothing
[Magisk] jrobbom5:
I installed this module yesterday on my old Samsung Galaxy Note Edge (Same as Note 4) and so far so good, the difference is huge. This phone is over 4 years old now, and this module has made it feel like a brand new phone. Early days yet of course, only had it on for a day, will report back if my assessment changes for some reason, but loving it so far. Thanks !
[Magisk] sautzer:
** Dump question, sorry **
[Magisk] Bintang Krisna:
So the point of this module is to remove/delete the Zram that exist on our devices right?
[Magisk] bggold:
Yes it actually disables it on boot. Much faster than using the option in a custom kernel. Also good for those running stock and compatible with more devices. In a nutshell.
[Magisk] Bintang Krisna:
Thank you

I will observe how multitasking perform after removing the Zram and report back
[Magisk] ond96:
To use this module, i only need to enable the module? Or something with the terminal?
[Magisk] bggold:
Just the module does it.
[Magisk] denzel09:
I have installed this module, but when i see values in kernel audiutor i.e the zram is still activated. How fix this? Tried on 2 different phones.

Checked in ram truth and seems working but for KErnel Audiutor seems not, weird ...
[Magisk] DB126:
KA behaves erratically on some devices in my experience. If ram truth says all is well then Swap Torpedo has likely done its job.
[Magisk] CityHunter004:
Anyone tried this module on 6p?
[Magisk] madbat99:
You can test it yourself. It doesn't change anything permanently, it's a magisk module. If you don't like the results, just remove it.
[Magisk] joe170:
wow...feels like using a bunch of booster tweaks , very2 smooth n fast .

only first 5 minute i've had random fc when open apk...after that it start working flawlessly...very good job dev, thx a lot :laugh::svetius:
[Magisk] DB126:
Leave zram enabled, set swappiness to 10; get same responsiveness benefits without occational FCs and other side effects. Best of both worlds. :)
[Magisk] hackiee:
how to tweak that bro, by kernel adiutor ?

:confused:
[Magisk] DB126:
Yes (any kernel manager), apps2sd app, etc.
[Magisk] FossyBerlin:
No work on RR 7.0
[Magisk] Nimueh:
Any chance to get this updated to work on the new Magisk [MENTION=2682748]EarlyMon[/MENTION]? Otherwise it will stop working on May 1st and get removed from the repo :crying:

Source: https://twitter.com/topjohnwu/status/1115457115173289984
[Magisk] appman1234:
Thanks! v18000 version is working for Magisk v19.0 as well.
[Magisk] zoel.fahmi:
After flashing this module

I'm not sure, but I'm using custom kernel.
[Magisk] Neejay:
Ah, no wonder I couldn't get it to work, after trying everything mentioned, versions and commands.

The problem with that is, if you're not in the correct partition, the phone might not boot. You can switch partitions, but then sometimes you get in bootloops, frozen twrps, etc etc. Becomes a real pain and gets messy.

Thanks anyway!

EDIT: Not that you'd want to do this, but a flashable twrp zip that makes the mod to both partitions (like how twrp itself flashes) might work.
[Magisk] Telperion:
AVB / verity prevents me from mounting /system rw. In any event I can run swapoff immediately after boot and it's disabled instantly, so that will likely be my method going forward. Unless someone can come up with a better way of automating it.
[Magisk] Neejay:
Yeah, that's the way I was gonna go as well.
[Magisk] EarlyMon:
Does putting the command into a simulated init.d script in Kernel Adiutor work?

Check out "Kernel Adiutor (ROOT)"

https://play.google.com/store/apps/details?id=com.grarak.kerneladiutor
[Magisk] Telperion:
On reboot, the entry I placed in the simulated init.d was gone, and swap still existed.
[Magisk] EarlyMon:
Has to be boot timing and I've done everything I can do in a module.

Try the Kernel Adiutor solution I suggested above and here is the command you want to try -

/system/bin/swapoff /dev/block/zram0
[Magisk] EarlyMon:
Wt... :confused:

Required dumb question, forgive me - and you turned on the switch for the emulated init.d?

Do you have an init.d folder in /system/etc or /system/etc/init or where your dot-rc files live?
[Magisk] Telperion:
Yep, switch was on.
[Magisk] EarlyMon:
Ok.

I think I remember reading that Magisk will bail out on a post-fs-data data process whose timing it isn't satisfied with.

If true that could be the cause of the failure - and I could probably fix that by putting swapoff in the background.

By the time post-fs-data is true, the system is booted the filesystems (including data) are available - so, famous last words, that ought to work.

I'll look into that and get back to you today.

Thanks for working with me on this!
[Magisk] EarlyMon:
Here's a REALLY RAW test copy that puts it in the background -

(redacted)

Let me know if you want to try it out or wait for something cleaner.

Just thought I'd give you something to try while I was looking into it.

PS - this may take a few minutes to complete in the background, I don't know what to expect with your configuration.

Others with the Swap Torpedo working normally do NOT want to try this. Seriously.
[Magisk] tsnm:
Only prerelease 2 is working on my Redmi Note 3 (kenzo). Prerelease 5 show me more than 0 in Swap on RAM Truth.

Can you reupload it?
[Magisk] yyz71:
Pixel 2
[Magisk] EarlyMon:
I may revert to it for distribution. I'm out testing another phone at the moment, will reupload it in just a bit.

Pixels are a known problem now.
[Magisk] EarlyMon:
I'll post a debug version later so we can see what we can do about that. :)
[Magisk] Telperion:
No effect -- I waited about 10-15 minutes after boot and swap wasn't disabled.
[Magisk] EarlyMon:
First post. ;) :)
[Magisk] EarlyMon:
Yep, it was a raw hack just in case. Thanks for trying it, I'll get back to seeing what I can do.
[Magisk] Telperion:
No rush, I'm good without it if you'd rather spend your time in other areas :svetius:
[Magisk] Luinwethion:
Working on my mate 10 pro, definitely going to try it out, not that the mate feels slow, but hell, if the phone has 6GB of ram, using swap is totally unnecessary I guess.
[Magisk] ooonea:
What are the changes compared to the original version?
[Magisk] Ubimo:
I cannot find SwapTorpedo in MagiskManager downloads any more. :confused:

Samsung S7 edge stock ROM, Magisk 19.2
[Magisk] crok.bic:
The module hasn't been upgraded to the latest template - as the Magisk project owner asked - so on 1st May every module that does not use the latest template has been removed. If you download the zip from #1 and install it manually it still works btw.
[Magisk] jcmm11:
Try this (new template). Or just turn off zram using a kernel manager. Or see https://xdaforums.com/apps/magisk/module-swap-torpedo-run-faster-reliably-t3766883/post78820221
[Magisk] deloj:
I'm running ElementalX and I disabled zram. DO I still need your app in my case?
[Magisk] 73sydney:
Nope, the answer is actually in your question
[Magisk] MrPhilo:
This doesn't work on OnePlus 7 Pro, I still have SWAP and ZRAM enabled.
[Magisk] Dreamer(3MF):
Check This Post https://xdaforums.com/apps/magisk/module-swap-torpedo-run-faster-reliably-t3766883/post79159243.
[Magisk] LOLisLIFE:
Can I use this module along with RAM Management Fixes or RAM Booster by The_Tweaker?

Thanks.
[Magisk] crok.bic:
Yes, yes you can.
[Magisk] cridus:
Wait a sec, I've just installed the module "zRAM/SWAP Manager", and I've enabled zRAM with it. Was it the right thing to do? >_>

Here's a screenshot of my ram status:

https://i.imgur.com/m3zIVJw.png

Does SWAP Torpedo simply disable zRAM? Then I guess I can use that module instead.

Edit: ok so, I tried disabling zRAM with that other module and it didn't seem to work. Then I installed SWAP Torpedo, it's been a few minutes and the phone is still using swap and zRAM... What else can I try?
[Magisk] dlads:
Do you know it it's possible to remove the swap file without root??

Having a Huawei phone I cant unlock the bootloader after a firmware update relocked it.

The gains for gaming are obvious for me (dolphin emulator)

Is there a way??

Cheers
[Magisk] crok.bic:
Without root? No, unfortunately no, that's for sure.
[Magisk] dlads:
That's so sh*t if that's true.
[Magisk] crok.bic:
I second that..

I'm totally with you.
[Magisk] dlads:
Thing is, I got my bootloader unlock code on day one of getting my device, so they have provided me with one already.

My guess is they wouldn't re-provide it again but they might and certainly should, not like I'm asking for a new one.

It was relocked by a firmware update, which I installed, soon as it booted it was locked.

Classic
[Magisk] Amjadh:
Swap Torpedo don't seem to be working even after 3 days of installation after fresh rom flash.. Device is a Moto G3 Codename Osprey..
[Magisk] crok.bic:
The module has been updated long-long time ago and never been officially updated to the latest module format (v20.3 at the moment) to comply with the developer guide.

So - since there are ppl. still want to use it (and I do, too) - I modified the module to comply with the latest developer guide available at this moment.

The script itself is untouched.

Works for me correctly.

Please try and let me know whether it works for you, too.

PS: basically the script itself can work as a simple init.d script if you don't want to use the module.

Grab the zip, unzip the service.sh from the zip and put it to your phone somewhere, give it a name that reflects what it does (like swaptorpedo.sh or zram_disabler.sh or something) and install an init.d script manager app and run it with root at every boot or if your ROM is actually supporting init.d scripts just put it to the right directory. Some kernel manager apps like Franco Kernel Manager, EX Kernel Manager or Kernel Adiutor (or forks of them) have boot time script running capabilities, too. If you have Magisk but don't want to use the module (for whatever reason..) put the script to /data/adb/post-fs-data.d and|or /data/adb/service.d directory and give it a permission like 777 (read+write+execute..) and Magisk will run it at every boot. There are tons of possibilities. Have fun.
[Magisk] rodken:
Outstanding.
[Magisk] Dreamer(3MF):
Download both of MultiFunctionsPlus4Magisk & QuickFix4Busybox4Magisk from this link (https://androidfilehost.com/?w=files&flid=274628) and do the next steps:

- flash them thru either Magisk Manager or a Custom-Recovery such TWRP and then reboot the device

- use any root file explorer such MiXplorer to access the part of data thru root to choose one of the next sub-functions

to disable memory swap, copy the file of disable from /data/DreamerMods/MultiFunctionsPlus/disable to /data/DreamerMods/MultiFunctionsPlus/SwapController/Disabler/Inactive and then reboot the device

to set swappiness to 10 to get the same responsiveness benefits of disabling memory swap without occasional force closes, copy the file of disable from /data/DreamerMods/MultiFunctionsPlus/disable to /data/DreamerMods/MultiFunctionsPlus/SwappinessChanger/Low/Inactive and then reboot the device

to reduce the space of memory swap, copy the file of disable from /data/DreamerMods/MultiFunctionsPlus/disable to /data/DreamerMods/MultiFunctionsPlus/SwapController/Enabler/Inactive and then reboot the device

P.S. for the module which is ended its name with Unity1.5.4Ax, it supports Any-Rooting-Tool such SuperSU, Lineage-AddOnSU & Magisk [From v8(800) To The Latest One]

P.S. for more details about the module of MultiFunctionsPlus, check the following thread https://xdaforums.com/apps/magisk/module-social-media-cache-advanced-t3799155
[Magisk] cridus:
wow, thanks! I didn't think anyone would have replied, at this point. I'll surely try that out.

Just one thing: what do you mean with "FC"?
[Magisk] crok.bic:
Force Close
[Magisk] Amjadh:
Working Perfectly.. Thank Youu..
[Magisk] Dreamer(3MF):
https://xdaforums.com/apps/magisk/module-swap-torpedo-run-faster-reliably-t3766883/post82078425

FC stands for Force Close. did you give a try to the module of MultiFunctionsPlus4Magisk? and if so, what is the feedback?
[Magisk] cridus:
Not yet. I'm finishing to set up my new phone and once I've done that I'll do it.
[Magisk] sandaljrpit:
works well on the latest magisk. Thank you
[Magisk] Biradarkushal:
Ohh this works .thanks dev for creating this module but after a restart the swap I back to 1024 mb on Lenovo p2 running on msm extened v 8.0
[Magisk] hateeyes:
does this work on MIUI, I gave a redmi note 8 pro and still geting 3121.23mb swap
[Magisk] Tyfani:
Help needed

Can anybody help me install this module
[Magisk] Spider1996:
Tyfani, whats your Problem installing this Module?
[Magisk] Tyfani:
what i should do after i flash the module in magisk?? Disable swap file?? But when my swap file disabled compeletely my device become so lag
[Magisk] 73sydney:
What device are you using this on?

Its only for devices with 3Gb of RAM or more
[Magisk] Tyfani:
Yes my device has 3gb ram
[Magisk] 73sydney:
Which device?
[Magisk] Tyfani:
Realme 3
[Magisk] 73sydney:
Youre not trying to play games are you?

If you are, immediately remove this module, its for normal device use, not meant for stressful games etc

Instead try disabling apps that you dont need to run at boot and or background, here what i use:

https://xdaforums.com/showpost.php?p=83030295&postcount=900

Even with that im not sure theres any 100% cure, google is full of people complaining about lag with Realme devices...
[Magisk] Youtube_Ll0r3nt3:
I have 8gb ram, 5gb free.

This module is better for gaming or no?

Thx
[Magisk] -CALIBAN666-:
No
[Magisk] -CALIBAN666-:
Testet on my Redmi 9 Miui 11,doesnt work.With SmartPack Kernel Tool ive deactivated succesfully and its much better now.

Ok,your module doesnt work for me,but the idea in general is awesome,doesnt know this,hughe thanx to the dev.Cheers!!!!
[Magisk] Youtube_Ll0r3nt3:
Why?
[Magisk] -CALIBAN666-:
Because you need this extraram,when u are a gamer than u need it,this module is for more speedness in normal use,what i whant to say is when u use the device without games,like me,i use my device for Facebook,Google,Whatsapp,Music,blablabla(because gaming on smartphone is a shame,in my opinion)then u doesnt need it,it slows down and so on,when u a gamer u need a bit of extra ram,ok i dont know which device u have but its good to NOT deactivate it.Cheers!!!
[Magisk] Youtube_Ll0r3nt3:
Realme X2 pro 8gb, 5gb free
[Magisk] -CALIBAN666-:
In my opnion you can deactivate swap,but why not test it,its so simple.Install module,start game look how it runs,its fine you let the module,its not fine deinstall module,reboot anf all is fine.Cheers!!!
[Magisk] Enddo:
I installed the module, but it isn't showing up as an installed/activated module (even after a reboot)

tested on the poco m3

edit - sorry, had used the one in the OP. the module is working when using the modified version quoted in the last page of posts.

thanks crok!
[Magisk] Momin8454:
Flashed Swap Torpedo edited by @crok.bic

Working perfectly on Honor 8 Lite ( Prague) Lineage OS18.1 by @DarkJoker360

Thanks OP
[Magisk] mudit johari:
your module not working for my device Realme 8 5g
[Magisk] Sid220:
Flashed module by @crok.bic on my POCO F1 with Xiaomi.eu and Magisk 23

Works perfectly. Old version used to work also but i suggest flashing updated version
[Magisk] Zakendor:
is this module suitable for galaxy s5 klte? or 1.8GB is not enough RAM? the rest is occupied by the system.
[Magisk] Zakendor:
is this module suitable for galaxy s5 klte? or 1.8GB is not enough RAM? the rest is occupied by the system and if set will not conflict with the boeffla tuned kernel?
[Magisk] 73sydney:
Read the very first line of the first post of this thread

Short version: you would have to be mental to be even considering using this module with such little RAM, you need Swap....

You might also want to look out for a newer phone
[Magisk] sarabbafrani:
Hi bro

I need your consultation

In my case ram truth app fill ufs first about 90% then it fill swap ram partition

But i need ufs and swapram parallel filling for performance

Anyway ram truth app fills ufs slowly

If we use other apps that they fill ufs faster then there is no time for switching on swapram , ufs fills about 100% and app shuld crash

This is the problem for parallel working or idk other solution.tnx
[Magisk] rodken:
The latest version functions perfectly on the OP8 5G UW OOS 11.

NB: All has been confirmed via RAM Truth.
[Magisk] Whosondephone:
just reposting because it's getting buried. this is updated to work on modern versions of Magisk. Thanks Crok.bic! Follow the link to original post. I wish someone could add to the first post. Working on magisk 24.3 on my LG V20 running stock Oreo. 8.0

Edit: I've been running this for about a week now. Finally a solution to the pocket warmer feature nobody wants on their phones. Overall a much faster and cooler Android experience..

A few glitches here and there when switching between apps. Such as being signed out of websites and losing my place in my FLAC playing app when stopped. Well worth the benefits of better battery and a cooler cpu.

P.S. clearing cache/delvic and TWRP smooth out a lot of hiccups.
[Magisk] ashish1989:
I am on a aosp custom rom having android 7.1.2, with 1 gb ram and free storage is around 3 gb. Can this module help me to get more ram.
[Magisk] 73sydney:
Please read and absorb the first post on the first page, all is explained there. Short version is this is very likely the opposite of what you want. It wont magically give you oodles of RAM - it cant make hardware RAM, it reclaims RAM being used (wasted) to back SWAP files...its for modern devices with 3GB+ RAM.

For older devices you NEED swap..... you migth want to look at Magisk RAM Swapper, in the online magisk repo via Foxs Magisk Module Manager, with more details here (be sure you know how much you have, what type it is, and understand it takes storage to convert to SWAP (RAM)):

GitHub - Magisk-Modules-Alt-Repo/HuskyDG_SwapRAM: Expand RAM memory by converting a part of storage to Swap RAM

Expand RAM memory by converting a part of storage to Swap RAM - GitHub - Magisk-Modules-Alt-Repo/HuskyDG_SwapRAM: Expand RAM memory by converting a part of storage to Swap RAM

github.com

Also understand theres a point where available storage converted to RAM is a tale of diminishing returns and at some point you should look at upgrading your device. We have all held onto devices for years beyond their intended purpose, otherwise XDA wouldnt exist, but at some point you have to prioritise your sanity....