All Projects → VR-25 → zram-swap-manager

VR-25 / zram-swap-manager

Licence: GPL-3.0 license
A versatile zRAM swap manager with dynamic swappiness - for Android and GNU/Linux systems.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to zram-swap-manager

zram manager
No description or website provided.
Stars: ✭ 41 (-4.65%)
Mutual labels:  swap, zram
zramd
Automatically setup swap on zram ✨ with optional systemd support, a simpler alternative to zram-generator and systemd-swap
Stars: ✭ 45 (+4.65%)
Mutual labels:  swap, zram
Multicurrencywallet
Bitcoin, Ethereum, ERC20 crypto wallets with Atomic Swap exchange. Release announce: https://twitter.com/SwapOnlineTeam/status/1321844352369500160
Stars: ✭ 136 (+216.28%)
Mutual labels:  swap
convert-british-to-american-spellings
Convert text so that British spellings are swapped with their Americanized form or vice versa.
Stars: ✭ 26 (-39.53%)
Mutual labels:  swap
PancakeTokenSniper
BSC BNB Pancake token sniper, buy, take profit and rug check
Stars: ✭ 184 (+327.91%)
Mutual labels:  swap
Cssjanus
↔️ Convert CSS stylesheets between left-to-right and right-to-left.              Made by Wikimedia.
Stars: ✭ 168 (+290.7%)
Mutual labels:  swap
A71-Hidden-Mods
A magisk module adding some mods to your Galaxy A71 systemlessly.
Stars: ✭ 16 (-62.79%)
Mutual labels:  magisk
Straks
A new decentralised, open source, community driven digital currency, focusing on e-commerce utility
Stars: ✭ 53 (+23.26%)
Mutual labels:  swap
AppSystemizer
AppSystemizer
Stars: ✭ 52 (+20.93%)
Mutual labels:  magisk
SecureSnaps
Image Codec using Private-key cryptography
Stars: ✭ 13 (-69.77%)
Mutual labels:  swap
MI6 Optimization
MI6调教指南
Stars: ✭ 12 (-72.09%)
Mutual labels:  magisk
nft-swap-sdk
Ethereum's missing p2p NFT and token swap library for web3 developers. Written in TypeScript. Powered by 0x.
Stars: ✭ 200 (+365.12%)
Mutual labels:  swap
Fossapps
Fossapps has been abandoned and replaced by Fossapps Creator.
Stars: ✭ 13 (-69.77%)
Mutual labels:  magisk
howto
Dumping ground for various HowTo documents that I produce
Stars: ✭ 58 (+34.88%)
Mutual labels:  swap
Swap
Simple swap setup script for Linux.
Stars: ✭ 143 (+232.56%)
Mutual labels:  swap
tether unblock
Hide tethering from your mobile network operator
Stars: ✭ 30 (-30.23%)
Mutual labels:  magisk
Face Swap Android
Realtime Face Swap Android NDK app full source code. Developed with OpenCV (http://opencv.org) and Dlib C++ (http://dlib.net).
Stars: ✭ 111 (+158.14%)
Mutual labels:  swap
proxmox toolbox
A toolbox to get the firsts configurations of Proxmox VE / BS done in no time
Stars: ✭ 158 (+267.44%)
Mutual labels:  swap
GJZS
搞机助手·R(原「搞机助手重制版」)
Stars: ✭ 584 (+1258.14%)
Mutual labels:  magisk
MagiskOnEmu
This repo is no longer used
Stars: ✭ 276 (+541.86%)
Mutual labels:  magisk

zRAM Swap Manager

Foreword

This program comes with absolutely no warranty.
Use it at your own risk.
Refer to the official kernel docs, ArchWiki and/or other reputable sources for information regarding VM configuration, zRAM, zswap and swap in general.
Many users should be served by the default config.
The more advanced users will probably want to tweak a thing or two.

License

Copyright (C) 2021-2022, VR25

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Generate a Magisk Module Flashable Zip

sh /path/to/zip.sh

Install/Upgrade

Android (Magisk module)
  Flash the zip or run su -c sh /path/to/install.sh [--start]

GNU/Linux
  sudo sh /path/to/install.sh [--start]

Uninstall

Android
  su -c /data/adb/modules/zram-swap-manager/uninstall.sh [[--stop] [--keep-config]]

GNU/Linux
  sudo zram-swap-manager-uninstall [[--stop] [--keep-config]]

Config

Android
  /data/adb/vr25/zram-swap-manager-data/config.txt

GNU/Linux
  /etc/zram-swap-manager.conf

Default Config

config_ver=202111230 # used for patching; do not modify!

comp_algorithm=auto # [auto] -> zstd (288) | lz4 (210) | lzo-rle (212) | lzo (211)
comp_ratio=210 # [210], irrelevant when comp_algorithm=auto
mem_percent=33 # [33], memory limit

dynamic_swappiness=true # [true], swappiness <--> /proc/loadavg
load_sampling_rate=60 # [60] read /proc/loadavg every x seconds
high_load_threshold=90 # [90], %
high_load_swappiness=80 # [80]
medium_load_threshold=45 # [45], %
medium_load_swappiness=90 # [90]
low_load_threshold=0 # [0], %
low_load_swappiness=100 # [100]

vm="swappiness=80 page-cluster=0"

# android's low memory killer (deprecated in favor of lmkd in recent OS versions)
# write /sys/module/lowmemorykiller/parameters/minfree "CUSTOM PARAMETERS GO HERE"

Terminal

Run zsm or zram-swap-manager for help.

Benchmarks

Compressor Ratio Compression Decompression
zstd 1.3.4 -1 2.877 470 MB/s 1380 MB/s
zlib 1.2.11 -1 2.743 110 MB/s 400 MB/s
brotli 1.0.2 -0 2.701 410 MB/s 430 MB/s
quicklz 1.5.0 -1 2.238 550 MB/s 710 MB/s
lzo1x 2.09 -1 2.108 650 MB/s 830 MB/s
lz4 1.8.1 2.101 750 MB/s 3700 MB/s
snappy 1.1.4 2.091 530 MB/s 1800 MB/s
lzf 3.6 -1 2.077 400 MB/s 860 MB/s

Notes/Tips

On some Android systems, one may want to delay initialization to ensure defaults and/or third party tweaks are overridden. This can be done by adding `sleep 90` or a more elaborate logic to config.

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].