You are not logged in.

#1 2016-08-24 10:00:24

halogen
Member
Registered: 2014-06-12
Posts: 67

[solved] Schedutil unavailable in kernel 4.7

Arch's config has CONFIG_CPU_FREQ_GOV_SCHEDUTIL=m but echoing schedutil to /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor returns "Invalid argument", and according to /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors only performance and powersave are available.

According to this post https://lkml.org/lkml/2016/8/19/427 schedutil can't be built as a module. Is this as a bug or am I doing something wrong?

Last edited by halogen (2016-08-24 14:27:41)

Offline

#2 2016-08-24 10:28:12

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [solved] Schedutil unavailable in kernel 4.7

I can't test atm (because switching to schedutil governor freezes your system with BFS kernel), but I tested schedutil earlier and it worked fine after loading the module. Try

# modprobe cpufreq_schedutil

After that schedutil should appear in scaling_available_governors, and you should be able switch to using it.

Offline

#3 2016-08-24 10:42:35

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [solved] Schedutil unavailable in kernel 4.7

I had the idea that for now although schedutil works it is more of a base/plumbing work for things to come and there wasn't much to gain from using it.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2016-08-24 11:38:09

halogen
Member
Registered: 2014-06-12
Posts: 67

Re: [solved] Schedutil unavailable in kernel 4.7

ooo wrote:

I can't test atm (because switching to schedutil governor freezes your system with BFS kernel), but I tested schedutil earlier and it worked fine after loading the module. Try

# modprobe cpufreq_schedutil

After that schedutil should appear in scaling_available_governors, and you should be able switch to using it.

Nope, nothing changed (although lsmod shows cpufreq_schedutil in the list).

@R00kie, I wanted to try it out of curiosity: there's a thread at Phoronix where people say it's performing better than ondemand for web browsing and watching videos.

Offline

#5 2016-08-24 12:22:12

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [solved] Schedutil unavailable in kernel 4.7

works for me

# uname -r
4.7.1-1-ARCH
# modprobe -v cpufreq_schedutil
insmod /lib/modules/4.7.1-1-ARCH/kernel/kernel/sched/cpufreq_schedutil.ko.gz 
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
schedutil ondemand performance 
# for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo schedutil > $i; done
# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor 
schedutil
schedutil
schedutil
schedutil

Offline

#6 2016-08-24 14:26:35

halogen
Member
Registered: 2014-06-12
Posts: 67

Re: [solved] Schedutil unavailable in kernel 4.7

ooo wrote:

works for me

4.7.1-1-ARCH here too. Something on my end, then. Thanks anyway.

Edit: Intel_pstate had to be set to disable in boot options. Marking the thread as "solved".

Last edited by halogen (2016-08-24 14:31:12)

Offline

Board footer

Powered by FluxBB