{"id":21113090,"url":"https://github.com/vr-25/zram-swap-manager","last_synced_at":"2025-04-04T12:06:12.125Z","repository":{"id":116553046,"uuid":"417519961","full_name":"VR-25/zram-swap-manager","owner":"VR-25","description":"A versatile zRAM swap manager with dynamic swappiness - for Android and GNU/Linux systems.","archived":false,"fork":false,"pushed_at":"2024-12-15T18:51:39.000Z","size":89,"stargazers_count":215,"open_issues_count":3,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T11:06:43.393Z","etag":null,"topics":["android","linux","magisk","swap","zram"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VR-25.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":"VR25","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":"VR25","issuehunt":null,"otechie":null,"custom":["https://paypal.me/vr25xda","https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=iprj25@gmail.com\u0026lc=US\u0026item_name=VR25+is+creating+free+and+open+source+software.+Donate+to+suppport+their+work.\u0026no_note=0\u0026cn=\u0026currency_code=USD\u0026bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted"]}},"created_at":"2021-10-15T14:01:08.000Z","updated_at":"2025-03-26T23:55:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb93942b-77a3-4254-b0d6-bc41000d980c","html_url":"https://github.com/VR-25/zram-swap-manager","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VR-25%2Fzram-swap-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VR-25%2Fzram-swap-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VR-25%2Fzram-swap-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VR-25%2Fzram-swap-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VR-25","download_url":"https://codeload.github.com/VR-25/zram-swap-manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174407,"owners_count":20896076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","linux","magisk","swap","zram"],"created_at":"2024-11-20T01:38:19.105Z","updated_at":"2025-04-04T12:06:12.094Z","avatar_url":"https://github.com/VR-25.png","language":"Shell","funding_links":["https://patreon.com/VR25","https://liberapay.com/VR25","https://paypal.me/vr25xda","https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=iprj25@gmail.com\u0026lc=US\u0026item_name=VR25+is+creating+free+and+open+source+software.+Donate+to+suppport+their+work.\u0026no_note=0\u0026cn=\u0026currency_code=USD\u0026bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted","https://patreon.com/vr25"],"categories":[],"sub_categories":[],"readme":"# zRAM Swap Manager\n\n## Foreword\n    This program comes with absolutely no warranty.\n    Use it at your own risk.\n    Refer to the official kernel docs, ArchWiki and/or other reputable sources for information regarding virtual memory configuration, zRAM, zswap, and swap in general.\n    Most users should be served by the default config.\n    Advanced users will probably want to tweak a thing or two.\n\n## License\n    Copyright (C) 2021-2024, VR25\n\n    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.\n\n    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.\n\n    You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.\n\n## Generate a Flashable Zip (Apatch/KernelSU/Magisk)\n    sh /path/to/zip.sh\n\n## Install/Upgrade\n    Android\n      Flash the zip or run su -c sh /path/to/install.sh\n      [Optional] Edit /data/adb/vr25/zram-swap-manager-data/config.txt\n      Reboot\n\n    GNU/Linux\n      sudo sh /path/to/install.sh [--start]\n\n## Uninstall\n    Android\n      su -c /data/adb/modules/zram-swap-manager/uninstall.sh [[--stop] [--keep-config]]\n      Alternatively, use a module manager app and reboot\n\n    GNU/Linux\n      sudo zram-swap-manager-uninstall [[--stop] [--keep-config]]\n\n## Config\n    Android\n      /data/adb/vr25/zram-swap-manager-data/config.txt\n\n    GNU/Linux\n      /etc/zram-swap-manager.conf\n\n## Terminal\n    Run zsm or zram-swap-manager for help.\n\n## Notes/Tips\n    - Note: One can set disksize instead of comp_ratio and mem_percent. It supports suffixes, as per the official kernel doc (e.g., disksize=1M, disksize=2G).\n    - 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.\n    - To disable swap on boot, add \"swap_off; exit\" to config, without quotes.\n    - To skip applying settings on boot add exit to config.\n\n## Links\n\n- [zRAM ArchWiki](https://wiki.archlinux.org/title/Zram)\n- [zRAM Official Kernel Doc](https://docs.kernel.org/admin-guide/blockdev/zram.html)\n- [zRAM Performance Analysis](https://notes.xeome.dev/notes/Zram)\n\n- [Facebook Page](https://fb.me/vr25xda)\n- [Telegram Channel](https://t.me/vr25_xda)\n- [Telegram Profile](https://t.me/vr25xda)\n- [Upstream Repository](https://github.com/vr-25/zram-swap-manager)\n- [XDA Thread](https://forum.xda-developers.com/t/zram-swap-manager-for-android-and-gnu-linux-systems.4352797)\n\n- [Donate - Patreon](https://patreon.com/vr25)\n- [Donate - PayPal](https://paypal.me/vr25xda)\n- [Donate - Credit/Debit Card](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=iprj25@gmail.com\u0026lc=US\u0026item_name=VR25+is+creating+free+and+open+source+software.+Donate+to+suppport+their+work.\u0026no_note=0\u0026cn=\u0026currency_code=USD\u0026bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvr-25%2Fzram-swap-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvr-25%2Fzram-swap-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvr-25%2Fzram-swap-manager/lists"}