{"id":31194930,"url":"https://github.com/rompelhd/Swap-Disabler","last_synced_at":"2025-09-20T02:05:18.779Z","repository":{"id":273126142,"uuid":"918777468","full_name":"rompelhd/Swap-Disabler","owner":"rompelhd","description":"A Magisk module designed to disable swap at system startup. This module is particularly beneficial for devices equipped with a substantial amount of RAM, where the use of swap is unnecessary and may even hinder performance.","archived":false,"fork":false,"pushed_at":"2025-06-13T13:20:34.000Z","size":22,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T14:34:09.953Z","etag":null,"topics":["android","magisk-module","swap","swap-disabler"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rompelhd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null}},"created_at":"2025-01-18T20:34:47.000Z","updated_at":"2025-06-13T13:20:38.000Z","dependencies_parsed_at":"2025-06-13T14:29:54.187Z","dependency_job_id":"4daaa70b-c7ad-4591-8f81-b9ae63cd2baf","html_url":"https://github.com/rompelhd/Swap-Disabler","commit_stats":null,"previous_names":["rompelhd/swap-disabler"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rompelhd/Swap-Disabler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rompelhd%2FSwap-Disabler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rompelhd%2FSwap-Disabler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rompelhd%2FSwap-Disabler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rompelhd%2FSwap-Disabler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rompelhd","download_url":"https://codeload.github.com/rompelhd/Swap-Disabler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rompelhd%2FSwap-Disabler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276033070,"owners_count":25573474,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","magisk-module","swap","swap-disabler"],"created_at":"2025-09-20T02:02:40.872Z","updated_at":"2025-09-20T02:05:18.767Z","avatar_url":"https://github.com/rompelhd.png","language":"Shell","funding_links":[],"categories":["⚡ Performance and Optimization"],"sub_categories":["Memory Management"],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src= \"https://cdn.discordapp.com/attachments/783810268760768552/1403557943978360894/IMG_20250809_035656.jpg?ex=6897fcb2\u0026is=6896ab32\u0026hm=33088ceff729a45448605c5ef77d7cc0a38d4be4e98427a65f021164938f549c\u0026\" alt=\"Swap-Disabler\", width=\"180\"\u003e\n\u003c/p\u003e\n\n\u003ctable align=\"center\"\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ca href=\"https://apache.org/licenses/LICENSE-2.0.txt\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-Apache%20License-green.svg\" alt=\"License: Apache License\"\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Build-Passing-green\" alt=\"Build Passing\"\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Version-v1.0.0-blue\" alt=\"Version\"\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Author-Rompelhd-red\" alt=\"Author: Rompelhd\"\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Magisk-v20.4%2B-blue\" alt=\"Magisk v20.4+\"\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Platform-All Android-green\" alt=\"Platform: All Android\"\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c/br\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eSwap-Disabler\u003c/strong\u003e is a Magisk module designed to disable swap at system startup. This module is particularly beneficial for devices with ample RAM, where swap usage is unnecessary and may even hinder performance. By disabling swap, \u003cstrong\u003eSwap-Disabler\u003c/strong\u003e offers the following advantages:\n\n  - **Extended Flash Memory Lifespan**: Frequent writes to swap partitions can accelerate flash storage wear. Disabling swap significantly reduces this degradation, helping to prolong the lifespan of your device's memory.\n  \n  - **Eco-Friendly**: By minimizing unnecessary writes to storage, the module contributes to reducing electronic waste, making it a sustainable choice for environmentally conscious users.\n  \n  - **Performance Improvement**: In certain conditions, particularly for devices with substantial RAM, disabling swap can lead to better overall system performance by avoiding reliance on slower storage-based memory.\n  \n  - **Flash Memory Durability**: Flash memory typically has between 3,000 and 100,000 write cycles. Disabling swap reduces the number of write cycles used for virtual memory, potentially increasing the lifespan of your device's storage by 20% to 40%, depending on usage.\n\n\u003c/p\u003e\n\u003c/br\u003e\n\n| Standard      | Read (MB/s)  | Write (MB/s)     | Approx. TBW     | Write Cycles     | Commonly Used In         |\n|-------------- |--------------|------------------|------------------|------------------|---------------------------|\n| **eMMC 5.0**  | ~150         | ~40–60           | 100–200 TBW      | ~3,000 cycles    | Low-end (2014–2017)       |\n| **eMMC 5.1**  | ~250         | ~100–125         | 200–300 TBW      | ~3,000–5,000      | Mid-range                 |\n| **UFS 2.0**   | ~350         | ~150–200         | 300–400 TBW      | ~5,000            | Mid-range (2016+)         |\n| **UFS 2.1**   | ~800         | ~250–300         | 400–600 TBW      | ~10,000           | Upper mid-range           |\n| **UFS 3.0**   | ~1500        | ~400–500         | 600–800 TBW      | ~10,000–20,000    | High-end (2019+)          |\n| **UFS 3.1**   | ~2100        | ~700–1200        | 800–1000 TBW     | ~20,000           | Premium (2020+)           |\n| **UFS 4.0**   | ~4200        | ~2800            | 1000–2000 TBW    | 20,000–30,000     | Flagship (2023+)          |\n\n\n\u003c/br\u003e \u003ch2\u003e🚨 Disclaimer 🚨\u003c/h2\u003e\n\n\u003cp\u003e\u003cstrong\u003eUse at Your Own Risk\u003c/strong\u003e\u003c/p\u003e\n\n\u003cp\u003eI am not responsible for any damage caused by using this module. This includes, but is not limited to:\u003c/p\u003e\n\n\u003cul\u003e\n  \u003cstrong\u003e\u003cli\u003eSoftware malfunctions \u003c/strong\u003e\u003ci\u003e(Report and I will help you)\u003c/i\u003e\u003c/li\u003e\n  \u003cstrong\u003e\u003cli\u003eHardware brickings \u003c/strong\u003e\u003ci\u003e(never happened)\u003c/i\u003e\u003c/li\u003e\n  \u003cstrong\u003e\u003cli\u003eExplosions\u003c/li\u003e\u003c/strong\u003e\n  \u003cstrong\u003e\u003cli\u003eFires\u003c/li\u003e\u003c/strong\u003e\n  \u003cstrong\u003e\u003cli\u003eAlien invasions\u003c/li\u003e\u003c/strong\u003e\n\u003c/ul\u003e\n\n\u003cp\u003eAlways ensure you have backups of your important data and use this module responsibly.\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frompelhd%2FSwap-Disabler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frompelhd%2FSwap-Disabler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frompelhd%2FSwap-Disabler/lists"}