diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 07e7ec7..b20868d 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -1092,6 +1092,12 @@ _tkg_srcprep() { fi done + # Use schedutil instead of ondemand on >32 threads machines + if [[ $(nproc) -gt 32 ]] && [ "$_default_cpu_gov" = "ondemand" ]; then + warning "The current default governor selected (ondemand) doesn't perform well on >32 threads. Schedutil will be used instead." + _default_cpu_gov="schedutil" + fi + # default cpu gov if [ "$_default_cpu_gov" = "performance" ]; then _disable "CPU_FREQ_DEFAULT_GOV_SCHEDUTIL"