Показаны сообщения с ярлыком cpufreqd. Показать все сообщения
Показаны сообщения с ярлыком cpufreqd. Показать все сообщения

четверг, 7 сентября 2017 г.

cpu

CPU frequency scaling
Enable Governor Performance Module in Debian Distributions
intel_pstate CPU Performance Scaling Driver
Как проверить информацию о процессоре и процессоре в Linux
Как посмотреть температуру в Ubuntu | Debian | LinuxMint

$  cat /proc/cpuinfo | grep MHz
$ watch -n 0.1 "cat /proc/cpuinfo | grep -i mhz"


$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
intel_pstate

echo performance | tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

http://forums.debian.net/viewtopic.php?f=7&t=132840&p=642449&hilit=freq#p642449

cat /etc/default/grub
 

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
 




$ sudo cp /etc/default/grub /etc/default/grub.original
$ sudo 
$ sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="quiet"/GRUB_CMDLINE_LINUX_DEFAULT="intel_pstate=disable"/' /etc/default/grub
$ sudo update-grub
$ sudo shutdown -r now
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
acpi-cpufreq
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
ondemand performance schedutil
 
Управление режимами работы процессора 
 
$ sudo apt install cpufrequtils
$ sudo cp /etc/init.d/cpufrequtils /etc/init.d/cpufrequtils.original 
$ sudo sed -i 's/GOVERNOR="ondemand"/GOVERNOR="performance"/' /etc/init.d/cpufrequtils 
$ sudo sed -i 's/MAX_SPEED="0"/MAX_SPEED="3600"/' /etc/init.d/cpufrequtils 
$ sudo sed -i 's/MIN_SPEED="0"/MIN_SPEED="3600"/' /etc/init.d/cpufrequtils  
$ sudo systemctl daemon-reload
$ sudo systemctl restart cpufrequtils 
 
$ cat /proc/cpuinfo | grep MHz
cpu MHz  : 800.000
cpu MHz  : 800.000
cpu MHz  : 800.000
cpu MHz  : 800.000
cpu MHz  : 1000.000
cpu MHz  : 1000.000
cpu MHz  : 800.000
cpu MHz  : 800.000
 
$ sudo cpufreq-set -c 0 -g performance 
$ sudo cpufreq-set -c 1 -g performance 
$ sudo cpufreq-set -c 2 -g performance
$ sudo cpufreq-set -c 3 -g performance
$ sudo cpufreq-set -c 4 -g performance
$ sudo cpufreq-set -c 5 -g performance
$ sudo cpufreq-set -c 6 -g performance
$ sudo cpufreq-set -c 7 -g performance
 
$ cat /proc/cpuinfo | grep MHz
cpu MHz  : 3601.000
cpu MHz  : 3601.000
cpu MHz  : 3601.000
cpu MHz  : 3601.000
cpu MHz  : 3601.000
cpu MHz  : 3601.000
cpu MHz  : 3601.000
cpu MHz  : 3601.000
$ cpufreq-info
 
$ nano start_per.sh
 
sudo cpufreq-set -c 0 -g performance 
sudo cpufreq-set -c 1 -g performance 
sudo cpufreq-set -c 2 -g performance
sudo cpufreq-set -c 3 -g performance
sudo cpufreq-set -c 4 -g performance
sudo cpufreq-set -c 5 -g performance
sudo cpufreq-set -c 6 -g performance
sudo cpufreq-set -c 7 -g performance
 
Сохранить. 
 
$ chmod +x start_per.sh
$ ./start_per.sh
$ cat /proc/cpuinfo | grep MHz
cpu MHz  : 3601.000
cpu MHz  : 3601.000
cpu MHz  : 3601.000
cpu MHz  : 3601.000
cpu MHz  : 3601.000
cpu MHz  : 3601.000
cpu MHz  : 3601.000
cpu MHz  : 3601.000
  

суббота, 15 апреля 2017 г.

Отключение службы ondemand

!!!# nano /etc/init.d/ondemand
 
Для Ubuntu 14.04
 
# cat /proc/cpuinfo | grep MHz 
# update-rc.d ondemand disable 
# reboot
 
Для Ubuntu 16.04 (systemd)
 
# cat /proc/cpuinfo | grep MHz 
# systemctl status ondemand
# systemctl stop ondemand
# systemctl disable ondemand
# reboot
# systemctl status ondemand 
 
● ondemand.service - LSB: Set the CPU Frequency Scaling governor to "ondemand"
   Loaded: loaded (/etc/init.d/ondemand; bad; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:systemd-sysv-generator(8)
 
# cat /proc/cpuinfo | grep MHz
cpu MHz         : 3402.905
cpu MHz         : 3400.000
cpu MHz         : 3400.000
cpu MHz         : 3400.000
cpu MHz         : 3400.415
cpu MHz         : 3400.415
cpu MHz         : 3400.622
cpu MHz         : 3399.792

До:


 После:


Динамическое изменение частоты CPU (cpufreqd)

# apt-get install acpi acpitool lm-sensors cpufreqd cpufrequtils

# acpitool --cpu | grep scaling
 Freq. scaling driver   : intel_pstate

 # acpitool -cpu

# nano  /etc/cpufreqd.conf


; apt-get install lm-sensors
 
# sensors
asus-isa-0000
Adapter: ISA adapter
cpu_fan:        0 RPM

acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +119.0°C)
temp2:        +29.8°C  (crit = +119.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +29.0°C  (high = +84.0°C, crit = +100.0°C)
Core 0:         +27.0°C  (high = +84.0°C, crit = +100.0°C)
Core 1:         +29.0°C  (high = +84.0°C, crit = +100.0°C)
Core 2:         +25.0°C  (high = +84.0°C, crit = +100.0°C)
Core 3:         +26.0°C  (high = +84.0°C, crit = +100.0°C)

 
# watch grep \"cpu MHz\" /proc/cpuinfo
 
 
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
 
 
Политика управления частотой процессора «ondemand» и iowait в Ubuntu