hamadmarri / TT-CPU-Scheduler

Task Type (TT) is an alternative CPU Scheduler for linux.
107 stars 12 forks source link

[request] about config #2

Closed whikk closed 2 years ago

whikk commented 2 years ago

Hi, I don't know how to configure the config, using TT. I want two copies of the config, one for the game/performance and one for the responsive/latency. Thank you!

whikk commented 2 years ago

or a suggestion like this. image

hamadmarri commented 2 years ago

Hello @whikk

For latency and response I recommend using the -rt patch and:

CONFIG_HAVE_PREEMPT_LAZY=y
CONFIG_PREEMPT_LAZY=y
CONFIG_PREEMPT_RT=y
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_RCU=y
CONFIG_HAVE_PREEMPT_DYNAMIC=y
CONFIG_PREEMPT_NOTIFIERS=y
CONFIG_DRM_I915_PREEMPT_TIMEOUT=640

CONFIG_NO_HZ_COMMON=y
CONFIG_NO_HZ_FULL=y
CONFIG_NO_HZ=y
CONFIG_HZ_1666=y
CONFIG_HZ=1666

For gaming or performance use the non -rt patch with:

CONFIG_NO_HZ_IDLE=y
CONFIG_HZ=833 or 500 from XanMod
CONFIG_PREEMPT_VOLUNTARY=y

You can also use these vm sysctl tunnings:

$ cat /etc/sysctl.d/10-vm.conf

vm.vfs_cache_pressure = 50
vm.dirty_background_ratio = 25
vm.dirty_ratio = 35
vm.swappiness = 10
hamadmarri commented 2 years ago

or a suggestion like this. image

Those will be auto selected in both Baby and TT. No worries about them.

whikk commented 2 years ago

@hamadmarri Thank you so much for your advice!

whikk commented 2 years ago

And how to configure config for latency and response use the non -rt patch? I don't want to use rt kernel for now.

hamadmarri commented 2 years ago

And how to configure config for latency and response use the non -rt patch? I don't want to use rt kernel for now.

Almost the same config except use CONFIG_PREEMPT instead of CONFIG_PREEMPT_RT

whikk commented 2 years ago

Ok