LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-18-2021, 04:28 PM   #16
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,770

Rep: Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455

Newer kernels default to intel_cpufreq driver and schedutil governor, which should make a better job changing frequencies when needed. You get the old one (intel_pstate) back with 'echo active > /sys/devices/system/cpu/intel_pstate/status'. (And the new one with 'echo passive > /sys/devices/system/cpu/intel_pstate/status'.)
Code:
# cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: intel_cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 20.0 us.
  hardware limits: 1.60 GHz - 3.40 GHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
  current policy: frequency should be within 1.60 GHz and 3.40 GHz.
                  The governor "schedutil" may decide which speed to use
                  within this range.
  current CPU frequency is 2.04 GHz.
Code:
# echo active > /sys/devices/system/cpu/intel_pstate/status
# cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 4294.55 ms.
  hardware limits: 1.60 GHz - 3.40 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 1.60 GHz and 3.40 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency is 1.60 GHz.
This is Sandy Bridge: Core i5-2400.
 
2 members found this post helpful.
Old 03-18-2021, 11:34 PM   #17
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Original Poster
Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
Quote:
Originally Posted by Petri Kaukasoina View Post
Newer kernels default to intel_cpufreq driver and schedutil governor, which should make a better job changing frequencies when needed. You get the old one (intel_pstate) back with 'echo active > /sys/devices/system/cpu/intel_pstate/status'. (And the new one with 'echo passive > /sys/devices/system/cpu/intel_pstate/status'.)
Thanks, I didn't know that intel_pstate was still around. I've been using intel_cpufreq just fine without knowing it. It is defaulting to that. Which driver and cpu frequency governer would you prefer to be set in rc.cpufreq for Intel CPUs as default?
 
Old 03-19-2021, 04:03 AM   #18
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,770

Rep: Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455
Quote:
Originally Posted by RadicalDreamer View Post
Which driver and cpu frequency governer would you prefer to be set in rc.cpufreq for Intel CPUs as default?
I have 'chmod -x rc.cpufreq', and so I use the kernel defaults: intel_cpufreq and schedutil governor. It has a good performance and low energy consumption. (I use kernel 5.11.) I just tried a kernel compile, and intel_cpufreq+schedutil was 1% faster than intel_pstate+performance.
 
3 members found this post helpful.
Old 03-19-2021, 10:02 AM   #19
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Original Poster
Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
intel_cpufreq and schedutil works great. I didn't even have to up my min freq percentage at all from default because schedutil is so responsive. Schedutil is very responsive and I think Final Fantasy XV works better with it. It is much better than powersave and performance. It doesn't require tweaking my min freq like powersave and it isn't insanely high like performance (3+ Ghz while doing nothing).

Since rc.cpufreq sets ondemand by default I suggest modifying the code in rc.cpufreq to this for applicable Intel CPUs:

Code:
# For CPUs using intel_cpufreq, always use the schedutil governor. This also
# provides power savings on Intel processors while avoiding the ramp-up lag
# present when using the powersave governor (which is the default if ondemand
# is requested on these machines):
if [ "$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver 2> /dev/null)" =
 "intel_cpufreq" ]; then
  SCALING_GOVERNOR="schedutil"
 
Old 03-19-2021, 11:44 AM   #20
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Original Poster
Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
I was going to set a relative's Skylake 6700K CPU to intel_cpufreq but it is using intel_pstate to my surprise. So maybe that is why no has complained. Why would a much newer processor be using intel_pstate instead? The driver was never changed by its user on either computer. Same 5.10.XX kernel being used. I'd still love to see intel_cpufreq added to rc.cpufreq though.
 
Old 03-19-2021, 12:14 PM   #21
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,770

Rep: Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455
linux-5.10.24/Documentation/admin-guide/pm/intel_pstate.rst
Code:
Active Mode
-----------

This is the default operation mode of ``intel_pstate`` for processors with
hardware-managed P-states (HWP) support.  If it works in this mode, the
``scaling_driver`` policy attribute in ``sysfs`` for all ``CPUFreq`` policies
contains the string "intel_pstate"...

Passive Mode
------------

This is the default operation mode of ``intel_pstate`` for processors without
hardware-managed P-states (HWP) support...
If the driver works in this mode, the ``scaling_driver`` policy attribute in
``sysfs`` for all ``CPUFreq`` policies contains the string "intel_cpufreq".
Then, the driver behaves like a regular ``CPUFreq`` scaling driver...
Google search tells "What is HWP? HWP is a technology introduced in Skylake which lets the CPU select its own stepping speed without the usage of the CPU Multiplier. Additionally it trottles/boosts itself much faster, which improoves overall CPU performance."
 
1 members found this post helpful.
Old 03-19-2021, 02:56 PM   #22
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Original Poster
Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
Quote:
Originally Posted by Petri Kaukasoina View Post
linux-5.10.24/Documentation/admin-guide/pm/intel_pstate.rst
Code:
Active Mode
-----------

This is the default operation mode of ``intel_pstate`` for processors with
hardware-managed P-states (HWP) support.  If it works in this mode, the
``scaling_driver`` policy attribute in ``sysfs`` for all ``CPUFreq`` policies
contains the string "intel_pstate"...

Passive Mode
------------

This is the default operation mode of ``intel_pstate`` for processors without
hardware-managed P-states (HWP) support...
If the driver works in this mode, the ``scaling_driver`` policy attribute in
``sysfs`` for all ``CPUFreq`` policies contains the string "intel_cpufreq".
Then, the driver behaves like a regular ``CPUFreq`` scaling driver...
Google search tells "What is HWP? HWP is a technology introduced in Skylake which lets the CPU select its own stepping speed without the usage of the CPU Multiplier. Additionally it trottles/boosts itself much faster, which improoves overall CPU performance."
Thanks for the information! I haven't spent much time with the computer with the Skylake processor recently but with powersave the CPU was too slow without upping the minimum freq. The computer has poor cooling and setting the governor to performance had it running almost to 4 GHz,raising the temperature to ~65 Celsius. I don't believe a word of that Intel marketing BS.
 
1 members found this post helpful.
Old 03-19-2021, 09:38 PM   #23
walecha
Member
 
Registered: Jan 2010
Location: Malang, +62
Distribution: slackware
Posts: 174

Rep: Reputation: 42
I'm using schedutil on haswell and ryzen. Schedutil should be default on install if using kernel 5.10+.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Some notes about cpu governor and scaling on an Intel Skylake laptop giomat Slackware 6 01-06-2021 10:59 AM
Performance problems with timer, scheduler or governor? Governor backwards? Holering Linux - Kernel 1 02-05-2015 10:00 PM
LXer: Intel SNA Performance Of Sandy Bridge, Ivy Bridge, Haswell LXer Syndicated Linux News 0 10-13-2013 11:02 PM
LXer: RC6 To Be Flipped On For Sandy Bridge, Ivy Bridge LXer Syndicated Linux News 0 12-11-2011 06:12 AM
[SOLVED] Using the "powersave" governor on battery and "ondemand" governor on AC power piratesmack Slackware 5 01-21-2010 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration