Giter Club home page Giter Club logo

yakt's Introduction

IMG_20220530_225120

YAKT

Yet Another Kernel Tweaker. A Magisk module to Tweak your Kernel parameters. This module applies at boot and it's not an AI module.

Features:

- Reduces Jitter and Latency
- Optimizes Ram Management
- Disables scheduler logs/stats
- Disables printk logs
- Disables SPI CRC
- Tweaks mglru
- Allows sched boosting on top-app tasks (Thx to tytydraco)
- Tweaks uclamp scheduler (Credits to darkhz for uclamp tweak)
- Sets -20 (highest priority) for the most essential processes
- Uses Google's schedutil rate-limits from Pixel 3

Benchmark - As per v6

Benchmark Stock YAKT v6
Hackbench 6.632 2.205
Callbench syscall: 138 ns libc: 43 ns mmap: 11220 ns read: 5290 ns syscall: 138 ns libc: 43 ns mmap: 11212 ns read: 4598 ns

Notes:

  • This is not a perfomance/gaming module

How to flash:

  • Just flash in magisk and reboot
  • And that's it ;)

How to check logs:

  • Check yakt.txt file in /data/adb/modules/YAKT/yakt.log folder
  • It should be like this (Not exactly ofc):

Screenshot_20221105-133527_MT_Manager

How to Contribute:

  • Fork the Repo
  • Edit tweaks according to your info/docs
  • Commit with proper name and info/docs about what you did
  • Test the change you did and check if eveything it's fine
  • Then make a pull request

yakt's People

Contributors

amogus07 avatar arter97 avatar crankv2 avatar imspidy avatar kdrag0n avatar kerneltoast avatar nitrovenom avatar notzeetaa avatar oiakera avatar panchajanya1999 avatar tashar02 avatar tytydraco avatar who-em-i avatar xnombre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

yakt's Issues

Host files on GitHub

Please. "Pling" and "opendesktop.org" are diseased cesspools of ads. It takes something like 10 clicks (exaggerating, but still) to get to the file.

Crashes on A14 S24U + Few Improvement Advices

I got s24U and when i flash this module. After the first boot when i'm into my rom after a while phone freezes and shuts down. At yakt.log the last output that i got is;
"Applying tweak for perf_cpu_time_max_percent".

In the yakt-loggin-error.log file i get;
/proc/sys/kernel/sched_autogroup_enabled does not exists
/proc/sys/kernel/sched_migration_cost_ns does not exists
/proc/sys/kernel/sched_min_granularity_ns does not exists
/proc/sys/kernel/sched_wakeup_granularity_ns does not exists
/proc/sys/kernel/sched_nr_migrate does not exists

As i read trough the code i saw something about swap space as higher end phones doesn't really need swap spaces. There should be an option for deleting swap spaces while installing module. Some kind of interactive install something similar to viperaudio(+3-4GB is more than enough and for sure doesn't need any swap space). Deleting swap spaces will improve the performance because swap space doesn't works after when you full up your ram, it divides the flow + removing swap space would most likely to imrpove storage speed too.

And this module can be merged into this one as they are doing so much in similar. It would be nice to see these "Set Activity Manager's max. cached process number to 256 (instead of the default 32 (or even lower 24.. Pixel has 64) and Set phantom processes to the max. possible value to prevent their unintentional killing." modifications in this module.

I'm willing contribute but failed to navigate where does the main module file. I just saw yakt.sh but that is an whole file for logging doesn't seem to find where parameter patching happens.

No yakt.log in Documents for v9

There is no yakt.log in Documents for v9.
Reflashed v8 over v9, the log is created.
Then flashed v9 back over v8, the log gets deleted again.

How to go back stock kernel

Thanks for this work. If I wanna try it but then want to go back to stock kernel;

would uninstalling the magisk module wipe it and set back stock settings?

Log file not found

Hello,
I did as the guide said and flashed it in magisk and rebooted, when the reboot was done I checked the internal storage for log but I couldn't find it.

No yakt.log in Documents for v12

There is no yakt.log in Documents for v12.
Reflashed v7 over v12, the log is created.
Then flashed v12 back over v7, the log still there, but once reboot the log gets deleted again.

[magisk]magisk hide broken

Latest YAKT make magisk (kitsuen mask or official magisk 27.0) magisk hide broken.Apps added to magisk hide cannot be opened and are stuck in the startup screen or FC (eg. momo or some bank app).
By editing the code I found out that it is the following code causing the problem, and is able to recover it by deleting the code.

Tweak scheduler to have less Latency

Credits to RedHat & tytydraco & KTweak

log-yakt "Tweaking scheduler to reduce latency"
write "$KL/sched_migration_cost_ns" 5000000
write "$KL/sched_min_granularity_ns" 10000000
write "$KL/sched_wakeup_granularity_ns" 12000000
write "$KL/sched_nr_migrate" 8
log-yakt "Done."
log-yakt ""

Issue log

All the logs are here, I hope will be useful for bug fix.

Version problem in Magisk Repository

Hi! To manage Magisk modules I use Fox's Magisk Module Manager https://github.com/Fox2Code/FoxMagiskModuleManager
This Manager looks for modules in different repositories. And it suggests to install your module of version 2 only. I spotted one bug there, came to your page to report it and found out that there is a new version where this bug was corrected.

Could you please check the repository where your module is present, so it distributes the actual version, not outdated?

Have Some issues with yakt

Ther is the Log Files

error.log
info.log

