{"id":18821733,"url":"https://github.com/tytydraco/ktweak","last_synced_at":"2025-04-05T20:08:11.918Z","repository":{"id":43956827,"uuid":"284440588","full_name":"tytydraco/KTweak","owner":"tytydraco","description":"A no-nonsense kernel tweak script for Linux and Android systems, backed by evidence.","archived":false,"fork":false,"pushed_at":"2022-08-15T19:51:23.000Z","size":177,"stargazers_count":419,"open_issues_count":9,"forks_count":79,"subscribers_count":45,"default_branch":"balance","last_synced_at":"2025-03-29T19:06:25.468Z","etag":null,"topics":["kernel","kernel-optimizers","kernel-tweak"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tytydraco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-02T10:38:24.000Z","updated_at":"2025-03-26T17:14:20.000Z","dependencies_parsed_at":"2022-08-12T10:52:11.460Z","dependency_job_id":null,"html_url":"https://github.com/tytydraco/KTweak","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tytydraco%2FKTweak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tytydraco%2FKTweak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tytydraco%2FKTweak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tytydraco%2FKTweak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tytydraco","download_url":"https://codeload.github.com/tytydraco/KTweak/tar.gz/refs/heads/balance","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393570,"owners_count":20931813,"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":["kernel","kernel-optimizers","kernel-tweak"],"created_at":"2024-11-08T00:45:52.383Z","updated_at":"2025-04-05T20:08:11.894Z","avatar_url":"https://github.com/tytydraco.png","language":"Shell","readme":"# KTweak\nA no-nonsense kernel tweak script for Linux and Android systems, backed by evidence.\n\n# Another \"kernel optimizer\"?\nNo. Well, yes. However, a \"kernel optimizer\" is a poor way to put it. KTweak performs kernel adjustments based on facts and evidence, unlike other optimizers with poorly written or heavily obfuscated code.\n\n* [NFS Injector](https://github.com/Magisk-Modules-Grave/nfsinjector) uses closed source, compiled binaries with various typos in the README. It also provides a \"pro\" version that costs money.\n* [MAGNETAR](https://github.com/Magisk-Modules-Grave/MAGNETAR) also uses closed source, compiled binaries. I'd love to say more about this, but I can't even find out what the module even does.\n* [FDE.AI](https://forum.xda-developers.com/apps/magisk/beta-feradroid-engine-v0-19-ultimate-t3284421) also uses closed source, compiled binaries with a paid variant.\n* [LKT](https://github.com/Magisk-Modules-Grave/legendary_kernel_tweaks/blob/master/common/system.prop) sets random nonsensical build.props that don't even exist.\n* [ZeetaTweaks](https://t.me/zeetaaprojbot) is a clone of KTweak with the values changed. As of the V11 zip, it disables essential system services, deletes files permanently from /data/data, kills perfd (which is the userspace boosting daemon), disables SELinux, disables fsync, and various other detrimental changes.\n\n# What's different about KTweak?\nUnlike other \"kernel optimizers\", KTweak is:\n\n* Entirely open source with no compiled components\n* Concise, at less than 200 lines long\n* Backed by benchmarks and evidence\n* Designed by an experienced kernel developer\n* Non-intrusive and completely systemless\n\n# Benchmarks\nThe following benchmarks were performed on a OnePlus 7 Pro running the stock kernel provided by the OEM on Android 10. **KTweak sacrifices throughput for latency**, since latency correlates to UI / UX smoothness. This explains the slight regression with the scheduler throughput.\n\n\n### Scheduler latency via `schbench` (lower is better)\n- Stock:\n`50.0th: 4052\n75.0th: 14288\n90.0th: 26848\n95.0th: 32960\n*99.0th: 45120\n99.5th: 49856\n99.9th: 59200\nmin=0, max=73600`\n\n- KTweak:\n`50.0th: 1054\n75.0th: 1790\n90.0th: 2628\n95.0th: 3836\n*99.0th: 8880\n99.5th: 11472\n99.9th: 18080\nmin=0, max=32781`\n\n### Synthmark Latencymark (lower is better)\n- Stock: 10 / 12\n- KTweak: 4 / 4\n\n### Scheduler throughput via `perf bench sched messaging` (lower is better)\n- Stock: 0.331 seconds\n- KTweak: 0.808 seconds\n\n### Scheduler throughput via `perf bench sched pipe` (lower is better)\n- Stock: 16.159 seconds\n- KTweak: 18.599 seconds\n\n# The Tweaks\nHead over to the [script itself](ktweak) to learn what everything does. It is documented in the comments.\n\n# Contact\nYou can find me on telegram at @tytydraco.\nFeel free to email me at tylernij@gmail.com.\n\nJoin the releases channel at @ktweak, or the discussion channel at @ktweak_discussion.\n","funding_links":[],"categories":["Repository organization"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftytydraco%2Fktweak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftytydraco%2Fktweak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftytydraco%2Fktweak/lists"}