All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Doug Smythies" <dsmythies@telus.net>
To: lists@ssl-mail.com
Cc: linux-pm@vger.kernel.org
Subject: RE: Can't enable/switch to 'schedutil' governor with kernel 4.7.2 ?
Date: Tue, 23 Aug 2016 14:23:40 -0700	[thread overview]
Message-ID: <000f01d1fd84$9fd127d0$df737770$@net> (raw)
In-Reply-To: <1471969523.3010993.703762385.6A0277B5@webmail.messagingengine.com>

On 2016.08.23 09:25 lists@ssl-mail.com wrote:

> Can't enable/switch to 'schedutil' governor
> I'm running 
>	uname -rm
>		4.7.2-1.g34ba8d6-default x86_64
>
> I'm trying to set/use the 'schedutil' governor.

...[cut]...

Please try not using cpupower or any other utility.
Please try using the primitive commands directly.

For example:

To see what you are currently using:

cat /sys/devices/system/cpu/cpufreq/policy*/scaling_governor

To see what is available:

cat /sys/devices/system/cpu/cpufreq/policy*/scaling_available_governors

To set a new governor (as su):

for file in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo "schedutil" > $file; done

Then check by using the first command again.

Example from my computer with a stock kernel 4.8-rc3:

$ cat /sys/devices/system/cpu/cpufreq/policy*/scaling_governor
ondemand
ondemand
ondemand
ondemand
ondemand
ondemand
ondemand
ondemand

$ cat /sys/devices/system/cpu/cpufreq/policy*/scaling_available_governors
ondemand performance
ondemand performance
ondemand performance
ondemand performance
ondemand performance
ondemand performance
ondemand performance
ondemand performance

In my case several of governors are modules and so do not
appear in the list, even though they actually are available.

$ sudo su
# for file in /sys/devices/system/cpu/cpufreq/policy*/scaling_governor; do echo "schedutil" > $file; done
# exit

$ cat /sys/devices/system/cpu/cpufreq/policy*/scaling_governor
schedutil
schedutil
schedutil
schedutil
schedutil
schedutil
schedutil
schedutil

Since the schedutil module has now been loaded, it now appears in the list:

$ cat /sys/devices/system/cpu/cpufreq/policy*/scaling_available_governors
schedutil ondemand performance
schedutil ondemand performance
schedutil ondemand performance
schedutil ondemand performance
schedutil ondemand performance
schedutil ondemand performance
schedutil ondemand performance
schedutil ondemand performance

... Doug



  reply	other threads:[~2016-08-23 21:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-23 16:25 Can't enable/switch to 'schedutil' governor with kernel 4.7.2 ? lists
2016-08-23 21:23 ` Doug Smythies [this message]
2016-08-24 20:00   ` lists
2016-08-24 23:51     ` Doug Smythies

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000f01d1fd84$9fd127d0$df737770$@net' \
    --to=dsmythies@telus.net \
    --cc=linux-pm@vger.kernel.org \
    --cc=lists@ssl-mail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.