[16:02:28] Error: File /proc/sys/kernel/sched_autogroup_enabled does not exist.
[16:02:28] Error: File /proc/sys/vm/compaction_proactiveness does not exist.
[16:02:29] Error: Failed to write to /sys/block/dm-0/queue/nr_requests.
[16:02:29] Error: Failed to write to /sys/block/dm-1/queue/nr_requests.
[16:02:29] Error: File /sys/block/dm-10/queue/iostats does not exist.
[16:02:29] Error: File /sys/block/dm-10/queue/nr_requests does not exist.
[16:02:29] Error: File /sys/block/dm-11/queue/iostats does not exist.
[16:02:29] Error: File /sys/block/dm-11/queue/nr_requests does not exist.
[16:02:29] Error: Failed to write to /sys/block/dm-12/queue/nr_requests.
[16:02:29] Error: Failed to write to /sys/block/dm-13/queue/nr_requests.
[16:02:29] Error: File /sys/block/dm-14/queue/iostats does not exist.
[16:02:29] Error: File /sys/block/dm-14/queue/nr_requests does not exist.
[16:02:29] Error: Failed to write to /sys/block/dm-15/queue/nr_requests.
[16:02:29] Error: Failed to write to /sys/block/dm-17/queue/nr_requests.
[16:02:29] Error: Failed to write to /sys/block/dm-18/queue/nr_requests.
[16:02:29] Error: Failed to write to /sys/block/dm-19/queue/nr_requests.
[16:02:29] Error: Failed to write to /sys/block/dm-2/queue/nr_requests.
[16:02:29] Error: Failed to write to /sys/block/dm-20/queue/nr_requests.
[16:02:29] Error: Failed to write to /sys/block/dm-21/queue/nr_requests.
[16:02:29] Error: Failed to write to /sys/block/dm-22/queue/nr_requests.
[16:02:30] Error: Failed to write to /sys/block/dm-24/queue/nr_requests.
[16:02:30] Error: Failed to write to /sys/block/dm-25/queue/nr_requests.
[16:02:30] Error: Failed to write to /sys/block/dm-26/queue/nr_requests.
[16:02:30] Error: Failed to write to /sys/block/dm-27/queue/nr_requests.
[16:02:30] Error: File /sys/block/dm-28/queue/iostats does not exist.
[16:02:30] Error: File /sys/block/dm-28/queue/nr_requests does not exist.
[16:02:30] Error: Failed to write to /sys/block/dm-3/queue/nr_requests.
[16:02:30] Error: Failed to write to /sys/block/dm-30/queue/nr_requests.
[16:02:30] Error: Failed to write to /sys/block/dm-31/queue/nr_requests.
[16:02:30] Error: Failed to write to /sys/block/dm-8/queue/nr_requests.
[16:02:30] Error: Failed to write to /sys/block/dm-9/queue/nr_requests.
[16:02:32] Error: Failed to write to /sys/block/ram0/queue/nr_requests.
[16:02:32] Error: Failed to write to /sys/block/ram1/queue/nr_requests.
[16:02:32] Error: Failed to write to /sys/block/ram10/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/ram11/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/ram12/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/ram13/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/ram14/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/ram15/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/ram2/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/ram3/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/ram4/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/ram5/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/ram6/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/ram7/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/ram8/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/ram9/queue/nr_requests.
[16:02:33] Error: Failed to write to /sys/block/zram0/queue/nr_requests.
[16:02:34] Error: File /proc/sys/kernel/sched_min_task_util_for_colocation does not exist.
[16:02:34] Error: Failed to write to /sys/module/workqueue/parameters/power_efficient.

[16:02:28] Starting YAKT v16
[16:02:28] Build Date: 10/04/2024
[16:02:28] Author: @NotZeetaa (Github)
[16:02:28] Device: Samsung Galaxy S10
[16:02:28] Brand: Redmi
[16:02:28] Kernel: 4.14.343-Sapphire
[16:02:28] Rom build type: userdebug
[16:02:28] Android Version: 13
[16:02:28] Applying Google's schedutil rate-limits from Pixel 3 (MODDED)
[16:02:28] Applied Google's schedutil rate-limits from Pixel 3 (MODDED)
[16:02:28]
[16:02:28]
[16:02:28] Disabling Sched Auto Group...
[16:02:28] Done.
[16:02:28]
[16:02:28] Enabling child_runs_first
[16:02:28] Done.
[16:02:28]
[16:02:28] Applying Ram Tweaks
[16:02:28] Detecting if your device has less/higher than 8GB of RAM
[16:02:28] Detected equal or less
[16:02:28] Aplying tweaks for it...
[16:02:28] Applied Ram Tweaks
[16:02:28]
[16:02:28] Checking if your kernel has mglru support...
[16:02:28] Your kernel doesn't support mglru :(
[16:02:28] Aborting it...
[16:02:29]
[16:02:29] Applying tweak for perf_cpu_time_max_percent
[16:02:29] Done.
[16:02:29]
[16:02:29] Disabling some scheduler logs/stats
[16:02:33] Done.
[16:02:33]
[16:02:33] Disabling Timer Migration
[16:02:34] Done.
[16:02:34]
[16:02:34] Always allow sched boosting on top-app tasks
[16:02:34] Done.
[16:02:34]
[16:02:34] Checking if your kernel supports zswap..
[16:02:34] Your kernel doesn't support zswap, aborting it...
[16:02:34]
[16:02:34] Enabling Power Efficient...
[16:02:34] Done.
[16:02:34]
[16:02:34] The Tweak is done enjoy :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.