Нови статии
bash scripts
CPU-frequency scalin...
Oбновявания на ОС W...
install zoneminder 1...
Installing mysql Mar...
Теми във форума
Нови теми
инсталация на ZNC
Малък лек и удобен д...
Клавишни комбинации ...
Инсталация на Arch L...
Защитна стена за мик...
Най-активни теми
Color console linux [4]
Клавишни комбинац... [1]
Защитна стена за ... [1]
Linux [1]
инсталация на ZNC [0]
Йерархия на статиите
Статии » How To » CPU-frequency scaling on Slackware
CPU-frequency scaling on Slackware
Overview: CPU frequency scaling is carried out by the kernel, but requires that the relevant UEFI/BIOS options be enabled, such as Intel (Enhanced) Speedstep. Slackware comes with all requirements necessary to use this feature.

Kernel Config Requirements

The kernel options for CPU frequency scaling are as follows. You need both a governor (one set to default) and a driver. The Slackware default governor is 'userspace'.

Power management and ACPI options
CPU Frequency scaling
CPU Frequency scaling (CPU_FREQ [=y])
'performance' governor (CONFIG_CPU_FREQ_GOV_PERFORMANCE)
This sets CPU frequency to the maximum available.
'powersave' governor (CONFIG_CPU_FREQ_GOV_POWERSAVE)
This sets CPU frequency to the minimum available.
'userspace' governor for userspace frequency scaling
This allows userspace programs to set the CPU frequency.
'ondemand' cpufreq policy governor (CONFIG_CPU_FREQ_GOV_ONDEMAND)
This governor is recommended for desktops.
'conservative' cpufreq governor (CONFIG_CPU_FREQ_GOV_CONSERVATIVE)
This governor is recommended for laptops/netbooks. Although similar to the 'ondemand'
governor, frequency is gracefully increased and decreased rather than jumping to 100%
when speed is required.
x86 CPU frequency scaling drivers
Intel P state control (X86_INTEL_PSTATE [=n])
This driver is mutually exclusive with CONFIG_X86_ACPI_CPUFREQ. It is a newer
driver for Sandy Bridge processors and may cause problems.
Processor Clocking Control interface driver (CONFIG_X86_PCC_CPUFREQ)
This is only required for HP ProLiant servers, which use this interface. Otherwise,
disable it.
ACPI Processor P-States driver (CONFIG_X86_ACPI_CPUFREQ [=y])
This is the recommended driver for newer CPUs Intel (Enhanced) Speedstep enabled
and AMD K10 and newer.
AMD Opteron/Athlon64 PowerNow! (CONFIG_X86_POWERNOW_K8)
This is for K8/early Opteron/Athlon64 processors.
Intel Enhanced SpeedStep (deprecated) (CONFIG_X86_SPEEDSTEP_CENTRINO [=n])
This is a deprecated option that has been superseded by CONFIG_X86_ACPI_CPUFREQ,
so leave this disabled.
Intel Pentium 4 clock modulation (CONFIG_X86_P4_CLOCKMOD [=n])
This is a hack for Pentium 4s that may cause severe slowdowns and noticeable latencies,
so disable it.

It is recommended that the drivers be built-in to the kernel. If they are not, they may load
automatically or you may have to load them yourself.

Checking the CPU frequency settings Slackware comes with the cpufrequtils package which helps to configure frequency scaling in an appropriate manner. You can check the settings on your system with the command


Or if you don't have the package installed:

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

cat /proc/cpuinfo

where “cpu*” is the CPU you want the info on, for example cpu0.

Setting the CPU frequency settings

The cpufreq-set command can be used to set the appropriate governor.
Adding the following to the /etc/rc.d/rc.local file

# CPU-frequency scaling

cpufreq-set --cpu 0 --governor conservative
cpufreq-set --cpu 1 --governor conservative

will set the governor to 'conservative' on each boot.

The same can be done using sysfs:

echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "conservative" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

If you have Turbo Boost enabled in the UEFI/BIOS, you can turn boost on (1) or off (0) by running:

echo 1 > /sys/devices/system/cpu/cpufreq/boost

as long as the interface exists.


Публикувана от admin на December 28 2015
Няма написани коментари
Напишете коментар
Трябва да сте регистриран за да напишете коментар
Оценяването е достъпно единствено за потребителите.

Влезте в акаунта си или се регистрирайте за да можете да давате оценки.

Няма оценки


Не сте потребител?
Натиснете тук за да се регистрирате.

Забравихте паролата си?
Поискате си нова тук.

New Downloads

NAVIGON-Europe ...
NAVIGON Europe ...
NAVIGON Europe ...
NAVIGON Europe ...
µTorrent 3.4.1 ...
BitTorrent 7.9....
ProgDVB 7.04.2 ...
ProgDVB 7.04.2 ...
Wine 1.7.17
Wise Disk Clean...
DAEMON Tools Li...
TurboFTP 6.30 B...
FileZilla 3.7.0...
ChrisTV 5.75
BSPlayer Pro 2....
SquirrelMail + ...

Top 10 Downloads

n-Track Studio ... [13354]
Registry Mechan... [13122]
Super MP3 Downl... [13102]
Microsoft Secur... [12834]
Rotativki [11887]
Hiren`s v10.0.9 [9737]
K-Lite Mega Cod... [9213]
BitComet 1.21 F... [9164]
Black Market fo... [8367]
MOBILedit! 6.1.... [7937]
Ново от Калдата